summaryrefslogtreecommitdiff
path: root/development
diff options
context:
space:
mode:
Diffstat (limited to 'development')
-rw-r--r--development/re2c/re2c.SlackBuild13
-rw-r--r--development/re2c/re2c.info2
2 files changed, 10 insertions, 5 deletions
diff --git a/development/re2c/re2c.SlackBuild b/development/re2c/re2c.SlackBuild
index c07ea8a040..9ff8a0d122 100644
--- a/development/re2c/re2c.SlackBuild
+++ b/development/re2c/re2c.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for re2c
-# Copyright 2008 LukenShiro <lukenshiro@ngi.it>
+# Copyright 2008-9 LukenShiro <lukenshiro@ngi.it>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,11 +22,10 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
PRGNAM=re2c
VERSION=${VERSION:-0.13.5}
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -39,8 +38,13 @@ DOCFILES="README CHANGELOG htdocs/manual.html doc/loplas.ps"
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 # Exit on most errors
@@ -61,7 +65,8 @@ CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--mandir=/usr/man \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --docdir=/usr/doc/$PRGNAM-$VERSION
make
# in order to regenerate scanner.cc file
diff --git a/development/re2c/re2c.info b/development/re2c/re2c.info
index d2c14fc88b..2ee7349ce9 100644
--- a/development/re2c/re2c.info
+++ b/development/re2c/re2c.info
@@ -5,4 +5,4 @@ DOWNLOAD="http://downloads.sourceforge.net/re2c/re2c-0.13.5.tar.gz"
MD5SUM="4a97d8f77ed6d2c76c8bd840a43f5633"
MAINTAINER="LukenShiro"
EMAIL="lukenshiro@ngi.it"
-APPROVED="Erik Hanson"
+APPROVED="dsomero"