aboutsummaryrefslogtreecommitdiff
path: root/games/mednafen/mednafen.SlackBuild
diff options
context:
space:
mode:
authorJohannes Schoepfer <slackbuilds@schoepfer.info>2019-05-04 03:06:04 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-05-04 03:06:04 +0700
commit9e3e487352cc52c0d60424fa61b59a69ca2d7e6b (patch)
tree68814e356e84719a76d980678ef31c79ea747865 /games/mednafen/mednafen.SlackBuild
parent06c4a1683b7a8c3d70df99c77387c6166a933bc5 (diff)
games/mednafen: Updated for version 1.22.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/mednafen/mednafen.SlackBuild')
-rw-r--r--games/mednafen/mednafen.SlackBuild31
1 files changed, 25 insertions, 6 deletions
diff --git a/games/mednafen/mednafen.SlackBuild b/games/mednafen/mednafen.SlackBuild
index 59d1929e47aeb..83c30a2c8e7e3 100644
--- a/games/mednafen/mednafen.SlackBuild
+++ b/games/mednafen/mednafen.SlackBuild
@@ -24,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=mednafen
-VERSION=${VERSION:-1.22.1}
+VERSION=${VERSION:-1.22.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -70,13 +70,14 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# sanitize build flags
+# sanitize build flags, thanks to the gentoo folks
sed \
-e '/-fno-fast-math/d' \
-e '/-fno-unsafe-math-optimizations/d' \
-e '/-fno-aggressive-loop-optimizations/d' \
-e '/-fno-ipa-icf/d' \
-e '/-fno-printf-return-value/d' \
+ -e '/-fomit-frame-pointer/d' \
-e '/-fno-pic/d' \
-e '/-fno-pie/d' \
-e '/-fno-PIC/d' \
@@ -90,12 +91,27 @@ sed \
-i configure.ac
# This warning is not true at least on x86_64
-sed -e '/Compiling with position-independent code generation enabled is not recommended, for performance reasons/d' \
- -i src/types.h
+if [ "$ARCH" = "x86_64" ]; then
+ sed -e '/Compiling with position-independent code generation enabled is not recommended, for performance reasons/d' \
+ -i src/types.h
+fi
-autoreconf
+# provide buildtime pkgconfig file, which is missing in lzo-2.09
+cat << EOF > lzo2.pc
+prefix=/usr
+exec_prefix=\${prefix}
+includedir=\${prefix}/include
+libdir=/usr/lib$LIBDIRSUFFIX
+Name: lzo2
+Version: 2.09
+Description: LZO - a real-time data compression library
+URL: http://www.oberhumer.com/opensource/lzo/
+Cflags: -I\${includedir}/lzo
+Libs: -L\${libdir} -llzo2
+EOF
- #--with-external-lzo \
+autoreconf
+PKG_CONFIG_PATH=. \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -103,6 +119,9 @@ CXXFLAGS="$SLKCFLAGS" \
--libdir=/usr/lib$LIBDIRSUFFIX \
--sysconfdir=/etc \
--localstatedir=/var \
+ --mandir=/usr/man \
+ --disable-debugger \
+ --with-external-lzo \
--build=$ARCH-slackware-linux
make