games-arcade/performous: fix building with USE=tools by further commiting to use the system-cmake-find-zlib module

Package-Manager: portage-2.2.28
This commit is contained in:
Michael Sterrett
2016-05-16 11:53:41 -04:00
parent 153cfed22d
commit 00742e7a81
2 changed files with 7 additions and 3 deletions

View File

@@ -66,9 +66,11 @@ src_prepare() {
sed -i \
-e "s:@GENTOO_BINDIR@:${GAMES_BINDIR}:" \
-e '/ Z /s/ Z / ZLIB /' \
-e 's/Z_FOUND/ZLIB_FOUND/g' \
-e 's/Z_LIBRARIES/ZLIB_LIBRARIES/g' \
-e 's/Jpeg/JPEG/' \
-e 's/Png/PNG/' \
game/CMakeLists.txt || die
{game,tools}/CMakeLists.txt || die
strip-linguas -u lang
}

View File

@@ -63,10 +63,12 @@ src_prepare() {
"${FILESDIR}"/${P}-linguas.patch
sed -i \
-e "s:@GENTOO_BINDIR@:${GAMES_BINDIR}:" \
-e '/ Z /s/ Z / ZLIB /' \
-e '/ Z /s/ Z/ ZLIB/g' \
-e 's/Z_FOUND/ZLIB_FOUND/g' \
-e 's/Z_LIBRARIES/ZLIB_LIBRARIES/g' \
-e 's/Jpeg/JPEG/' \
-e 's/Png/PNG/' \
game/CMakeLists.txt || die
{game,tools}/CMakeLists.txt || die
strip-linguas -u lang
}