summaryrefslogtreecommitdiffstats
path: root/graphics/graphviz/graphviz.SlackBuild
diff options
context:
space:
mode:
author Arn02022-05-04 17:02:16 +0200
committer Willy Sudiarto Raharjo2022-05-07 08:59:25 +0200
commitb56fa5a4781c43d3583c1279443cc3dc0c81df02 (patch)
tree07cf4206832b90e2cc2dbab0e272f24e051bdd1c /graphics/graphviz/graphviz.SlackBuild
parent508a40723580cc99200389f025ed62c8f9a240b1 (diff)
downloadslackbuilds-b56fa5a4781c43d3583c1279443cc3dc0c81df02.tar.gz
graphics/graphviz: Updated for version 3.0.0.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/graphviz/graphviz.SlackBuild')
-rw-r--r--graphics/graphviz/graphviz.SlackBuild19
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