wok diff lirc/receipt @ rev 4718

pingus: fix build gcc4 and scons.
author erjo@localhost
date Tue Jan 05 13:23:23 2010 +0100 (2010-01-05)
parents 5c6c9ee5f21e
children 8752c40cc534
line diff
     1.1 --- a/lirc/receipt	Tue Jul 21 14:30:27 2009 +0000
     1.2 +++ b/lirc/receipt	Tue Jan 05 13:23:23 2010 +0100
     1.3 @@ -15,23 +15,24 @@
     1.4  compile_rules()
     1.5  {
     1.6  	cd $src
     1.7 -	
     1.8 +
     1.9  	# Up through at least lirc 0.8.5, lirc_gpio doesn't build with kernel 2.6.22+
    1.10  	echo "Disabling build of drivers/lirc_gpio due to kernel incompatibility"
    1.11  	sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.am
    1.12  	sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.in
    1.13 -	
    1.14 +
    1.15  	# lirc_parallel is not SMP safe
    1.16  	echo "Disabling build of drivers/lirc_parallel due to SMP incompatibility"
    1.17  	sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.am
    1.18  	sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.in
    1.19 -	
    1.20 +
    1.21  	./configure \
    1.22  		--prefix=/usr \
    1.23  		--with-x \
    1.24  		--with-driver=all \
    1.25  		--with-kerneldir=/usr/src/linux \
    1.26 -		--with-moduledir=/lib/modules/$(uname -r)/kernel/misc \
    1.27 +		--with-moduledir=/lib/modules/$(cat $WOK/linux/receipt | grep ^VERSION | \
    1.28 +			cut -d "\"" -f 2)/kernel/misc \
    1.29  		$CONFIGURE_ARGS &&
    1.30  	make &&
    1.31  	make DESTDIR=$src/_pkg install
    1.32 @@ -44,7 +45,7 @@
    1.33  	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    1.34  	cp -a $_pkg/usr/bin $fs/usr
    1.35  	cp -a $_pkg/usr/sbin $fs/usr
    1.36 -	
    1.37 +
    1.38  	cp -a $_pkg/dev $fs
    1.39  	cp -a $_pkg/lib $fs
    1.40  }