summaryrefslogtreecommitdiff
path: root/games
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
parent06c4a1683b7a8c3d70df99c77387c6166a933bc5 (diff)
downloadslackbuilds-9e3e487352cc52c0d60424fa61b59a69ca2d7e6b.tar.gz
games/mednafen: Updated for version 1.22.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r--games/mednafen/mednafen.SlackBuild31
-rw-r--r--games/mednafen/mednafen.info6
-rw-r--r--games/mednafen/slack-desc2
3 files changed, 29 insertions, 10 deletions
diff --git a/games/mednafen/mednafen.SlackBuild b/games/mednafen/mednafen.SlackBuild
index 59d1929e47..83c30a2c8e 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
diff --git a/games/mednafen/mednafen.info b/games/mednafen/mednafen.info
index 0d9d8d8d2b..160c4cecf6 100644
--- a/games/mednafen/mednafen.info
+++ b/games/mednafen/mednafen.info
@@ -1,8 +1,8 @@
PRGNAM="mednafen"
-VERSION="1.22.1"
+VERSION="1.22.2"
HOMEPAGE="https://mednafen.github.io/"
-DOWNLOAD="https://mednafen.github.io/releases/files/mednafen-1.22.1.tar.xz"
-MD5SUM="c16f28032a7c575052a1707cf6d52f02"
+DOWNLOAD="https://mednafen.github.io/releases/files/mednafen-1.22.2.tar.xz"
+MD5SUM="de3f23360a5db97038aa30b731e03570"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="SDL2"
diff --git a/games/mednafen/slack-desc b/games/mednafen/slack-desc
index af471a1abc..49badfe407 100644
--- a/games/mednafen/slack-desc
+++ b/games/mednafen/slack-desc
@@ -14,6 +14,6 @@ mednafen: (Color), GameBoy Advance, Neo Geo Pocket (Color), NES - both
mednafen: NTSC and PAL, PC-FX, WonderSwan (Color), PC Engine/TurboGrafx
mednafen: 16 (CD) and SuperGrafx.
mednafen:
-mednafen: Homepage: http://mednafen.sourceforge.net
+mednafen: Homepage: https://mednafen.github.io/
mednafen:
mednafen: