aboutsummaryrefslogtreecommitdiff
path: root/libraries/openmotif/openmotif.SlackBuild
diff options
context:
space:
mode:
authorVincent Batts <vbatts@batts.mine.nu>2010-05-12 17:41:58 +0200
committerErik Hanson <erik@slackbuilds.org>2010-05-12 17:41:58 +0200
commit0a756064ce51bf7d91034546eb2340b63f2711e0 (patch)
treeda1fcac1f5d3e0466372db6ef21e6d73d04a333c /libraries/openmotif/openmotif.SlackBuild
parentddb5265cf1000930971c1981377d893b1b8dc768 (diff)
libraries/openmotif: Updated for version 2.3.0
Diffstat (limited to 'libraries/openmotif/openmotif.SlackBuild')
-rw-r--r--libraries/openmotif/openmotif.SlackBuild39
1 files changed, 28 insertions, 11 deletions
diff --git a/libraries/openmotif/openmotif.SlackBuild b/libraries/openmotif/openmotif.SlackBuild
index 5629e3f76b8d..f30990e46139 100644
--- a/libraries/openmotif/openmotif.SlackBuild
+++ b/libraries/openmotif/openmotif.SlackBuild
@@ -5,13 +5,12 @@
# Written by Vincent Batts, vbatts@batts.mine.nu
# Modified by SlackBuilds.org
-set -e
-
PRGNAM=openmotif
VERSION=2.3.0
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -19,16 +18,23 @@ 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
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xzvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
-cd $PRGNAM-$VERSION || exit 1
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -40,18 +46,27 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
--enable-themes \
- --disable-static || exit 1
+ --disable-static \
+ --build=$ARCH-slackware-linux
+
+make
+make install DESTDIR=$PKG
-make || exit 1
-make install DESTDIR=$PKG || exit 1
+# Let's not conflict with some already installed stuff in other packages
+mv $PKG/usr/bin/tree $PKG/usr/bin/tree.openmotif
+mv $PKG/usr/bin/column $PKG/usr/bin/column.openmotif
+mv $PKG/usr/man/man3/Shell.3 $PKG/usr/man/man3/Shell.openmotif.3
( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
- 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
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
)
( cd $PKG/usr/man
@@ -60,7 +75,9 @@ make install DESTDIR=$PKG || exit 1
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a COPYRIGHT.MOTIF INSTALL.configure BUGREPORT ChangeLog LICENSE README RELNOTES RELEASE $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ COPYRIGHT* INSTALL* BUGREPORT ChangeLog LICENSE README RELNOTES RELEASE \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install