development/regina-rexx: Update script.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Richard Narron 2019-11-01 06:18:25 +07:00 committed by Willy Sudiarto Raharjo
parent 90bab4d5ad
commit f29328247a
No known key found for this signature in database
GPG Key ID: 887B8374D7333381
2 changed files with 17 additions and 8 deletions

View File

@ -8,11 +8,19 @@ inexperienced programmers yet powerful enough for experienced users.
It is also a language ideally suited as a macro language for other
applications.
To create a static version of the rexx binary executable do this:
FLAVOR=static ./regina-rexx.SlackBuild
To create the normal dynamic version just do this:
sh regina-rexx.SlackBuild
Otherwise to create the normal dynamic version just do this:
./regina-rexx.SlackBuild
Or to create a static version of the rexx binary executable do this:
1) The Slackware 14.2 ncurses package is built without static libraries.
This prevents the static build of regina-rexx from loading properly.
In this case:
a) Modify the ncurses.SlackBuild and change the "--without-normal"
option to "--with-normal"
b) Rebuild and reinstall the ncurses package.
2) FLAVOR=static sh regina-rexx.SlackBuild
After installation of the package, a startup script for the rxstack is created:
/etc/rc.d/rc.rxstack

View File

@ -6,7 +6,7 @@
PRGNAM=regina-rexx
VERSION=${VERSION:-3.9.1}
DOCVERSION=${DOCVERSION:-3.9.1}
BUILD=${BUILD:-2}
BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
FLAVOR=${FLAVOR:-dynamic} # set FLAVOR=static for a rexx static binary.
@ -25,8 +25,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"
@ -70,7 +70,7 @@ CXXFLAGS="$SLKCFLAGS" \
--build=$ARCH-slackware-linux
make -j1
make install DESTDIR=$PKG
make -j1 install DESTDIR=$PKG
mkdir -p $PKG/etc/rc.d/
install -m0644 $CWD/rc.rxstack $PKG/etc/rc.d/rc.rxstack.new
@ -83,6 +83,7 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
install -m0644 $CWD/regutil.pdf $PKG/usr/doc/$PRGNAM-$VERSION/regutil-$DOCVERSION.pdf
install -m0644 $CWD/regina.pdf $PKG/usr/doc/$PRGNAM-$VERSION/regina-$DOCVERSION.pdf
install -m0644 README* HACKERS.txt $PKG/usr/doc/$PRGNAM-$VERSION
install -m0644 $CWD/README $PKG/usr/doc/$PRGNAM-$VERSION/README.slackware
install -m0644 $CWD/$PRGNAM.SlackBuild $PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKG/install