wok-next rev 3134

newt: fix compile_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 20 17:32:15 2009 +0200 (2009-05-20)
parents 2a1d27b84c1a
children 02500fe4d147
files newt/receipt
line diff
     1.1 --- a/newt/receipt	Wed May 20 16:13:00 2009 +0200
     1.2 +++ b/newt/receipt	Wed May 20 17:32:15 2009 +0200
     1.3 @@ -19,8 +19,12 @@
     1.4  	# Fixe group/owner
     1.5  	chown -R root.root $src
     1.6  
     1.7 -	sed -i -e "s/python2.4/$(ls -d /usr/lib/python*/ | sed 's|/usr/lib/\(.*\)/|\1|')" \
     1.8 -	       -e "s/tcl8.4/$(ls /usr/lib/libtcl*.so | sed 's|/usr/lib/lib\(.*\).so|\1|')/" \
     1.9 +	python=$(ls -d /usr/lib/python*/ | sed 's|/usr/lib/\(.*\)/|\1|')
    1.10 +	tcl=$(ls /usr/lib/libtcl*.so | sed 's|/usr/lib/lib\(.*\).so|\1|')
    1.11 +
    1.12 +	echo "Patching for $python and $tcl..."
    1.13 +	sed -i -e "s/python2.4/$python/" \
    1.14 +		-e "s/tcl8.4/$tcl/" \
    1.15  	     Makefile.in
    1.16  	./configure --prefix=/usr --infodir=/usr/share/info \
    1.17  	--mandir=/usr/share/man $CONFIGURE_ARGS &&