diff options
author | Ruben Schuller <code@rbn.im> | 2021-07-06 01:47:10 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-10-22 11:39:52 +0700 |
commit | c79a4c8e2d1524384c270c9264f68c066a0460d9 (patch) | |
tree | 2acaadeb380064440b043161a456ed5ca79cd603 /system/heirloom-doctools/heirloom-doctools.SlackBuild | |
parent | d21008ba056636c5ce432852a0f78f1c09687233 (diff) |
system/heirloom-doctools: Updated for version 191015.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/heirloom-doctools/heirloom-doctools.SlackBuild')
-rw-r--r-- | system/heirloom-doctools/heirloom-doctools.SlackBuild | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/system/heirloom-doctools/heirloom-doctools.SlackBuild b/system/heirloom-doctools/heirloom-doctools.SlackBuild index 4a07552240d0..ede6da59c2f4 100644 --- a/system/heirloom-doctools/heirloom-doctools.SlackBuild +++ b/system/heirloom-doctools/heirloom-doctools.SlackBuild @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=heirloom-doctools -VERSION=${VERSION:-160308} +VERSION=${VERSION:-191015} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -70,7 +70,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-${VERSION}.tar.gz +tar xvf $CWD/$PRGNAM-${VERSION}.tar.bz2 cd $PRGNAM-$VERSION chown -R root:root . @@ -82,8 +82,22 @@ find -L . \ patch < $CWD/patches/mk.config.patch-$VERSION -make -make install ROOT=$PKG +# with new bison this doesn't work anymore so we need berkeley yacc +# also with newer gcc we need -fcommon as tryglf is defined multiple +# times. +SLKCFLAGS="$SLKCFLAGS -fcommon" + +YACC=/usr/bin/byacc \ +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure + +# we still need to build with -j1 +YACC=/usr/bin/byacc \ +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +make -j1 +make -j1 install ROOT=$PKG find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |