aboutsummaryrefslogtreecommitdiff
path: root/system/vice/vice.SlackBuild
diff options
context:
space:
mode:
authorMauro Giachero <mauro dot giachero at gmail dot com>2010-05-11 22:27:10 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-11 22:27:10 +0200
commita0113494621cbdb7d16dc868e05edd2da8225eed (patch)
tree2209cb45bae678b9e424308f0d1bd24383699395 /system/vice/vice.SlackBuild
parentf2f5525d6e9993424d0b67593864dabfadd55285 (diff)
system/vice: Updated for version 2.0
Diffstat (limited to 'system/vice/vice.SlackBuild')
-rw-r--r--system/vice/vice.SlackBuild30
1 files changed, 14 insertions, 16 deletions
diff --git a/system/vice/vice.SlackBuild b/system/vice/vice.SlackBuild
index f2ff136a431d..2d21966bc118 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=1.22
+VERSION=2.0
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -33,16 +33,12 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-# Parallel compilation support
-JOBS=${JOBS:-1}
-
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -march=x86-64"
- LIBSUFFIX="64"
+ SLKCFLAGS="-O2 -fPIC"
fi
set -e # Exit on most errors
@@ -60,14 +56,14 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Replace the hardcoded "netscape" HTML viewer with "htmlview" and set
-# the help path correctly with respect to the actually installed doc folder
-# (the folder set up by "make install" is quite broken)
-patch -p1 <$CWD/vice-fix-help.patch
+# Fix PAL emulation.
+# This is an official patch to release 2.0 and has been applied upstream.
+zcat $CWD/gnome-palemu.diff.gz |patch -p0
-# This patch fixes the libdir path for 64 bit builds
-# (configure doesn't honor --libdir)
-[ "$LIBSUFFIX" = "64" ] && patch -p1 <$CWD/vice-lib64.patch
+# Set the help path correctly with respect to the actually installed doc
+# folder (the folder set up by "make install" is quite broken).
+# This also changes the HTML help viewer from "firefox" to "htmlview".
+patch -p1 <$CWD/vice-fix-help.patch
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -75,9 +71,11 @@ CXXFLAGS="$SLKCFLAGS" \
--prefix=/usr \
--enable-fullscreen \
--enable-gnomeui \
+ --mandir=/usr/man \
+ --infodir=/usr/info \
--build=$ARCH
-make -j$JOBS
+make
make install DESTDIR=$PKG
( cd $PKG
@@ -100,13 +98,13 @@ cp -R doc $PKG/usr/doc/$PRGNAM-$VERSION
find $PKG/usr/doc/$PRGNAM-$VERSION -name "Makefile*" -exec rm -f {} \;
find $PKG/usr/doc/$PRGNAM-$VERSION -name "tex*" -exec rm -f {} \;
# Copy additional program documentation
-cp -a AUTHORS FEEDBACK INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS ChangeLog COPYING FEEDBACK INSTALL NEWS README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
# Create link to documentation folder in the place VICE expects
# to find it (looks like the VICE team does something strange with
# the build scripts, as it resulted very difficult to actually set
# a different doc folder)
-( cd $PKG/usr/lib$LIBSUFFIX/$PRGNAM
+( cd $PKG/usr/lib/$PRGNAM
ln -s /usr/doc/$PRGNAM-$VERSION doc
)