mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
games/oolite: Fix build.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
d6f247f7e7
commit
3478ca776d
1 changed files with 7 additions and 7 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# Slackware build script for oolite
|
# Slackware build script for oolite
|
||||||
|
|
||||||
# Copyright 2016 - 2020 Johannes Schoepfer, Germany
|
# Copyright 2016 - 2022 Johannes Schoepfer, Germany
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use of this script, with or without modification, is
|
# Redistribution and use of this script, with or without modification, is
|
||||||
|
@ -68,9 +68,9 @@ set -e
|
||||||
rm -rf $PKG
|
rm -rf $PKG
|
||||||
mkdir -p $TMP $PKG $OUTPUT
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
cd $TMP
|
cd $TMP
|
||||||
rm -rf oolite-source-$VERSION
|
rm -rf $PRGNAM-source-$VERSION
|
||||||
tar vxf $CWD/oolite-source-$VERSION.tar.bz2
|
tar vxf $CWD/$PRGNAM-source-$VERSION.tar.bz2
|
||||||
cd oolite-source-$VERSION
|
cd $PRGNAM-source-$VERSION
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
find -L . \
|
find -L . \
|
||||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||||
|
@ -78,15 +78,15 @@ find -L . \
|
||||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||||
|
|
||||||
# Make sure only system libs may be used
|
# Make sure only system libs will be used
|
||||||
rm deps/Linux-deps/x86*/lib/*
|
rm deps/Linux-deps/x86*/lib/*
|
||||||
|
rm -rf deps/Linux-deps/include/*
|
||||||
|
|
||||||
source /usr/share/GNUstep/Makefiles/GNUstep.sh
|
source /usr/share/GNUstep/Makefiles/GNUstep.sh
|
||||||
export GNUSTEP_MAKEFILES=/usr/share/GNUstep/Makefiles
|
export GNUSTEP_MAKEFILES=/usr/share/GNUstep/Makefiles
|
||||||
sed -i \
|
sed -i \
|
||||||
-e "/ADDITIONAL_OBJCFLAGS/s/=/= -fobjc-exceptions ${SLKCFLAGS}/" \
|
-e "/ADDITIONAL_OBJCFLAGS/s/=/= ${SLKCFLAGS}/" \
|
||||||
-e "s/-mtune=generic//g" \
|
-e "s/-mtune=generic//g" \
|
||||||
-e "s/ -lpng / -l:libpng14.so.14 /g" \
|
|
||||||
-e "/ADDITIONAL_OBJC_LIBS/s/+= -lespeak/+= -lespeak-ng/" \
|
-e "/ADDITIONAL_OBJC_LIBS/s/+= -lespeak/+= -lespeak-ng/" \
|
||||||
GNUmakefile
|
GNUmakefile
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue