diff options
Diffstat (limited to 'graphics/dvisvgm/dvisvgm.SlackBuild')
-rw-r--r-- | graphics/dvisvgm/dvisvgm.SlackBuild | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/graphics/dvisvgm/dvisvgm.SlackBuild b/graphics/dvisvgm/dvisvgm.SlackBuild index cdf1dfc0539e9..ee54426624751 100644 --- a/graphics/dvisvgm/dvisvgm.SlackBuild +++ b/graphics/dvisvgm/dvisvgm.SlackBuild @@ -1,7 +1,8 @@ #!/bin/sh - # Slackware build script for dvisvgm - +# SlackBuild Version: 151119 +# Copyright 2015 Igor ( igor29768 AT gmail.com ) +# Based on the SlackBuild script by Rudson Alves (rudsonalves@yahoo.com.br) # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=dvisvgm -VERSION=${VERSION:-1.4} +VERSION=${VERSION:-1.12} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -69,18 +70,22 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; # Libkpathsea check... -if [ ! -e /usr/include/kpathsea ]; then -# ln -s /usr/share/texmf/include/kpathsea /usr/include/kpathsea - export CPPFLAGS="${CPPFLAGS} -I/usr/share/texmf/include/" +# If Slackware tetex is installed +if [ -d /usr/share/texmf/include/kpathsea ] && [ ! -e /usr/include/kpathsea ]; then + cp -r /usr/share/texmf/include/kpathsea/ $TMP/$PRGNAM-$VERSION + cd kpathsea + patch -i $CWD/c-std.h.diff + cd .. + export CPPFLAGS+="$SLKCFLAGS -I$TMP/$PRGNAM-$VERSION" fi -if [ ! -e /usr/lib${LIBDIRSUFFIX}/libkpathsea.a ]; then -# ln -s /usr/share/texmf/lib/libkpathsea.a /usr/lib${LIBDIRSUFFIX}/libkpathsea.a -# ln -s /usr/share/texmf/lib/libkpathsea.la /usr/lib${LIBDIRSUFFIX}/libkpathsea.la - export LIBS="${LIBS} -l/usr/share/texmf/lib/" - export LDFLAGS="${LDFLAGS} -L/usr/share/texmf/lib/" +if [ ! -e /usr/lib${LIBDIRSUFFIX}/libkpathsea.la ] && [ -e /usr/share/texmf/lib/libkpathsea.la ]; then + LIBS+=" -l/usr/share/texmf/lib/" + export LDFLAGS+=" -L/usr/share/texmf/lib/" fi +echo "CPPFLAGS=$CPPFLAGS LIBS=$LIBS LDFLAGS=$LDFLAGS" + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ |