#!/bin/sh # Slackware build script for graphviz # Copyright 2007 Robby Workman # Copyright 2011 Heinz Wiesinger # Copyright 2013-2015 Audrius Kažukauskas # Copyright 2016-2017 tde-slackbuilds - modified for inclusion in build method # All rights reserved. # # Redistribution and use of this script, with or without modification, is # permitted provided that the following conditions are met: # # 1. Redistributions of this script must retain the above copyright # notice, this list of conditions and the following disclaimer. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO # EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=graphviz VERSION=${VERSION:-2.40.1} BUILD=${BUILD:-1} TAG=${TAG:-_tde} SRCURL="https://ftp.osuosl.org/pub/blfs/conglomeration/graphviz/graphviz-$VERSION.tar.gz" ARCHIVE_TYPE="tar.gz" source ../../get-source.sh getsource_fn untar_fn listdocs_fn chown_fn #cd_builddir_fn source $SRCDIR/patches # set file permissions setperms # Install PHP bindings to proper location. phpbindings # Fix for php-5.4 and patches from Arch (thanks!) patches CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ LDFLAGS="$SLKLDFLAGS" \ CC=${COMPILER} \ CXX=${COMPILER_CXX} \ ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --mandir=/usr/man \ --enable-ocaml=no make $NUMJOBS || exit 1 make install-strip DESTDIR=$PKG || exit 1 ## The primary purpose of this build is for 'dot' for kscope. ## If you want the pdf and html documentation, then comment out this line: rmdoc # Install config file for PHP. graphvizini # gzip man pages gzipman # Remove empty directories of language bindings that are absent. emptydirs # Create a "dummy" config file in /usr/lib${LIBDIRSUFFIX}/graphviz ... dummy installdocs_fn strip_fn mkdir_install_fn echo " # HOW TO EDIT THIS FILE: # The 'handy ruler' below makes it easier to edit a package description. Line # up the first '|' above the ':' following the base package name, and the '|' # on the right side marks the last column you can put a character in. You must # make exactly 11 lines for the formatting to be correct. It's also # customary to leave one space after the ':'. |-----handy-ruler------------------------------------------------------| $PRGNAM: $PRGNAM (Graph Visualization) $PRGNAM: $PRGNAM: Graphviz is open source graph visualization software. $PRGNAM: It has several main graph layout programs. It also has $PRGNAM: web and interactive graphical interfaces, and auxiliary $PRGNAM: tools, libraries, and language bindings. $PRGNAM: $PRGNAM: Homepage: http://graphviz.org/ $PRGNAM: $PRGNAM: $PRGNAM: $PRGNAM:Homepage: http://graphviz.org/ " > $PKG/install/slack-desc doinstsh makepkg_fn