wok-next view gtkdatabox/receipt @ rev 11573

Fix build/host configure option in recipes which was not detecting the right ones well + tiny fixes.
author Antoine Bodin <gokhlayeh@slitaz.org>
date Mon Jan 02 23:06:18 2012 +0100 (2012-01-02)
parents f2a1563a472d
children d94859bd28b4
line source
1 # SliTaz package receipt.
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 DEPENDS="gtk+"
9 BUILD_DEPENDS="pkg-config"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://sourceforge.net/projects/gtkdatabox/"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
19 # Fix from gentoo
20 # http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/x11-libs/gtkdatabox/gtkdatabox-0.9.1.1.ebuild?view=markup
21 # Remove -D.*DISABLE_DEPRECATED cflags
22 find . -iname 'Makefile.am' -exec \
23 sed -e '/-D[A-Z_]*DISABLE_DEPRECATED/d' -i {} + && \
24 # Do Makefile.in after Makefile.am to avoid automake maintainer-mode
25 find . -iname 'Makefile.in' -exec \
26 sed -e '/-D[A-Z_]*DISABLE_DEPRECATED/d' -i {} + && \
28 ./configure $CONFIGURE_ARGS && make && make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/lib
35 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
36 }