summaryrefslogtreecommitdiff
path: root/libraries/libopensync-plugin-syncml/libopensync-plugin-syncml.SlackBuild
diff options
context:
space:
mode:
authorMichael Wagner <slackware.wagnerm@arcor.de>2010-05-13 00:31:31 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:31:31 +0200
commit00e4da59903b248fd18e397aa45781df1a9ae339 (patch)
tree3bb50dfa7030fc98af1a4ba161ef34bf53bea230 /libraries/libopensync-plugin-syncml/libopensync-plugin-syncml.SlackBuild
parentfc4191c267018099130985abf6c895ed83cf8881 (diff)
downloadslackbuilds-00e4da59903b248fd18e397aa45781df1a9ae339.tar.gz
libraries/libopensync-plugin-syncml: Updated for version 0.22
Diffstat (limited to 'libraries/libopensync-plugin-syncml/libopensync-plugin-syncml.SlackBuild')
-rw-r--r--libraries/libopensync-plugin-syncml/libopensync-plugin-syncml.SlackBuild28
1 files changed, 18 insertions, 10 deletions
diff --git a/libraries/libopensync-plugin-syncml/libopensync-plugin-syncml.SlackBuild b/libraries/libopensync-plugin-syncml/libopensync-plugin-syncml.SlackBuild
index e995f4646a..733cfe8ac8 100644
--- a/libraries/libopensync-plugin-syncml/libopensync-plugin-syncml.SlackBuild
+++ b/libraries/libopensync-plugin-syncml/libopensync-plugin-syncml.SlackBuild
@@ -1,6 +1,7 @@
#!/bin/sh
-#
+
# Slackware build script for libopensync-plugin-syncml
+
# (C) 2008 Michael Wagner <slackware.wagnerm@arcor.de>
# All rights reserved.
#
@@ -32,12 +33,15 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-DOCS="AUTHORS COPYING ChangeLog INSTALL NEWS README"
-
if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686 -Wno-error"
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686 -Wno-error"
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
set -e
@@ -55,15 +59,19 @@ 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
+CFLAGS="$SLKCFLAGS -Wno-error" \
+CXXFLAGS="$SLKCFLAGS -Wno-error" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --disable-http \
+ --build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
chmod 644 $PKG/usr/doc/$PRGNAM-$VERSION/*
@@ -71,4 +79,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}