Use api=2 for cmake.exlib

This commit is contained in:
2016-04-23 04:22:08 +02:00
parent 94e0b52466
commit d6439f0765
20 changed files with 55 additions and 57 deletions

View File

@@ -1,7 +1,9 @@
# Copyright 2016 Julian Ospald <hasufell@posteo.de>
# Distributed under the terms of the GNU General Public License v2
require cmake gtk-icon-cache
WORK=${WORKBASE}/${PN}-${PV//./}release
require cmake [ api=2 ] gtk-icon-cache
require github [ user=gerstrong tag=v${PV//./}release ]
SUMMARY="Open Source Commander Keen clone (needs original game files)"
@@ -22,8 +24,6 @@ DEPENDENCIES="
x11-dri/mesa
"
WORK=${WORKBASE}/${PN}-${PV//./}release
CMAKE_SRC_CONFIGURE_PARAMS=(
-DAPPDIR="/usr/$(exhost --target)/bin"
-DBUILD_TARGET="LINUX"
@@ -37,15 +37,15 @@ CMAKE_SRC_CONFIGURE_PARAMS=(
)
src_prepare() {
default
# don't install questionable bundled keen data
edo rm -r vfsroot
# fixes build skew
sed -i \
edo sed -i \
-e '/INCLUDE(package.cmake)/d' \
CMakeLists.txt || die
CMakeLists.txt
cmake_src_prepare
}
src_install() {

View File

@@ -4,7 +4,9 @@
MY_PN=opensnc
MY_PNV=${MY_PN}-src-${PV}
require cmake
WORK=${WORKBASE}/${MY_PNV}
require cmake [ api=2 ]
require sourceforge [ project=opensnc pnv=${MY_PNV} suffix=tar.gz ]
SUMMARY="A free open-source game based on the Sonic the Hedgehog universe"
@@ -27,8 +29,6 @@ DEPENDENCIES="
providers:jpeg-turbo? ( media-libs/libjpeg-turbo )
"
WORK=${WORKBASE}/${MY_PNV}
DEFAULT_SRC_PREPARE_PATCHES=(
-p0 "${FILES}"/${PNV}-cmake.patch
)