diff options
Diffstat (limited to 'graphics/graphviz/graphviz.SlackBuild')
-rw-r--r-- | graphics/graphviz/graphviz.SlackBuild | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/graphics/graphviz/graphviz.SlackBuild b/graphics/graphviz/graphviz.SlackBuild index f869e4c5cf..b01c7229ed 100644 --- a/graphics/graphviz/graphviz.SlackBuild +++ b/graphics/graphviz/graphviz.SlackBuild @@ -2,6 +2,7 @@ # Slackware build script for graphviz +# Copyright 2022 Yth | Pont-en-Royans, France | yth@ythogtha.org # Copyright 2007 Robby Workman <rworkman@slackbuilds.org> # Copyright 2011 Heinz Wiesinger <pprkut@slackbuilds.org> # Copyright 2013-2017 Audrius Kažukauskas <audrius@neutrino.lt> @@ -27,7 +28,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=graphviz -VERSION=${VERSION:-2.40.1} +VERSION=${VERSION:-3.0.0} BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -72,7 +73,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -81,15 +82,7 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# Install PHP bindings to proper location. -sed -i 's|/php/modules|/php/extensions|' configure - -# Fix for php-5.4 -patch -p1 -i $CWD/php_5.4_compat.patch - -# Patch from Arch (thanks!) -patch -p1 -i $CWD/ghostscript918.patch - +./autogen.sh CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \ @@ -98,8 +91,6 @@ LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --mandir=/usr/man \ --disable-static \ - --enable-ocaml=no \ - --enable-php=no \ --build=$ARCH-slackware-linux make @@ -107,7 +98,7 @@ make install-strip DESTDIR=$PKG # Install config file for PHP. mkdir -p $PKG/etc/php.d -sed "s|@LIBDIRSUFFIX@|$LIBDIRSUFFIX|" $CWD/graphviz.ini > $PKG/etc/php.d/graphviz.ini.new +cat $CWD/graphviz.ini > $PKG/etc/php.d/graphviz.ini.new find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done |