summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorKyle Guinn <elyk03@gmail.com>2010-05-13 00:40:29 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:40:29 +0200
commit7f62b352aab3dcb85c2eb14a0795129f7e485163 (patch)
tree600ecba230116639b5428d6c739070ceb42d0324 /system
parent81b725457697bfd2d384253d2a5061812c5b5709 (diff)
downloadslackbuilds-7f62b352aab3dcb85c2eb14a0795129f7e485163.tar.gz
system/gpsbabel: Updated for version 1.3.3
Diffstat (limited to 'system')
-rw-r--r--system/gpsbabel/gpsbabel.SlackBuild24
-rw-r--r--system/gpsbabel/gpsbabel.info2
2 files changed, 19 insertions, 7 deletions
diff --git a/system/gpsbabel/gpsbabel.SlackBuild b/system/gpsbabel/gpsbabel.SlackBuild
index 43c4024d3d..2e883d9940 100644
--- a/system/gpsbabel/gpsbabel.SlackBuild
+++ b/system/gpsbabel/gpsbabel.SlackBuild
@@ -3,13 +3,12 @@
# Slackware build script for gpsbabel
# Written by Kyle Guinn <elyk03@gmail.com>
-set -e
-
PRGNAM=gpsbabel
VERSION=1.3.3
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -17,15 +16,22 @@ 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
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
@@ -33,17 +39,21 @@ chmod -R u+w,go+r-w,a-s .
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--with-zlib=system \
- --without-doc
+ --without-doc \
+ --build=$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
- 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
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
@@ -54,4 +64,4 @@ 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}
diff --git a/system/gpsbabel/gpsbabel.info b/system/gpsbabel/gpsbabel.info
index 247351f6ca..34e75c0d43 100644
--- a/system/gpsbabel/gpsbabel.info
+++ b/system/gpsbabel/gpsbabel.info
@@ -2,7 +2,9 @@ PRGNAM="gpsbabel"
VERSION="1.3.3"
HOMEPAGE="http://www.gpsbabel.org/"
DOWNLOAD="http://downloads.sourceforge.net/gpsbabel/gpsbabel-1.3.3.tar.gz"
+DOWNLOAD_x86_64=""
MD5SUM="0ba7f4c623518e6bfe8da12d0691fb96"
+MD5SUM_x86_64=""
MAINTAINER="Kyle Guinn"
EMAIL="elyk03@gmail.com"
APPROVED="rworkman"