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