wok-current annotate gettext/receipt @ rev 15612
gettext: update deps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Dec 07 15:01:36 2013 +0000 (2013-12-07) |
parents | c40da21aa3a1 |
children | 7c891860d341 |
rev | line source |
---|---|
pankso@29 | 1 # SliTaz package receipt. |
pankso@29 | 2 |
pankso@29 | 3 PACKAGE="gettext" |
al@14903 | 4 VERSION="0.18.3" |
pankso@204 | 5 CATEGORY="development" |
pankso@29 | 6 SHORT_DESC="Utilities for the GNU Translation Project." |
pankso@29 | 7 MAINTAINER="pankso@slitaz.org" |
al@14903 | 8 LICENSE="GPL3" |
pankso@29 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@29 | 10 WEB_SITE="http://www.gnu.org/software/gettext/" |
pankso@29 | 11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
pankso@12830 | 12 HOST_ARCH="i486 arm" |
pankso@29 | 13 |
pankso@12830 | 14 # Why deps on glib-dev ??? And glib build depends on gettext anyway... |
pascal@15612 | 15 DEPENDS="gettext-base libgomp acl-dev gcc-lib-base glib-dev libxml2-dev m4 \ |
pascal@15612 | 16 ncurses" |
al@14903 | 17 BUILD_DEPENDS="acl attr-dev glib-dev libxml2-dev ncurses-dev" |
pankso@12147 | 18 |
pankso@12830 | 19 # Handle cross compilation. Glibc-locale are installed in cross chroot. |
pankso@12830 | 20 case "$ARCH" in |
pankso@12833 | 21 arm) BUILD_DEPENDS="ncurses-dev libxml2-tools libxml2-dev" ;; |
pankso@12830 | 22 esac |
gokhlayeh@8184 | 23 |
pankso@29 | 24 # Rules to configure and make the package. |
pankso@29 | 25 compile_rules() |
pankso@29 | 26 { |
pankso@29 | 27 cd $src |
pankso@12830 | 28 ./configure $CONFIGURE_ARGS && |
pankso@12830 | 29 make && make install |
pankso@29 | 30 } |
pankso@29 | 31 |
pankso@29 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@29 | 33 genpkg_rules() |
pankso@29 | 34 { |
pankso@2745 | 35 mkdir -p $fs/usr/share |
pankso@12830 | 36 cp -a $install/usr/bin $fs/usr |
pankso@12830 | 37 cp -a $install/usr/lib $fs/usr |
pankso@12830 | 38 cp -a $install/usr/include $fs/usr |
pankso@12830 | 39 cp -a $install/usr/share/aclocal $fs/usr/share |
pankso@12830 | 40 cp -a $install/usr/share/gettext $fs/usr/share |
pankso@2745 | 41 # Remove gettext-base files. |
pankso@2745 | 42 rm $fs/usr/bin/gettext |
pankso@2745 | 43 rm $fs/usr/bin/gettext.sh |
slaxemulator@6808 | 44 rm $fs/usr/bin/envsubst |
slaxemulator@6808 | 45 rm $fs/usr/bin/ngettext |
pankso@12147 | 46 } |