diff options
author | B. Watson <urchlay@slackware.uk> | 2023-05-04 05:12:10 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-05-06 08:28:32 +0700 |
commit | 638f67e3e62d565d41e724764cd9eadd1ae3807c (patch) | |
tree | db9e579e15ce8cd2e3612d039d71315586815739 /system/vice/vice.SlackBuild | |
parent | 3c988cae12cede1e3188f73da6ecb785b768b6ca (diff) |
system/vice: Fix vice.info.gz, bad options.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/vice/vice.SlackBuild')
-rw-r--r-- | system/vice/vice.SlackBuild | 39 |
1 files changed, 25 insertions, 14 deletions
diff --git a/system/vice/vice.SlackBuild b/system/vice/vice.SlackBuild index 6142796d34671..c0725a72af936 100644 --- a/system/vice/vice.SlackBuild +++ b/system/vice/vice.SlackBuild @@ -3,10 +3,21 @@ # Slackware build script for vice # Copyright 2008 Mauro Giachero (email removed) -# Copyright 2020, 2021, 2022 B. Watson (urchlay@slackware.uk) +# Copyright 2020, 2021, 2022, 2023 B. Watson (urchlay@slackware.uk) # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20230504 bkw: BUILD=2. +# - fix vice.texi so the GNU info file gets generated. +# - remove old ./configure arguments and fix a couple of wrong ones. +# thanks to Franzen for sending a patch to fix this. +# - changed -Wl,--allow-multiple-definition to -fcommon, which does +# basically the same thing but matches how other builds do it. +# - fix doinst.sh silliness. +# - add douninst.sh, to clean up /usr/info/dir after the package is removed. + +# 20221228 bkw: update for v3.7.1. + # 20221129 bkw: update for v3.6.1. # - can't build our own HTML or plaintext docs from vice.texi. # - include upstream's HTML docs in package. @@ -42,7 +53,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=vice VERSION=${VERSION:-3.7.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -84,7 +95,7 @@ set -e # ffmpeg is included in the base OS on post-14.2 -current, but leave # this here in case someone's doing something clever. -[ -x /usr/bin/ffmpeg ] && ffmpeg="--enable-external-ffmpeg" +[ -x /usr/bin/ffmpeg ] && ffmpeg="--enable-ffmpeg" # Anticipating 15.0's pure-alsa-system if [ "${PULSE:-yes}" != "yes" ]; then @@ -109,6 +120,10 @@ chmod 644 doc/html/fonts/OFL.txt # this file shouldn't be +x find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ +# Fix some mildly broken constructs in vice.texi, so we can generate +# the vice.info doc. +patch -p1 < $CWD/fix_texi.diff + DOCDIR=/usr/doc/$PRGNAM-$VERSION PKGDOC=$PKG/$DOCDIR @@ -143,7 +158,8 @@ config() { # with a configure argument, because that stops them being built # at all. - CFLAGS="$SLKCFLAGS -w -Wl,--allow-multiple-definition" \ + # 20230504 bkw: note to self: -w means disable all warnings. + CFLAGS="$SLKCFLAGS -w -fcommon" \ CXXFLAGS="$SLKCFLAGS" \ DOS2UNIX=/bin/true \ XA=/bin/true \ @@ -163,8 +179,6 @@ config() { --mandir=/usr/man \ --infodir=/usr/info \ --docdir=$DOCDIR \ - --with-x \ - --enable-quicktime \ --enable-ethernet \ --enable-parsid \ --enable-cpuhistory \ @@ -172,7 +186,6 @@ config() { --with-flac \ --with-vorbis \ --with-gif \ - --with-jpeg \ --with-png \ --enable-midi \ --enable-lame \ @@ -185,8 +198,7 @@ config() { # rename them to <whatever>-sdl2 (or -sdl1). buildsdl() { local exesuf="-sdl$1" - local configarg="--disable-pdf-docs --enable-sdlui" - [ "$1" = "2" ] && configarg+="2" + local configarg="--disable-pdf-docs --enable-sdl${1}ui" config "$configarg" make -C src install-binPROGRAMS \ @@ -220,7 +232,7 @@ EOF esac # Now build & install the whole project with the gtk3 UI. -config "--enable-native-gtk3ui --enable-desktop-files" +config "--enable-gtk3ui --enable-desktop-files" make make install-strip DESTDIR=$PKG @@ -242,16 +254,14 @@ install -m0644 src/arch/gtk3/data/unix/vice*directory \ # vice-3.6.1. Not sure whether this is because we have an # outdated texinfo package in Slackware 15.0, or because upstream # broke some kind of rule... regardless, it's disabled for now. -if [ "${MAKEINFO:-no}" = "yes" ]; then +# 20230504 bkw: Patched vice.texi, so this is now enabled by default. +if [ "${MAKEINFO:-yes}" = "yes" ]; then makeinfo doc/$PRGNAM.texi mkdir -p $PKG/usr/info mv $PRGNAM.info* $PKG/usr/info gzip -9 $PKG/usr/info/* makeinfo --plaintext doc/$PRGNAM.texi > $PKGDOC/$PRGNAM.txt - - ( cd doc ; texi2any --html $PRGNAM.texi ) - cp -a doc/$PRGNAM $PKGDOC/html fi # 20221130 bkw: HTML docs do get built, but never installed. @@ -295,6 +305,7 @@ sed -e "s,@PA@,$PA," \ -e "s,@SDL@,$SDL," \ $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh +cat $CWD/douninst.sh > $PKG/install/douninst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |