wok-current view newt/receipt @ rev 15944

Make lzma cross compile and fix libxml2
author Christophe Lincoln <pankso@slitaz.org>
date Sun Feb 23 00:35:49 2014 +0100 (2014-02-23)
parents 3765f181a6d5
children 200d202603ff
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://fedorahosted.org/newt/"
11 WGET_URL="https://fedorahosted.org/releases/n/e/$PACKAGE/$TARBALL"
13 DEPENDS="slang popt tcl"
14 BUILD_DEPENDS="slang-dev tcl popt-dev python-dev wget"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
21 python=$(ls -d /usr/lib/python*/ | sed 's|/usr/lib/\(.*\)/|\1|' | head -1)
22 tcl=$(ls /usr/lib/libtcl*.so | sed 's|/usr/lib/lib\(.*\).so|\1|')
24 echo "Patching for $python and $tcl..."
25 sed -i -e "s/python2.4/$python/" \
26 -e "s/tcl8.4/$tcl/" \
27 Makefile.in
28 ./configure --prefix=/usr --infodir=/usr/share/info \
29 --mandir=/usr/share/man $CONFIGURE_ARGS &&
30 make &&
31 make instroot=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/lib
38 cp -a $install/usr/bin $fs/usr
39 cp -a $install/usr/lib/*.so* $fs/usr/lib
40 cp -a $install/usr/lib/python* $fs/usr/lib
41 }