diff --git a/metadata/repository_mask.conf b/metadata/repository_mask.conf index bc9bb01..e4efcc7 100644 --- a/metadata/repository_mask.conf +++ b/metadata/repository_mask.conf @@ -1,8 +1,9 @@ ( - games-strategy/freesynd[~scm] games-emulation/gambatte[~scm] + games-engines/OpenJK[~scm] games-fps/eduke32[~scm] games-rpg/valyriatear[~scm] + games-strategy/freesynd[~scm] x11-apps/terminator[~scm] x11-wm/i3[~scm] ) [[ diff --git a/packages/games-engines/OpenJK/OpenJK-scm.exheres-0 b/packages/games-engines/OpenJK/OpenJK-scm.exheres-0 new file mode 100644 index 0000000..bfc5db1 --- /dev/null +++ b/packages/games-engines/OpenJK/OpenJK-scm.exheres-0 @@ -0,0 +1,81 @@ +# Copyright 2016 Julian Ospald +# Distributed under the terms of the GNU General Public License v2 + +require desktop-utils github [ user=JACoders ] cmake [ api=2 ] + +SUMMARY="Open Source Jedi Academy and Jedi Outcast games engine" + +LICENCES="GPL-2" +SLOT="0" +PLATFORMS="-* ~amd64 ~x86" +MYOPTIONS=" + ( platform: amd64 x86 ) + ( providers: ijg-jpeg jpeg-turbo ) [[ number-selected = exactly-one ]] +" + +DEPENDENCIES=" + build+run: + media-libs/SDL:2[X] + media-libs/libpng:= + sys-libs/zlib + x11-dri/mesa + providers:ijg-jpeg? ( media-libs/jpeg ) + providers:jpeg-turbo? ( media-libs/libjpeg-turbo ) +" + +CMAKE_SRC_CONFIGURE_PARAMS=( + # cmake.exlib wrongly overrides the build type with a random "None", + # breaking the build system + -DCMAKE_BUILD_TYPE=RELEASE + + -DCMAKE_INSTALL_PREFIX="/usr/$(exhost --target)/lib" + + -DBuildMPEngine=YES + -DBuildMPRdVanilla=YES + -DBuildSPEngine=YES + -DBuildSPGame=YES + -DBuildSPRdVanilla=YES +) + +src_install() { + local i + local mylibdir="/usr/$(exhost --target)/lib" + # silly, but common for games crap + local myext=$(option platform:amd64 "x86_64" "i386") + + cmake_src_install + + for i in openjk openjk_sp openjkded ; do + herebin ${i} <