summaryrefslogtreecommitdiff
path: root/system/cdemu-daemon/cdemu-daemon.SlackBuild
diff options
context:
space:
mode:
authorNiklas Nille Åkerström <nille.kungen[AT]gmail.com>2010-05-13 00:39:48 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:39:48 +0200
commitce34ad1f5cfc2e1454e87afcab561aa396bb8560 (patch)
treef62286e890c9504b417ed1221307dfcda07e479b /system/cdemu-daemon/cdemu-daemon.SlackBuild
parente57f37f3c1d9976a6eb1db3388507589b29e7836 (diff)
downloadslackbuilds-ce34ad1f5cfc2e1454e87afcab561aa396bb8560.tar.gz
system/cdemu-daemon: Updated for version 1.1.0
Diffstat (limited to 'system/cdemu-daemon/cdemu-daemon.SlackBuild')
-rw-r--r--system/cdemu-daemon/cdemu-daemon.SlackBuild11
1 files changed, 8 insertions, 3 deletions
diff --git a/system/cdemu-daemon/cdemu-daemon.SlackBuild b/system/cdemu-daemon/cdemu-daemon.SlackBuild
index 10df638abb..89f3205b4c 100644
--- a/system/cdemu-daemon/cdemu-daemon.SlackBuild
+++ b/system/cdemu-daemon/cdemu-daemon.SlackBuild
@@ -37,10 +37,13 @@ GROUP=${GROUP:-cdrom}
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,15 +57,17 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R a-s,u+rw,go+r-w .
+patch -p2 -i $CWD/cdemu-daemon-1.1.0-cdemud-daemon.diff
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib$LIBDIRSUFFIX \
--sysconfdir=/etc \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
- --build=$ARCH-slackware-linux \
- --host=$ARCH-slackware-linux
+ --build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
@@ -96,7 +101,7 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
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}
if [ "$1" = "--cleanup" ]; then
rm -rf $PKG $TMP/$PRGNAM-$VERSION