summaryrefslogtreecommitdiff
path: root/development/xdebug/xdebug.SlackBuild
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@slackbuilds.org>2011-03-21 17:17:42 +0100
committerRobby Workman <rworkman@slackbuilds.org>2011-03-24 19:22:35 -0500
commitb4bb23f5c0e747e03c992c1409a5b533f2294b52 (patch)
treed45107144cec32549d2dbffe81ba233710a737ad /development/xdebug/xdebug.SlackBuild
parenta2b3360f94eaf4b14101d5e989c59af7b74caaad (diff)
downloadslackbuilds-b4bb23f5c0e747e03c992c1409a5b533f2294b52.tar.gz
development/xdebug: New maintainer and updated for version 2.1.0
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'development/xdebug/xdebug.SlackBuild')
-rw-r--r--development/xdebug/xdebug.SlackBuild34
1 files changed, 19 insertions, 15 deletions
diff --git a/development/xdebug/xdebug.SlackBuild b/development/xdebug/xdebug.SlackBuild
index 034ba6c893..5be925b0af 100644
--- a/development/xdebug/xdebug.SlackBuild
+++ b/development/xdebug/xdebug.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for xdebug
# Copyright (c) 2010, Antonio Hernández Blas <hba.nihilismus@gmail.com>
+# Copyright 2011 Heinz Wiesinger, Amsterdam, The Netherlands
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -22,16 +23,14 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=xdebug
-VERSION=${VERSION:-2.0.5}
+VERSION=${VERSION:-2.1.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -83,15 +82,22 @@ CXXFLAGS="$SLKCFLAGS" \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
+ --with-php-config=/usr/bin/php-config \
--build=$ARCH-slackware-linux \
--enable-xdebug
# Build xdebug
make
+# Prepare for installation
+EXTENSION_DIR="$PKG/$(/usr/bin/php-config --extension-dir)"
+mkdir -p $EXTENSION_DIR
+
+# Install xdebug
+make install DESTDIR=$PKG EXTENSION_DIR=$EXTENSION_DIR
+
# Build and install debugclient
-( set -e
- cd debugclient
+cd debugclient
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -104,28 +110,26 @@ make
--build=$ARCH-slackware-linux \
--with-libedit
make
- mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/debugclient
- cp -a INSTALL LICENSE $PKG/usr/doc/$PRGNAM-$VERSION/debugclient
make install DESTDIR=$PKG
-) || exit 1
+cd -
-# Prepare for installation
-EXTENSION_DIR=$PKG/$(/usr/bin/php-config --extension-dir)
-mkdir -p $EXTENSION_DIR
-
-# Install xdebug
-make install DESTDIR=$PKG EXTENSION_DIR=$EXTENSION_DIR
+mkdir -p $PKG/etc/php
+install -m 644 $CWD/xdebug.ini $PKG/etc/php/xdebug.ini.new
+sed -i "s/LIBDIR/lib$LIBDIRSUFFIX/g" $PKG/etc/php/xdebug.ini.new
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/debugclient
cp -a CREDITS Changelog LICENSE NEWS README \
$PKG/usr/doc/$PRGNAM-$VERSION
+cp -a debugclient/INSTALL debugclient/LICENSE \
+ $PKG/usr/doc/$PRGNAM-$VERSION/debugclient
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
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.${PKGTYPE:-tgz}