summaryrefslogtreecommitdiff
path: root/libraries/libxmi/libxmi.SlackBuild
diff options
context:
space:
mode:
authorDavid Spencer <nobbutl@yahoo.co.uk>2010-05-13 00:32:14 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:32:14 +0200
commitdf94b19b090233d6fe8fd66d8bd6b6642b14f429 (patch)
treed3dde3eff65f67f11636c7271fb8a40e29b6d1ad /libraries/libxmi/libxmi.SlackBuild
parent77b9dd70547f319793409876308cededb4eaaba2 (diff)
downloadslackbuilds-df94b19b090233d6fe8fd66d8bd6b6642b14f429.tar.gz
libraries/libxmi: Updated for version 1.2
Diffstat (limited to 'libraries/libxmi/libxmi.SlackBuild')
-rw-r--r--libraries/libxmi/libxmi.SlackBuild33
1 files changed, 26 insertions, 7 deletions
diff --git a/libraries/libxmi/libxmi.SlackBuild b/libraries/libxmi/libxmi.SlackBuild
index 3778bcbe8c..1fa51db449 100644
--- a/libraries/libxmi/libxmi.SlackBuild
+++ b/libraries/libxmi/libxmi.SlackBuild
@@ -7,7 +7,7 @@
PRGNAM=libxmi
VERSION=1.2
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -17,8 +17,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
@@ -32,31 +37,45 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
+# Substitute newer automake files that know about x86_64
+# (as for SBo's soundtouch)
+am=$(automake --version | grep "1." | cut -d " " -f 4 | cut -d "." -f 2)
+for i in config.guess config.sub depcomp install-sh missing; do
+ rm -f $i
+ ln -s /usr/share/automake-1.$am/$i $i
+done
+
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib$LIBDIRSUFFIX \
--sysconfdir=/etc \
--localstatedir=/var \
- --disable-static
+ --disable-static \
+ --build=$ARCH-slackware-linux \
+ --host=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
)
rm -f $PKG/usr/info/dir
gzip -9 $PKG/usr/info/*.info*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS COPYING CUSTOMIZE ChangeLog INSTALL NEWS README \
- README-X TODO VERSION $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ AUTHORS COPYING CUSTOMIZE ChangeLog INSTALL NEWS README* TODO VERSION \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
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}