summaryrefslogtreecommitdiff
path: root/system/vice/vice.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2012-09-08 11:20:16 +0200
committerRobby Workman <rworkman@slackbuilds.org>2012-09-08 17:27:22 -0500
commit111c0170c751d9ab8f8d2487ea5120dace824650 (patch)
treed3b85d2bcc29a20311aa393515fad06119b3d3cd /system/vice/vice.SlackBuild
parent4e256db06bf33a6d5063a2eaa8b82336c3da5e4d (diff)
downloadslackbuilds-111c0170c751d9ab8f8d2487ea5120dace824650.tar.gz
system/vice: Updated for version 2.3.22.
Rewritten x86_64 patch, added another to fix docs building, explicitly disabled ffmpeg (not yet compatible). Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/vice/vice.SlackBuild')
-rw-r--r--system/vice/vice.SlackBuild20
1 files changed, 11 insertions, 9 deletions
diff --git a/system/vice/vice.SlackBuild b/system/vice/vice.SlackBuild
index ea0180229a..b2f41c5274 100644
--- a/system/vice/vice.SlackBuild
+++ b/system/vice/vice.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=vice
-VERSION=2.1
+VERSION=${VERSION:-2.3.22}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -49,7 +49,7 @@ elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
+ SLKCFLAGS="-O2 -fPIC -pipe"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
@@ -62,7 +62,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.?z
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@@ -75,11 +75,13 @@ find . \
# folder (the folder set up by "make install" is quite broken).
patch -p1 <$CWD/patches/vice-fix-help.patch
+# Small fixes for html doc building, avoid pdf (broken)
+patch -p1 < $CWD/patches/vice-2.3.21-docs-fixes.patch
+
# Use /usr/lib64 on 64-bit Slackware
-[ "$ARCH" == "x86_64" ] && patch -p1 < $CWD/patches/vice-2.1-64bit.patch
+[ "$ARCH" == "x86_64" ] && patch -p1 < $CWD/patches/vice-2.3.21-64bit.patch
-# patch for gcc 4.4
-patch -p0 < $CWD/patches/vice-gcc-4.4.patch
+sh autogen.sh || true
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -89,6 +91,7 @@ CXXFLAGS="$SLKCFLAGS" \
--enable-gnomeui \
--mandir=/usr/man \
--infodir=/usr/info \
+ --disable-ffmpeg \
--build=$ARCH-slackware-linux
make
@@ -97,9 +100,8 @@ make install DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-( cd $PKG/usr/man
- find . -type f -exec gzip -9 {} \;
-)
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
rm -f $PKG/usr/info/dir
gzip -9 $PKG/usr/info/*