wok-current annotate gettext/receipt @ rev 12833

gettext: fix bdeps (now with cross-compilation we must be even more carefull in some cases)
author Christophe Lincoln <pankso@slitaz.org>
date Tue May 22 16:51:07 2012 +0200 (2012-05-22)
parents fd8053e3df39
children c40da21aa3a1
rev   line source
pankso@29 1 # SliTaz package receipt.
pankso@29 2
pankso@29 3 PACKAGE="gettext"
slaxemulator@6328 4 VERSION="0.18.1.1"
pankso@204 5 CATEGORY="development"
pankso@29 6 SHORT_DESC="Utilities for the GNU Translation Project."
pankso@29 7 MAINTAINER="pankso@slitaz.org"
pankso@29 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@29 9 WEB_SITE="http://www.gnu.org/software/gettext/"
pankso@29 10 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
pankso@12830 11 HOST_ARCH="i486 arm"
pankso@29 12
pankso@12830 13 # Why deps on glib-dev ??? And glib build depends on gettext anyway...
pankso@12147 14 DEPENDS="gettext-base libgomp ncurses gcc-lib-base glib libxml2"
pankso@12833 15 BUILD_DEPENDS="glibc-locale ncurses-dev glib-dev libxml2-tools libxml2-dev"
pankso@12147 16
pankso@12830 17 # Handle cross compilation. Glibc-locale are installed in cross chroot.
pankso@12830 18 case "$ARCH" in
pankso@12833 19 arm) BUILD_DEPENDS="ncurses-dev libxml2-tools libxml2-dev" ;;
pankso@12830 20 esac
gokhlayeh@8184 21
pankso@29 22 # Rules to configure and make the package.
pankso@29 23 compile_rules()
pankso@29 24 {
pankso@29 25 cd $src
pankso@12830 26 ./configure $CONFIGURE_ARGS &&
pankso@12830 27 make && make install
pankso@29 28 }
pankso@29 29
pankso@29 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@29 31 genpkg_rules()
pankso@29 32 {
pankso@2745 33 mkdir -p $fs/usr/share
pankso@12830 34 cp -a $install/usr/bin $fs/usr
pankso@12830 35 cp -a $install/usr/lib $fs/usr
pankso@12830 36 cp -a $install/usr/include $fs/usr
pankso@12830 37 cp -a $install/usr/share/aclocal $fs/usr/share
pankso@12830 38 cp -a $install/usr/share/gettext $fs/usr/share
pankso@2745 39 # Remove gettext-base files.
pankso@2745 40 rm $fs/usr/bin/gettext
pankso@2745 41 rm $fs/usr/bin/gettext.sh
slaxemulator@6808 42 rm $fs/usr/bin/envsubst
slaxemulator@6808 43 rm $fs/usr/bin/ngettext
pankso@12147 44 }