diff options
author | markus reichelt <slackbuilds@mareichelt.de> | 2011-11-06 13:04:47 -0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-11-26 09:09:08 -0600 |
commit | f2a372db40e4f83e2f272c3edb284901c037a339 (patch) | |
tree | 64bd544c43061986483d22b4b2d7a9c59ea3925c /development/tcc/tcc.SlackBuild | |
parent | 754c5a8fc5b3059046825d8e621f40d48fe206ed (diff) | |
download | slackbuilds-f2a372db40e4f83e2f272c3edb284901c037a339.tar.gz |
development/tcc: Added some fixes.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
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 |