diff options
author | Audrius Kažukauskas <neobug@tornado.ktu.lt> | 2010-05-11 14:55:16 +0200 |
---|---|---|
committer | Michiel van Wessem <michiel@slackbuilds.org> | 2010-05-11 14:55:16 +0200 |
commit | fdb8fac77cc9addc29479801ee5fed6ab1c3b244 (patch) | |
tree | 3d9bf3293d19b2742442352f740ed069e10f7479 /graphics/graphviz/graphviz.SlackBuild | |
parent | 00ac0880373bd1b2648fcf41442012ffed9e66fe (diff) |
graphics/graphviz: Initial import
Diffstat (limited to 'graphics/graphviz/graphviz.SlackBuild')
-rw-r--r-- | graphics/graphviz/graphviz.SlackBuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/graphics/graphviz/graphviz.SlackBuild b/graphics/graphviz/graphviz.SlackBuild new file mode 100644 index 0000000000000..5aa299a41b2a1 --- /dev/null +++ b/graphics/graphviz/graphviz.SlackBuild @@ -0,0 +1,66 @@ +#!/bin/sh + +# Slackware build script for graphviz + +# Written by Audrius Kažukauskas + +# Exit on most errors +set -e + +PRGNAM=graphviz +VERSION=2.12 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +CWD=`pwd` +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +fi + +rm -rf $PKG $TMP/$PRGNAM-$VERSION +mkdir -p $PKG $PKG $OUTPUT +cd $TMP +tar -zxvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION + +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --with-mylibgd \ + --disable-static + +make +make install-strip DESTDIR=$PKG + +if [ -d $PKG/usr/man ]; then +( cd $PKG/usr/man + find . -type f -exec gzip -9 {} \; + for i in `find . -type l` ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +) +fi + +# Remove empty directories of language bindings that are absent +find $PKG/usr/lib/graphviz -depth -type d -empty -exec rmdir {} \; + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a INSTALL README* $PKG/usr/doc/$PRGNAM-$VERSION +mv $PKG/usr/share/$PRGNAM/doc/* $PKG/usr/doc/$PRGNAM-$VERSION +rmdir $PKG/usr/share/$PRGNAM/doc/ +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +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 |