wok rev 14249

gxine: fix build for 0.5.905 (last 0.5.907 have lirc bugs)
author Christophe Lincoln <pankso@slitaz.org>
date Mon Mar 25 11:24:21 2013 +0100 (2013-03-25)
parents 786aeb618875
children b6a09f38aa31
files gxine/receipt gxine/stuff/gxine-0.5.907-lirc.patch
line diff
     1.1 --- a/gxine/receipt	Mon Mar 25 09:48:51 2013 +0100
     1.2 +++ b/gxine/receipt	Mon Mar 25 11:24:21 2013 +0100
     1.3 @@ -5,38 +5,54 @@
     1.4  CATEGORY="multimedia"
     1.5  SHORT_DESC="GTK+ Xine media player user interface."
     1.6  MAINTAINER="jozee@slitaz.org"
     1.7 -DEPENDS="xine-lib libvorbis gtk+ spidermonkey hal"
     1.8 -BUILD_DEPENDS="spidermonkey-dev spidermonkey xine-lib xine-lib-dev xorg-dev \
     1.9 -gtk+-dev hal dbus xorg-libXinerama xorg-libXext xorg-libX11 xorg-xextproto perl"
    1.10  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.11  WEB_SITE="http://www.xine-project.org"
    1.12  WGET_URL="http://switch.dl.sourceforge.net/sourceforge/xine/$TARBALL"
    1.13  
    1.14 +DEPENDS="xine-lib libvorbis gtk+ spidermonkey dbus"
    1.15 +BUILD_DEPENDS="spidermonkey-dev xine-lib-dev xorg-dev dbus-dev \
    1.16 +gtk+-dev xorg-libXinerama-dev xorg-libXext-dev xorg-xextproto perl \
    1.17 +xorg-libXv-dev xorg-videoproto xorg-xf86vidmodeproto"
    1.18 +
    1.19  # Rules to configure and make the package.
    1.20  
    1.21  compile_rules()
    1.22  {
    1.23  	cd $src
    1.24 -	./configure --prefix=/usr \
    1.25 +	
    1.26 +	# Fix for glib2 (-lm)
    1.27 +	sed -i "/<glib\//d" src/*
    1.28 +	export LDFLAGS="-Wl,--copy-dt-needed-entries"
    1.29 +	
    1.30 +	# Fix for lirc
    1.31 +	#patch -p0 < $stuff/gxine-0.5.907-lirc.patch || return 1
    1.32 +	
    1.33 +	#--with-logo-format=image
    1.34 +	./configure \
    1.35 +		--prefix=/usr \
    1.36  		--mandir=/usr/share/man \
    1.37  		--sysconfdir=/etc \
    1.38 +		--with-dbus \
    1.39  		--with-spidermonkey=/usr/include/js \
    1.40  		--without-browser-plugin \
    1.41 +		--without-hal \
    1.42  		--disable-lirc \
    1.43 +		--disable-deprecated \
    1.44  		--disable-integration-wizard \
    1.45 +		--disable-own-playlist-parsers \
    1.46 +		VENDOR_PKG_VERSION="$VERSION; SliTaz GNU/Linux" \
    1.47  		$CONFIGURE_ARGS &&
    1.48 -	make &&
    1.49 -	make DESTDIR=$PWD/_pkg install
    1.50 +	make && make DESTDIR=$DESTDIR install
    1.51  }
    1.52  
    1.53  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.54  genpkg_rules()
    1.55  {
    1.56  	mkdir -p $fs/usr/share $fs/etc $fs/usr/lib
    1.57 -	cp -a $_pkg/usr/bin $fs/usr
    1.58 -        cp -a $_pkg/usr/lib/$PACKAGE $fs/usr/lib
    1.59 -	cp -a $_pkg/usr/share/$PACKAGE $fs/usr/share
    1.60 -        cp -a $_pkg/usr/share/pixmaps $fs/usr/share
    1.61 -	cp -a $_pkg/etc $fs
    1.62 +	cp -a $install/usr/bin $fs/usr
    1.63 +	cp -a $install/usr/lib/$PACKAGE $fs/usr/lib
    1.64 +	cp -a $install/usr/share/$PACKAGE $fs/usr/share
    1.65 +	cp -a $install/usr/share/pixmaps $fs/usr/share
    1.66 +	cp -a $install/etc $fs
    1.67  }
    1.68  
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/gxine/stuff/gxine-0.5.907-lirc.patch	Mon Mar 25 11:24:21 2013 +0100
     2.3 @@ -0,0 +1,15 @@
     2.4 +--- configure.lirc	2012-02-20 20:10:20.000000000 +0100
     2.5 ++++ configure	2012-02-22 14:11:53.873870212 +0100
     2.6 +@@ -18463,10 +18463,10 @@ fi
     2.7 + 
     2.8 +      if test "$found_lirc" = no -a x"$cross_compiling" != xyes; then
     2.9 +         if test x"$LIRC_PREFIX" != "x"; then
    2.10 +-           lirc_libprefix="$LIRC_PREFIX/lib"
    2.11 ++           lirc_libprefix="$LIRC_PREFIX/$(libdir)"
    2.12 + 	   LIRC_INCLUDE="-I$LIRC_PREFIX/include"
    2.13 +         fi
    2.14 +-        for llirc in $lirc_libprefix /lib /usr/lib /usr/local/lib; do
    2.15 ++        for llirc in $lirc_libprefix $(libdir); do
    2.16 +           as_ac_File=`$as_echo "ac_cv_file_"$llirc/liblirc_client.so"" | $as_tr_sh`
    2.17 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"$llirc/liblirc_client.so\"" >&5
    2.18 + $as_echo_n "checking for \"$llirc/liblirc_client.so\"... " >&6; }