aboutsummaryrefslogtreecommitdiff
path: root/network/bitlbee/bitlbee.SlackBuild
diff options
context:
space:
mode:
authorMichiel van Wessem <michiel@slackbuilds.org>2010-05-13 00:35:49 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:35:49 +0200
commitf9712edd5701d2f83755c05e8e11fba0c1f57e76 (patch)
tree5c1e9736bec89e05f0275bdf29f1a445775f0b85 /network/bitlbee/bitlbee.SlackBuild
parentb4fea017e34667a27e92465976a493b4570121d3 (diff)
network/bitlbee: Updated for version 1.2.4
Diffstat (limited to 'network/bitlbee/bitlbee.SlackBuild')
-rw-r--r--network/bitlbee/bitlbee.SlackBuild20
1 files changed, 15 insertions, 5 deletions
diff --git a/network/bitlbee/bitlbee.SlackBuild b/network/bitlbee/bitlbee.SlackBuild
index ea9ba08b836c2..6bd417110a182 100644
--- a/network/bitlbee/bitlbee.SlackBuild
+++ b/network/bitlbee/bitlbee.SlackBuild
@@ -24,7 +24,7 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=bitlbee
-VERSION=1.2.3
+VERSION=${VERSION:-1.2.4}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -34,10 +34,19 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+# Set the SSL type to use. Since Slackware-13.0 seems to
+# require gnutls to work properly, we'll use that as default.
+CRYPT=${CRYPT:-gnutls}
+
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
@@ -59,8 +68,9 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
- --config=/var/lib/bitlbee \
- --etcdir=/etc/bitlbee \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --config=/var/lib/$PRGNAM \
+ --etcdir=/etc/$PRGNAM \
--mandir=/usr/man \
--msn=1 \
--jabber=1 \
@@ -69,7 +79,7 @@ CXXFLAGS="$SLKCFLAGS" \
--ipv6=1 \
--plugins=1 \
--events=glib \
- --ssl=openssl \
+ --ssl=$CRYPT \
--debug=0 \
--build=$ARCH-slackware-linux \
--host=$ARCH-slackware-linux
@@ -114,4 +124,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
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}