wok-next view graphviz/receipt @ rev 20709
cdrdao: add patch.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat May 26 17:09:29 2018 +0300 (2018-05-26) |
parents | 30af4e7aa239 |
children | 2cd2ab749160 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="graphviz"
4 VERSION="2.40.1"
5 CATEGORY="x-window"
6 SHORT_DESC="Automatic graph drawing"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="Eclipse"
9 WEB_SITE="http://www.graphviz.org/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/graphviz.html"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="http://graphviz.org/pub/graphviz/stable/SOURCES/$TARBALL"
15 BUILD_DEPENDS="automake xorg-dev expat-dev zlib-dev libpng16-dev \
16 libjpeg-turbo-dev libgd-dev swig ocaml python-dev tcl-dev tk-dev librsvg-dev \
17 ruby-dev libcroco-dev util-linux-uuid-dev pango-dev libxml2-dev gdk-pixbuf-dev \
18 guile-dev pcre-dev perl-dev libtool" # php-dev lua-dev
19 SPLIT="graphviz-dev graphviz-doc graphviz-demo graphviz-guile graphviz-ocaml \
20 graphviz-perl graphviz-python graphviz-ruby graphviz-tcl graphviz"
21 COOKOPTS="skip-log-errors"
23 # FIXME: PHP and Lua support is temporarily disabled
24 # (PHP broken itself, Lua breaks the Graphviz)
26 compile_rules() {
27 sed -i '/ruby/s/1\.9/2.4/' configure.ac
28 sed -i '/LIBPOSTFIX="64"/s/64//' configure.ac
29 autoreconf &&
31 ./configure $CONFIGURE_ARGS &&
32 fix libtool &&
33 make &&
34 make install
35 }
37 genpkg_rules() {
38 case $PACKAGE in
39 *-dev)
40 copy @dev
41 DEPENDS="graphviz graphviz-guile graphviz-ocaml graphviz-perl \
42 graphviz-python graphviz-ruby graphviz-tcl \
43 bzip2-dev cairo-dev expat-dev fontconfig-dev freetype-dev \
44 gdk-pixbuf-dev glib-dev gmp-dev harfbuzz-dev libjpeg-turbo-dev \
45 libcroco-dev libffi-dev libgd-dev libpng16-dev librsvg-dev libtool \
46 libxml2-dev pango-dev pcre-dev util-linux-blkid-dev \
47 util-linux-mount-dev util-linux-uuid-dev xorg-libX11-dev \
48 xorg-libXau-dev xorg-libXdmcp-dev xorg-libXext-dev xorg-libXpm-dev \
49 xorg-libXrender-dev xorg-libxcb-dev xorg-pixman-dev xz-dev zlib-dev"
50 SUGGESTED="guile-dev ocaml perl-dev python-dev ruby-dev tcl-dev"
51 ;;
52 *-doc)
53 CAT="doc|documentation"
54 copy doc/
55 ;;
56 *-demo)
57 CAT="development|demo"
58 copy demo/
59 DEPENDS="graphviz perl python ruby tcl"
60 ;;
61 *-guile)
62 copy guile/ @rm
63 CAT="x-window|Guile bindings"
64 DEPENDS="graphviz expat gmp guile libltdl zlib"
65 ;;
66 *-ocaml)
67 copy ocaml/ @rm
68 CAT="x-window|Ocaml bindings"
69 DEPENDS="graphviz expat libltdl zlib"
70 ;;
71 *-perl)
72 copy perl/ perl5/ @rm
73 CAT="x-window|Perl bindings"
74 DEPENDS="graphviz expat libltdl perl perl-core zlib"
75 ;;
76 *-python)
77 copy python/ python2.7/ @rm
78 CAT="x-window|Python bindings"
79 DEPENDS="graphviz expat libltdl python zlib"
80 ;;
81 *-ruby)
82 copy ruby/ @rm
83 CAT="x-window|Python bindings"
84 DEPENDS="graphviz expat gmp libltdl libruby zlib"
85 ;;
86 *-tcl)
87 copy tcl/ tcl8.6/ @rm
88 CAT="x-window|Tcl bindings"
89 DEPENDS="graphviz bzlib cairo expat fontconfig freetype glib \
90 libffi libgd libharfbuzz libjpeg-turbo libltdl liblzma libpng16 \
91 libxml2 pango pcre xorg-libX11 xorg-libXau xorg-libXdmcp \
92 xorg-libXext xorg-libXpm xorg-libXrender xorg-libxcb xorg-pixman \
93 zlib"
94 ;;
95 graphviz)
96 copy @std @rm
97 DEPENDS="bzlib cairo expat fontconfig freetype gdk-pixbuf glib \
98 libcroco libffi libgd libharfbuzz libjpeg-turbo libltdl liblzma \
99 libpng16 librsvg libxml2 pango pcre util-linux-blkid \
100 util-linux-mount util-linux-uuid xorg-libICE xorg-libSM \
101 xorg-libX11 xorg-libXau xorg-libXaw xorg-libXdmcp xorg-libXext \
102 xorg-libXmu xorg-libXpm xorg-libXrender xorg-libXt xorg-libxcb \
103 xorg-pixman zlib"
104 ;;
105 esac
106 find $fs -name '*.la' -delete
107 }