wok-next view gtkdatabox/receipt @ rev 20576

gtkdatabox: add DSO
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Apr 14 02:49:57 2018 +0300 (2018-04-14)
parents 0ec6086e21d6
children a3c581bf52b8
line source
1 # SliTaz package receipt v2.
3 PACKAGE="gtkdatabox"
4 VERSION="0.9.1.1"
5 CATEGORY="development"
6 SHORT_DESC="Widget for live display of large amounts of fluctuating data"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="http://sourceforge.net/projects/gtkdatabox/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="libffi gtk+-dev"
15 SPLIT="gtkdatabox-dev"
17 compile_rules() {
18 export LDFLAGS="$LDFLAGS -lm"
20 # Fix from gentoo
21 # http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/x11-libs/gtkdatabox/gtkdatabox-0.9.1.1.ebuild?view=markup
22 # Remove -D.*DISABLE_DEPRECATED cflags
23 find . -iname 'Makefile.am' -exec \
24 sed -e '/-D[A-Z_]*DISABLE_DEPRECATED/d' -i {} + && \
25 # Do Makefile.in after Makefile.am to avoid automake maintainer-mode
26 find . -iname 'Makefile.in' -exec \
27 sed -e '/-D[A-Z_]*DISABLE_DEPRECATED/d' -i {} + && \
29 ./configure $CONFIGURE_ARGS &&
30 fix libtool &&
31 make &&
32 make install
33 }
35 genpkg_rules() {
36 case $PACKAGE in
37 gtkdatabox)
38 copy @std
39 DEPENDS="gtk+"
40 ;;
41 *-dev)
42 copy @dev
43 ;;
44 esac
45 }