From 138258e136e05f5739f774c99c56ae67c41d3bc8 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Fri, 30 Dec 2016 21:28:33 +0100 Subject: [PATCH] games-arcade/Commander-Genius: bump to 1.9.7.0beta --- ...=> Commander-Genius-1.9.7.0beta.exheres-0} | 34 ++++++++++++------- 1 file changed, 22 insertions(+), 12 deletions(-) rename packages/games-arcade/Commander-Genius/{Commander-Genius-1.9.6.0beta.exheres-0 => Commander-Genius-1.9.7.0beta.exheres-0} (64%) diff --git a/packages/games-arcade/Commander-Genius/Commander-Genius-1.9.6.0beta.exheres-0 b/packages/games-arcade/Commander-Genius/Commander-Genius-1.9.7.0beta.exheres-0 similarity index 64% rename from packages/games-arcade/Commander-Genius/Commander-Genius-1.9.6.0beta.exheres-0 rename to packages/games-arcade/Commander-Genius/Commander-Genius-1.9.7.0beta.exheres-0 index 047737d..9903086 100644 --- a/packages/games-arcade/Commander-Genius/Commander-Genius-1.9.6.0beta.exheres-0 +++ b/packages/games-arcade/Commander-Genius/Commander-Genius-1.9.7.0beta.exheres-0 @@ -13,30 +13,22 @@ SLOT="0" PLATFORMS="~amd64 ~x86" RESTRICT="mirror" # contains keen files, but we do not install them +PY_SLOT="3.5" + DEPENDENCIES=" build: dev-libs/boost virtual/pkg-config build+run: + dev-lang/python:${PY_SLOT} media-libs/SDL:2[X] media-libs/SDL_image:2 media-libs/libvorbis + net-misc/curl sys-libs/zlib x11-dri/mesa " -CMAKE_SRC_CONFIGURE_PARAMS=( - -DAPPDIR="/usr/$(exhost --target)/bin" - -DBUILD_TARGET="LINUX" - -DDOCDIR="/usr/share/doc/${PNVR}" - -DGAMES_SHAREDIR="/usr/share" - -DOGG=ON - -DOPENGL=ON - -DSHAREDIR="/usr/share" - -DTREMOR=OFF - -DUSE_SDL2=1 -) - src_prepare() { # don't install questionable bundled keen data edo rm -r vfsroot @@ -49,6 +41,24 @@ src_prepare() { cmake_src_prepare } +src_configure() { + CMAKE_SRC_CONFIGURE_PARAMS=( + -DAPPDIR="/usr/$(exhost --target)/bin" + -DBUILD_TARGET="LINUX" + -DDOCDIR="/usr/share/doc/${PNVR}" + -DGAMES_SHAREDIR="/usr/share" + -DOGG=ON + -DOPENGL=ON + -DSHAREDIR="/usr/share" + -DTREMOR=OFF + -DUSE_SDL2=1 + -DPYTHON_LIBRARY="$(python${PY_SLOT} -c 'import os.path, sysconfig; print(os.path.join(sysconfig.get_config_var("LIBDIR"), sysconfig.get_config_var("LDLIBRARY")) if sysconfig.get_config_var("LDLIBRARY") else "")')" + -DPYTHON_INCLUDE_DIR="$(python${PY_SLOT} -c 'import distutils.sysconfig; print(distutils.sysconfig.get_python_inc())')" + ) + + cmake_src_configure +} + src_install() { cmake_src_install