diff options
Diffstat (limited to 'system/rmw/rmw.SlackBuild')
-rw-r--r-- | system/rmw/rmw.SlackBuild | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/system/rmw/rmw.SlackBuild b/system/rmw/rmw.SlackBuild index 906114f0c479c..fbeb7e2e4748c 100644 --- a/system/rmw/rmw.SlackBuild +++ b/system/rmw/rmw.SlackBuild @@ -5,17 +5,37 @@ # Written by (Andy Alt) (andyqwerty@users.sourceforge.net) PRGNAM=rmw -VERSION=${VERSION:-0.98.3.9beta} +VERSION=${VERSION:-0.98.4.2beta} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -ARCH=noarch # only bash script here +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM 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" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + set -e rm -rf $PKG @@ -31,11 +51,15 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --mandir=/usr/man \ - --docdir=/usr/doc/$PRGNAM-$VERSION + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux +# Compile the application and install it into the $PKG directory make make install DESTDIR=$PKG |