diff options
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 4a07552240d02..ede6da59c2f48 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 |