diff options
Diffstat (limited to 'development/tcc/tcc.SlackBuild')
-rw-r--r-- | development/tcc/tcc.SlackBuild | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/development/tcc/tcc.SlackBuild b/development/tcc/tcc.SlackBuild index d7bc39db74..e463f85bed 100644 --- a/development/tcc/tcc.SlackBuild +++ b/development/tcc/tcc.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for tiny c compiler -# Copyright (c) 2010 Markus Reichelt, Aachen, DE +# Copyright (c) 2010,2011 Markus Reichelt, Aachen, DE # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -26,10 +26,11 @@ # markus reichelt, slackbuilds@mareichelt.de, 0xCCEEF115 # in memoriam of Georg Ohler # 2010 Aug 23 - initial release - +# 2011 Oct 30 - incorporated fixes & Makefile patch from Vincent Batts + PRGNAM=tcc VERSION=${VERSION:-0.9.25} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -79,21 +80,29 @@ if [ "$CROSS" = "yes" ]; then else OPT="" fi +cat $CWD/makefile_destdir.patch | patch -p1 --backup + mkdir -p $PKG/usr/bin $PKG/usr/man/man1 $PKG/usr/doc $PKG/usr/include DFLAGS=$LDFLAGS \ CFLAGS=$SLKCFLAGS \ ./configure \ - --prefix=$PKG/usr \ - --libdir=$PKG/usr/lib$LIBDIRSUFFIX \ - --tccdir=$PKG/usr/lib$LIBDIRSUFFIX/tcc \ - --docdir=$PKG/usr/doc $OPT + --prefix=/usr \ + --libdir=/usr/lib$LIBDIRSUFFIX \ + --tccdir=/usr/lib$LIBDIRSUFFIX/tcc \ + --docdir=/usr/doc $OPT + +if [ "$ARCH" = "x86_64" ] ; then + sed -i 's/lib/lib64/' config.h + sed -i 's/lib\//lib64\//' config.mak +fi make #make test # this fails on x86_64 make install \ - tccdir=$PKG/usr/lib${LIBDIRSUFFIX}/tcc \ - docdir=$PKG/usr/doc/$PRGNAM-$VERSION + DESTDIR=$PKG \ + tccdir=/usr/lib${LIBDIRSUFFIX}/tcc \ + docdir=/usr/doc/$PRGNAM-$VERSION find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |