wok-current rev 8868

Fix: gtkdatabox compile_rules()
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sat Feb 26 06:03:58 2011 +0100 (2011-02-26)
parents 02cc6d6760e4
children 0c37136aee2d
files gtkdatabox/receipt
line diff
     1.1 --- a/gtkdatabox/receipt	Sat Feb 26 05:46:04 2011 +0100
     1.2 +++ b/gtkdatabox/receipt	Sat Feb 26 06:03:58 2011 +0100
     1.3 @@ -6,7 +6,7 @@
     1.4  SHORT_DESC="Widget for live display of large amounts of fluctuating data."
     1.5  MAINTAINER="pankso@slitaz.org"
     1.6  DEPENDS="gtk+"
     1.7 -BUILD_DEPENDS="pkg-config gtk+-dev"
     1.8 +BUILD_DEPENDS="pkg-config"
     1.9  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.10  WEB_SITE="http://sourceforge.net/projects/gtkdatabox/"
    1.11  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.12 @@ -15,15 +15,17 @@
    1.13  compile_rules()
    1.14  {
    1.15  	cd $src
    1.16 -	sed -i -e 's/GTK_WIDGET_REALIZED/gtk_widget_get_realized/g' \
    1.17 -	       -e 's/GTK_WIDGET_STATE/gtk_widget_get_state/g' \
    1.18 -	       -e 's/GTK_WIDGET_VISIBLE/gtk_widget_get_visible/g' \
    1.19 -	       -e 's/GTK_WIDGET_DRAWABLE/gtk_widget_is_drawable/g' \
    1.20 -	       gtk/gtkdatabox_ruler.c gtk/gtkdatabox.c
    1.21 -	./configure \
    1.22 -		--prefix=/usr \
    1.23 -		$CONFIGURE_ARGS &&
    1.24 -	make && make DESTDIR=$PWD/_pkg install
    1.25 +
    1.26 +	# Fix from gentoo
    1.27 +	# http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/x11-libs/gtkdatabox/gtkdatabox-0.9.1.1.ebuild?view=markup
    1.28 +	# Remove -D.*DISABLE_DEPRECATED cflags
    1.29 +	find . -iname 'Makefile.am' -exec \
    1.30 +	sed -e '/-D[A-Z_]*DISABLE_DEPRECATED/d' -i {} + && \
    1.31 +	# Do Makefile.in after Makefile.am to avoid automake maintainer-mode
    1.32 +	find . -iname 'Makefile.in' -exec \
    1.33 +	sed -e '/-D[A-Z_]*DISABLE_DEPRECATED/d' -i {} + && \
    1.34 +
    1.35 +	./configure && make && make install
    1.36  }
    1.37  
    1.38  # Rules to gen a SliTaz package suitable for Tazpkg.