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