summaryrefslogtreecommitdiffstats
path: root/extra/graphviz/Pkgfile
blob: 0e407953ab595a6c311875fc9e85dd9bc2b641bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Description: Logiciel de visualisation de graphes
# URL: http://www.graphviz.org/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on : expat, libpng, libjpeg, freetype, fontconfig, pango, gtk, libglade, tcl, tk, python, librsvg, libgd
# Run on: expat,libpng,libjpeg,freetype,fontconfig,pango,gtk,libglade,tcl,tk,python,librsvg,libgd

name=graphviz
version=2.26.3
release=1
source=(http://www.graphviz.org/pub/graphviz/ARCHIVE/$name-$version.tar.gz)

build () {
  cd $name-$version

  export CPPFLAGS="$CPPFLAGS -I$JAVA_HOME/include -I$JAVA_HOME/include/linux"

  # préparation puis compilation
  ./configure --prefix=/usr \
    --without-x --with-libgd --with-libpng \
    --with-pngincludedir=/usr/include --with-pnglibdir=/usr/lib \
    --disable-lua \
    --disable-ocaml \
    --disable-perl \
    --disable-php \
    --disable-ruby \
    --disable-rpath

  make
  make DESTDIR=$PKG install

  # pas de code de démo, ni de documentation
  rm -rf $PKG/usr/share/$name/demo \
  $PKG/usr/man/man/ $PKG/usr/share/$name/doc
}