summaryrefslogtreecommitdiff
path: root/development/tcc/tcc.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/tcc/tcc.SlackBuild')
-rw-r--r--development/tcc/tcc.SlackBuild30
1 files changed, 14 insertions, 16 deletions
diff --git a/development/tcc/tcc.SlackBuild b/development/tcc/tcc.SlackBuild
index 659ea378a0..50bd4af57f 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-2013 Markus Reichelt, Stolberg (Rhld), DE
+# Copyright (c) 2010-2018 Markus Reichelt, Aachen, DE
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for
@@ -27,15 +27,15 @@
# in memoriam of Georg Ohler
PRGNAM=tcc
-VERSION=${VERSION:-0.9.26}
+VERSION=${VERSION:-0.9.27}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
- *) ARCH=$( uname -m ) ;;
+ *) ARCH=$( uname -m ) ;;
esac
fi
@@ -44,8 +44,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -80,14 +80,17 @@ fi
mkdir -p $PKG/usr/bin $PKG/usr/man/man1 $PKG/usr/doc $PKG/usr/include
-DFLAGS=$LDFLAGS \
-CFLAGS=$SLKCFLAGS \
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --sharedir=/usr \
--libdir=/usr/lib$LIBDIRSUFFIX \
- --sharedir=/usr $OPT
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ $OPT
make
+make -j1 test
make install DESTDIR=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
@@ -96,14 +99,9 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-rm -f $PKG/usr/info/dir
-gzip -9 $PKG/usr/info/*.info*
+gzip -9 $PKG/usr/info/*.info
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-
-mv $PKG/usr/doc/tcc/*.html $PKG/usr/doc/$PRGNAM-$VERSION
-rmdir $PKG/usr/doc/tcc/
-cp -a README* Changelog* COPYING TODO examples/ $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README* Changelog* COPYING RELICENSING examples/ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install