development/re2c: Updated for version 0.13.5
This commit is contained in:
parent
9a0037ad6e
commit
13c6f64b23
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# Slackware build script for re2c
|
# Slackware build script for re2c
|
||||||
|
|
||||||
# Copyright 2008 LukenShiro <lukenshiro@ngi.it>
|
# Copyright 2008-9 LukenShiro <lukenshiro@ngi.it>
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use of this script, with or without modification, is
|
# 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
|
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
|
||||||
PRGNAM=re2c
|
PRGNAM=re2c
|
||||||
VERSION=${VERSION:-0.13.5}
|
VERSION=${VERSION:-0.13.5}
|
||||||
ARCH=${ARCH:-i486}
|
ARCH=${ARCH:-i486}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-2}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
CWD=$(pwd)
|
CWD=$(pwd)
|
||||||
|
@ -39,8 +38,13 @@ DOCFILES="README CHANGELOG htdocs/manual.html doc/loplas.ps"
|
||||||
|
|
||||||
if [ "$ARCH" = "i486" ]; then
|
if [ "$ARCH" = "i486" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
elif [ "$ARCH" = "i686" ]; then
|
elif [ "$ARCH" = "i686" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
|
elif [ "$ARCH" = "x86_64" ]; then
|
||||||
|
SLKCFLAGS="-O2 -fPIC"
|
||||||
|
LIBDIRSUFFIX="64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set -e # Exit on most errors
|
set -e # Exit on most errors
|
||||||
|
@ -61,7 +65,8 @@ CXXFLAGS="$SLKCFLAGS" \
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||||
|
--docdir=/usr/doc/$PRGNAM-$VERSION
|
||||||
|
|
||||||
make
|
make
|
||||||
# in order to regenerate scanner.cc file
|
# in order to regenerate scanner.cc file
|
||||||
|
|
|
@ -5,4 +5,4 @@ DOWNLOAD="http://downloads.sourceforge.net/re2c/re2c-0.13.5.tar.gz"
|
||||||
MD5SUM="4a97d8f77ed6d2c76c8bd840a43f5633"
|
MD5SUM="4a97d8f77ed6d2c76c8bd840a43f5633"
|
||||||
MAINTAINER="LukenShiro"
|
MAINTAINER="LukenShiro"
|
||||||
EMAIL="lukenshiro@ngi.it"
|
EMAIL="lukenshiro@ngi.it"
|
||||||
APPROVED="Erik Hanson"
|
APPROVED="dsomero"
|
||||||
|
|
Loading…
Reference in New Issue