wok-6.x view newt/receipt @ rev 10042

bison: cross with CONFIGURE_ARGS
author Christophe Lincoln <pankso@slitaz.org>
date Fri May 20 09:00:11 2011 +0200 (2011-05-20)
parents a40238673a42
children 3765f181a6d5
line source
1 # SliTaz package receipt.
3 PACKAGE="newt"
4 VERSION="0.52.12"
5 CATEGORY="development"
6 SHORT_DESC="Not Erik's Windowing Toolkit"
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS="slang popt tcl"
9 BUILD_DEPENDS="slang-dev tcl popt-dev python-dev wget"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="https://fedorahosted.org/newt/"
12 WGET_URL="https://fedorahosted.org/releases/n/e/$PACKAGE/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
19 python=$(ls -d /usr/lib/python*/ | sed 's|/usr/lib/\(.*\)/|\1|' | head -1)
20 tcl=$(ls /usr/lib/libtcl*.so | sed 's|/usr/lib/lib\(.*\).so|\1|')
22 echo "Patching for $python and $tcl..."
23 sed -i -e "s/python2.4/$python/" \
24 -e "s/tcl8.4/$tcl/" \
25 Makefile.in
26 ./configure --prefix=/usr --infodir=/usr/share/info \
27 --mandir=/usr/share/man $CONFIGURE_ARGS &&
28 make &&
29 make instroot=$PWD/_pkg install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/lib
36 cp -a $_pkg/usr/bin $fs/usr
37 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
38 cp -a $_pkg/usr/lib/python* $fs/usr/lib
39 }