diff options
Diffstat (limited to 'graphics/graphviz/graphviz.SlackBuild')
-rw-r--r-- | graphics/graphviz/graphviz.SlackBuild | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/graphics/graphviz/graphviz.SlackBuild b/graphics/graphviz/graphviz.SlackBuild index c5c6c5053e..18153c395d 100644 --- a/graphics/graphviz/graphviz.SlackBuild +++ b/graphics/graphviz/graphviz.SlackBuild @@ -6,7 +6,7 @@ # Modified by Robby Workman <rworkman@slackbuilds.org> PRGNAM=graphviz -VERSION=2.22.2 +VERSION=2.26.2 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -18,17 +18,21 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi set -e # Exit on most errors -rm -rf $PKG $TMP/$PRGNAM-$VERSION -mkdir -p $PKG $PKG $OUTPUT +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT cd $TMP +rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . @@ -38,8 +42,11 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --mandir=/usr/man \ - --disable-static + --disable-static \ + --enable-ocaml=no \ + --build=$ARCH-slackware-linux make make install-strip DESTDIR=$PKG @@ -50,13 +57,13 @@ make install-strip DESTDIR=$PKG ) # Remove empty directories of language bindings that are absent -find $PKG/usr/lib/graphviz -depth -type d -empty -exec rmdir {} \; +find $PKG/usr/lib${LIBDIRSUFFIX}/graphviz -depth -type d -empty -exec rmdir {} \; -# Create a "dummy" config file in /usr/lib/graphviz so that it will be removed -# when the package is uninstalled. This file is generated by the postinstall -# script, and contains information about available plugins, so this is (or at -# least should be) safe. -touch $PKG/usr/lib/graphviz/config +# Create a "dummy" config file in /usr/lib${LIBDIRSUFFIX}/graphviz so that it +# will be removed when the package is uninstalled. This file is generated by +# the postinstall script and contains information about available plugins, so +# this is (or at least should be) safe. +touch $PKG/usr/lib${LIBDIRSUFFIX}/graphviz/config6 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a INSTALL README* $PKG/usr/doc/$PRGNAM-$VERSION @@ -69,4 +76,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |