diff options
author | Igor <igor29768@gmail.com> | 2015-11-21 09:34:28 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-11-21 09:34:52 +0700 |
commit | 736d73a2c6b71473804f4bf14a00f1352e0dc560 (patch) | |
tree | 49629aa669d412b35ba9753c6e677abc21fd52e6 /graphics/dvisvgm/dvisvgm.SlackBuild | |
parent | 9eb5161cd5cedc95d67b0fa67e295f21c6839e3e (diff) | |
download | slackbuilds-736d73a2c6b71473804f4bf14a00f1352e0dc560.tar.gz |
graphics/dvisvgm: Updated for version 1.12 + new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
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 cdf1dfc053..ee54426624 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 \ |