summaryrefslogtreecommitdiff
path: root/games/nestopia/nestopia.SlackBuild
diff options
context:
space:
mode:
authorDugan Chen <thedoogster [at] gmail [dot] com>2018-08-08 22:44:05 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-08-11 07:23:08 +0700
commitde50605cef9ed43baa87464475a2b03e4cb7bddb (patch)
tree86616d4cf5d3cdaca06f4d022eda6f1e3a091186 /games/nestopia/nestopia.SlackBuild
parentf5c9246b8529a20c5cd263ee493d8663bf3791a1 (diff)
downloadslackbuilds-de50605cef9ed43baa87464475a2b03e4cb7bddb.tar.gz
games/nestopia: Updated for version 1.49.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games/nestopia/nestopia.SlackBuild')
-rw-r--r--games/nestopia/nestopia.SlackBuild37
1 files changed, 19 insertions, 18 deletions
diff --git a/games/nestopia/nestopia.SlackBuild b/games/nestopia/nestopia.SlackBuild
index 97acd4c796..6c681f22c7 100644
--- a/games/nestopia/nestopia.SlackBuild
+++ b/games/nestopia/nestopia.SlackBuild
@@ -6,7 +6,7 @@
PRGNAM=nestopia
LIBNAM=${PRGNAM}_libretro
-VERSION=${VERSION:-1.48}
+VERSION=${VERSION:-1.49}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
@@ -54,19 +54,24 @@ 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 {} \;
-patch --verbose < $CWD/CMakeLists.txt.patch
-
-mkdir -p build
-cd build
- cmake \
- -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_BUILD_TYPE=Release .. \
- -DENABLE_DOC=ON
- make
- make install DESTDIR=$PKG
-cd ..
+autoreconf -vif
+
+# --enable-gui requires a newer GTK than what's in 14.2.
+CFLAGS="$SLKCFLAGS" \
+ CXXFLAGS="$SLKCFLAGS" \
+ ./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --build=$ARCH-slackware-linux \
+ --enable-doc \
+ # --enable-gui
+
+make
+make install DESTDIR=$PKG
make -C libretro
@@ -75,10 +80,6 @@ install -Dm0644 libretro/$LIBNAM.so \
install -Dm0644 $CWD/$LIBNAM.info \
$PKG/usr/lib${LIBDIRSUFFIX}/libretro/info/$LIBNAM.info
-mkdir -p $PKG/usr/doc
-mv $PKG/usr/share/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION
-rmdir $PKG/usr/share/doc
-
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true