wok-6.x view graphviz/receipt @ rev 24422
updated claws-mail packages (3.17.5 -> 3.18.0)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 11 16:39:51 2022 +0100 (2022-02-11) |
parents | dc0f7fd1ff7d |
children | 1d2403d460ef |
line source
1 # SliTaz package receipt.
3 PACKAGE="graphviz"
4 VERSION="2.42.2"
5 CATEGORY="x-window"
6 SHORT_DESC="Automatic graph drawing."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="Eclipse"
9 WEB_SITE="https://www.graphviz.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://gitlab.com/graphviz/graphviz/-/archive/stable_release_$VERSION/graphviz-stable_release_$VERSION.tar.gz"
14 DEPENDS="expat gcc83-lib-base jpeg libpng librsvg libxml2 pcre
15 util-linux-uuid zlib"
16 BUILD_DEPENDS="gcc83 expat-dev gdk-pixbuf-dev guile-dev jpeg-dev
17 libcroco-dev libgd-dev libpng-dev librsvg-dev libxml2-dev
18 lua-dev ocaml pango-dev pcre-dev php-cli php-dev pkg-config
19 python-dev ruby-dev swig tcl-dev tk-dev util-linux-uuid-dev
20 xorg-dev zlib-dev automake sed"
22 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
26 sed '/tar.gz/!d;s|.*/graphviz-\(.*\).tar.gz".*|\1|' | sed '/^[0-9]/!d'| sort -Vr | sed q
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 sed -i 's/.*php5.*/&\n sed -i "s|char .type_name;|const \&|" gv_php.cpp/' \
33 tclpkg/gv/Makefile*
34 sed -i 's/.*PHPWRITE.*/ TSRMLS_FETCH();\n&/' \
35 tclpkg/gv/gv_php_init.c
37 ./autogen.sh
38 ./configure \
39 CC=gcc-83 \
40 CXX=g++-83 \
41 --prefix=/usr \
42 --infodir=/usr/share/info \
43 --disable-static \
44 --disable-gtk \
45 --disable-gtkgl \
46 --disable-gtkglext \
47 --with-pangocairo \
48 --with-x \
49 --with-gdk-pixbuf \
50 --with-ghostscript=no \
51 --without-gtk \
52 --without-gtkgl \
53 --without-gtkglext \
54 --without-glade \
55 --with-ortho=no \
56 --disable-sharp \
57 --disable-java \
58 --enable-guile=yes \
59 --with-rsvg=yes \
60 --with-png=yes \
61 --with-jpeg=yes \
62 --enable-lua=yes \
63 --enable-ocaml=yes \
64 --enable-php=yes \
65 --enable-ruby=yes \
66 --enable-tcl=yes \
67 --enable-python=yes \
68 --disable-python23 \
69 --disable-python24 \
70 --disable-python25 \
71 --disable-python26 \
72 --disable-r \
73 --mandir=/usr/share/man \
74 $CONFIGURE_ARGS &&
75 make &&
76 make DESTDIR=$DESTDIR install
77 }
79 # Rules to gen a SliTaz package suitable for Tazpkg.
80 genpkg_rules()
81 {
82 mkdir -p $fs/usr/lib
83 mkdir -p $fs/usr/share/graphviz
85 cp -a $install/usr/lib/*.so* $fs/usr/lib
86 cp -a $install/usr/lib/pkgconfig $fs/usr/lib/
87 cp -a $install/usr/lib/graphviz $fs/usr/lib/
88 rm -f $fs/usr/lib/graphviz/*.la
89 cp -a $install/usr/share/graphviz/lefty $fs/usr/share/graphviz
90 cp -a $install/usr/share/graphviz/gvpr $fs/usr/share/graphviz
91 cp -a $install/usr/share/graphviz/graphs $fs/usr/share/graphviz
92 cp -a $install/usr/bin $fs/usr
93 }