aboutsummaryrefslogtreecommitdiff
path: root/games/pcsx-df/pcsx-df.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/pcsx-df/pcsx-df.SlackBuild')
-rw-r--r--games/pcsx-df/pcsx-df.SlackBuild14
1 files changed, 11 insertions, 3 deletions
diff --git a/games/pcsx-df/pcsx-df.SlackBuild b/games/pcsx-df/pcsx-df.SlackBuild
index 0a6b1bb5271eb..4368ba8d22134 100644
--- a/games/pcsx-df/pcsx-df.SlackBuild
+++ b/games/pcsx-df/pcsx-df.SlackBuild
@@ -35,10 +35,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
set -e
@@ -54,6 +57,11 @@ chmod -R u+w,go+r-w,a-s .
patch -p1 -i $CWD/pcsx.pthread.patch
+for i in dfbinimage dfcdrom dfinput dfiso dfOpenGL dfsound dfxvideo; do
+ sed -i "s|\$(prefix)/lib/|\$(prefix)/lib$LIBDIRSUFFIX/|g" \
+ plugins/$i/Makefile.am
+done
+
chmod +x ./autogen.sh
./autogen.sh
@@ -62,13 +70,13 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib$LIBDIRSUFFIX \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
--disable-static \
--disable-nautilusburn \
- --build=$ARCH-slackware-linux \
- --host=$ARCH-slackware-linux
+ --build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
@@ -87,4 +95,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}