diff options
author | B. Watson <yalhcru@gmail.com> | 2021-12-30 02:34:05 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-01-04 07:55:38 +0700 |
commit | 704076b103897b3d7c0e168e0d32abd81b035981 (patch) | |
tree | 4507629925d058252c5733d868185d57036062da /games/zsnes | |
parent | 835e8dfd2e344d50719e9553831a3fe55d8dec9f (diff) |
games/zsnes: Remove statifier support (broken).
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/zsnes')
-rw-r--r-- | games/zsnes/README | 9 | ||||
-rw-r--r-- | games/zsnes/zsnes.SlackBuild | 69 | ||||
-rw-r--r-- | games/zsnes/zsnes.info | 6 |
3 files changed, 32 insertions, 52 deletions
diff --git a/games/zsnes/README b/games/zsnes/README index 303d2ae76e3a..8b29ccbba8cb 100644 --- a/games/zsnes/README +++ b/games/zsnes/README @@ -6,8 +6,7 @@ to the public. It currently runs on Windows, Linux, FreeBSD, and DOS. Remember that this is a public beta so don't expect this to run on your machine. -Note to 64-bit users: Since zsnes can't be compiled for 64-bit, a -"statified" 32-bit static binary is used. This allows running zsnes on -a pure 64-bit system, but *without* OpenGL support (meaning the maximum -window size is 640x480). If you use multilib, you can get OpenGL support -by building a 32-bit native zsnes package instead. +Note to 64-bit users: zsnes can't be built for 64-bit, and it's no +longer practical to provide a static binary as was done in the past. +It should be possible to build zsnes if you install multilib, though +the SlackBuild maintainer hasn't tested this. diff --git a/games/zsnes/zsnes.SlackBuild b/games/zsnes/zsnes.SlackBuild index 0aaabd3fff72..2df9765ee80b 100644 --- a/games/zsnes/zsnes.SlackBuild +++ b/games/zsnes/zsnes.SlackBuild @@ -23,6 +23,11 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20211230 bkw: +# - statifier's never going to work on current/15.0, its author hasn't +# updated it since 2016. so get rid of the 64-bit download and code +# to support it. sorry. + # 20211215 bkw: BUILD=5 # - fix -current 32-bit build. # - new-style icons. @@ -65,8 +70,6 @@ if [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mtune=i686" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" -elif [ "$ARCH" = "x86_64" ]; then - echo "=== $ARCH detected, using statified binary" else printf "\n Error: $PRGNAM won't compile on $ARCH\n\n" exit 1 @@ -88,47 +91,27 @@ chown -R root:root . find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ -if [ "$ARCH" = "x86_64" ]; then - # Can't compile, so use a statified binary. This was prepared - # by compiling zsnes with the same configure flags as below, - # plus --disable-opengl, then converting with: - # $ statifier \ - # --set=LD_PRELOAD=/usr/lib/libudev.so:/usr/lib/libaoss.so:/usr/lib/libasound.so \ - # zsnes zsnes.static - # Unfortunately this won't work with OpenGL because the shared libs - # are driver-specific: I could preload the nvidia driver, but the - # result would only work on systems that use nvidia (not AMD or intel, - # or even nouveau). - mkdir -p $PKG/usr/games $PKG/usr/doc/$PRGNAM-$VERSION $PKG/usr/man/man1 - xz -d < $CWD/$PRGNAM.static.xz > $PKG/usr/games/$PRGNAM - chmod 755 $PKG/usr/games/$PRGNAM - - # Docs and man page still come from the source. - cp -a docs/* $PKG/usr/doc/$PRGNAM-$VERSION - cp -a linux/$PRGNAM.1 $PKG/usr/man/man1 -else - # GCC 4.7 fixes from Debian - cat $CWD/0012-Fix-build-with-gcc-4.7.patch | patch -p2 --verbose - - # Fix for libpng16 (thanks to Arch Linux) - # https://projects.archlinux.org/svntogit/community.git/plain/trunk/zsnes-1.51-libpng15.patch?h=packages/zsnes - patch -p1 < $CWD/zsnes-1.51-libpng15.patch - - CFLAGS="$SLKCFLAGS -fcommon -std=c++11" \ - force_arch="$ARCH" \ - ./configure \ - --prefix=/usr \ - --enable-release \ - --disable-cpucheck \ - --disable-debugger - - CFLAGS="$SLKCFLAGS -fcommon -std=c++11" \ - force_arch="$ARCH" \ - make - make install DESTDIR=$PKG - mv $PKG/usr/bin $PKG/usr/games # configure ignores --bindir, grr! - strip $PKG/usr/games/$PRGNAM -fi +# GCC 4.7 fixes from Debian +cat $CWD/0012-Fix-build-with-gcc-4.7.patch | patch -p2 --verbose + +# Fix for libpng16 (thanks to Arch Linux) +# https://projects.archlinux.org/svntogit/community.git/plain/trunk/zsnes-1.51-libpng15.patch?h=packages/zsnes +patch -p1 < $CWD/zsnes-1.51-libpng15.patch + +CFLAGS="$SLKCFLAGS -fcommon -std=c++11" \ +force_arch="$ARCH" \ +./configure \ + --prefix=/usr \ + --enable-release \ + --disable-cpucheck \ + --disable-debugger + +CFLAGS="$SLKCFLAGS -fcommon -std=c++11" \ +force_arch="$ARCH" \ +make +make install DESTDIR=$PKG +mv $PKG/usr/bin $PKG/usr/games # configure ignores --bindir, grr! +strip $PKG/usr/games/$PRGNAM # Man page belongs in section 6, since this is a game. mkdir -p $PKG/usr/man/man6 diff --git a/games/zsnes/zsnes.info b/games/zsnes/zsnes.info index 6d36e1575eee..d30e8e0dc13d 100644 --- a/games/zsnes/zsnes.info +++ b/games/zsnes/zsnes.info @@ -3,10 +3,8 @@ VERSION="1.51b" HOMEPAGE="http://www.zsnes.com" DOWNLOAD="http://zsnes.sf.net/zsnes151bsrc.tar.bz2" MD5SUM="904ee432f378609176ed30c01cf6ea28" -DOWNLOAD_x86_64="http://zsnes.sf.net/zsnes151bsrc.tar.bz2 \ - https://slackware.uk/~urchlay/src/zsnes.static.xz" -MD5SUM_x86_64="904ee432f378609176ed30c01cf6ea28 \ - c2289a3cbe04b62fda1f4b896c04b275" +DOWNLOAD_x86_64="UNSUPPORTED" +MD5SUM_x86_64="" REQUIRES="" MAINTAINER="B. Watson" EMAIL="yalhcru@gmail.com" |