libraries/openmotif: Updated for version 2.3.0

This commit is contained in:
Vincent Batts 2010-05-12 17:41:58 +02:00 committed by Erik Hanson
parent ddb5265cf1
commit 0a756064ce
3 changed files with 41 additions and 13 deletions

View file

@ -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 || exit 1
make install DESTDIR=$PKG || exit 1
make
make install DESTDIR=$PKG
# 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

View file

@ -5,4 +5,4 @@ DOWNLOAD="ftp://ftp.ics.com/openmotif/2.3/2.3.0/openmotif-2.3.0.tar.gz"
MD5SUM="99d0ecb84d3504da421021a19ff70500"
MAINTAINER="Vincent Batts"
EMAIL="vbatts@batts.mine.nu"
APPROVED="Erik Hanson"
APPROVED="Erik Hanson,rworkman"

View file

@ -1,4 +1,12 @@
openmotif: openMotif ( X libraries)
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
|-----handy-ruler-------------------------------------------------------|
openmotif: openMotif (X libraries)
openmotif:
openmotif: Open Motif is the freely available source code
openmotif: distribution for the Motif user interface component
@ -6,3 +14,6 @@ openmotif: toolkit. Open Motif is built on top of the standard
openmotif: X Toolkit(Xt) and X11 libraries.
openmotif:
openmotif:
openmotif:
openmotif:
openmotif: