wok-next annotate rrdtool/receipt @ rev 20053

fltk, rrdtool: receipt v2
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Oct 23 17:35:02 2017 +0200 (2017-10-23)
parents b938e6730252
children bce36a298f1e
rev   line source
pascal@20053 1 # SliTaz package receipt v2.
pascal@1437 2
pascal@1437 3 PACKAGE="rrdtool"
pascal@11603 4 VERSION="1.4.6"
pascal@1437 5 CATEGORY="misc"
pascal@1437 6 SHORT_DESC="Data logging and graphing system for time series data."
pascal@1437 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@14702 8 LICENSE="GPL2"
pascal@1437 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@1437 10 WEB_SITE="http://oss.oetiker.ch/$PACKAGE"
pascal@1437 11 WGET_URL="$WEB_SITE/pub/$TARBALL"
pankso@12226 12
al@19790 13 BUILD_DEPENDS="perl-dev pkg-config zlib-dev freetype-dev libpng-dev libxml2-dev \
pascal@11603 14 fontconfig-dev pixman-dev cairo-dev glib-dev pango-dev python-dev perl groff \
pascal@13861 15 libwrap-dev tcl-dev lua5.1-dev ruby"
pascal@20053 16 SPLIT="rrdtool-dev rrdtool-doc rrdtool-lua rrdtool-man rrdtool-perl \
pascal@20053 17 rrdtool-python"
pascal@1437 18
pascal@1437 19 # Rules to configure and make the package.
pascal@1437 20 compile_rules()
pascal@1437 21 {
pascal@11603 22 sed -i 's/PL_sv_undef sv_undef/PL_sv_undef PL_sv_undef/' bindings/perl-shared/RRDs.xs
pascal@17670 23 export LDFLAGS="$LDFLAGS -L/usr/lib/lua/5.1"
pascal@13861 24 TOREMOVE="/usr/include/lua5.1"
pascal@13861 25 ln -s lua/5.1 /usr/include/lua5.1
pascal@13861 26 for i in /usr/bin/lua /usr/bin/luac ; do
pascal@13861 27 [ -e $i ] && continue
pascal@13861 28 ln -s $(basename $i)5.1 $i
pascal@13861 29 TOREMOVE="$TOREMOVE $i"
pascal@13861 30 done
pascal@1437 31 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@20053 32 --enable-perl-site-install \
pascal@20053 33 --mandir=/usr/share/man $CONFIGURE_ARGS &&
pascal@1437 34 make &&
pascal@13861 35 make DESTDIR=$DESTDIR install
pascal@13861 36 for i in $TOREMOVE ; do
pascal@13861 37 rm -f $i
pascal@13861 38 done
pascal@1437 39 }
pascal@1437 40
pascal@1437 41 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1437 42 genpkg_rules()
pascal@1437 43 {
pascal@20053 44 case $PACKAGE in
pascal@20053 45 rrdtool)
pascal@20053 46 DEPENDS="zlib freetype libpng libxml2 fontconfig pixman cairo \
pascal@20053 47 glib pango xcb-util xorg-base-fonts libwrap"
pascal@20053 48 TAGS="logs"
pascal@20053 49 mkdir -p $fs/usr/lib
pascal@20053 50 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@20053 51 cp -a $install/usr/bin $fs/usr
pascal@20053 52 ;;
pascal@20053 53 rrdtool-dev)
pascal@20053 54 CAT="development|Data logging and graphing system for time series data, development file."
pascal@20053 55 DEPENDS="rrdtool"
pascal@20053 56 mkdir -p $fs/usr/lib
pascal@20053 57 cp -a $install/usr/lib/*.a $fs/usr/lib
pascal@20053 58 cp -a $install/usr/include $fs/usr
pascal@20053 59 ;;
pascal@20053 60 rrdtool-doc)
pascal@20053 61 CAT="development|Data logging and graphing system for time series data."
pascal@20053 62 mkdir -p $fs/usr/share
pascal@20053 63 cp -a $install/usr/share/rrdtool $fs/usr/share
pascal@20053 64 cp -a $install/usr/share/doc $fs/usr/share
pascal@20053 65 ;;
pascal@20053 66 rrdtool-lua)
pascal@20053 67 CAT="development|LUA bindings for rrdtool."
pascal@20053 68 DEPENDS="lua5.1 rrdtool"
pascal@20053 69 mkdir -p $fs/usr/lib
pascal@20053 70 cp -a $install/usr/lib/lua $fs/usr/lib/
pascal@20053 71 ;;
pascal@20053 72 rrdtool-man)
pascal@20053 73 CAT="development|Data logging and graphing system for time series data."
pascal@20053 74 mkdir -p $fs/usr/share
pascal@20053 75 cp -a $install/usr/share/man $fs/usr/share
pascal@20053 76 ;;
pascal@20053 77 rrdtool-perl)
pascal@20053 78 CAT="development|Perl bindings for rrdtool."
pascal@20053 79 DEPENDS="perl rrdtool"
pascal@20053 80 mkdir -p $fs/usr/lib
pascal@20053 81 cp -a $install/usr/lib/perl5 $fs/usr/lib/
pascal@20053 82 ;;
pascal@20053 83 rrdtool-python)
pascal@20053 84 CAT="development|Python bindings for rrdtool."
pascal@20053 85 DEPENDS="python rrdtool"
pascal@20053 86 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
pascal@20053 87 mkdir -p $fs/usr/lib
pascal@20053 88 cp -a $install/usr/lib/$PYTHON_LIB $fs/usr/lib
pascal@20053 89 ;;
pascal@20053 90 esac
pascal@1437 91 }