wok-current view gettext/receipt @ rev 19088

cross/arm: fix build for ell busybox flex ninvaders
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Apr 30 18:20:33 2016 +0200 (2016-04-30)
parents dab94fc8b27a
children 7392cb9148ca
line source
1 # SliTaz package receipt.
3 PACKAGE="gettext"
4 VERSION="0.19.4"
5 CATEGORY="development"
6 SHORT_DESC="Utilities for the GNU Translation Project."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.gnu.org/software/gettext/"
11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
12 HOST_ARCH="i486 arm"
14 # Why deps on glib-dev ??? And glib build depends on gettext anyway...
15 DEPENDS="gettext-base libgomp acl-dev gcc-lib-base glib-dev libxml2-dev m4 \
16 ncurses gettext-tools"
17 BUILD_DEPENDS="acl attr-dev glib-dev libxml2-dev ncurses-dev"
19 # Handle cross compilation. Glibc-locale are installed in cross chroot.
20 case "$ARCH" in
21 arm) BUILD_DEPENDS="ncurses-dev libxml2-tools libxml2-dev" ;;
22 esac
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure $CONFIGURE_ARGS &&
28 make && make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/share
35 cp -a $install/usr/bin $fs/usr
36 cp -a $install/usr/lib $fs/usr
37 cp -a $install/usr/include $fs/usr
38 cp -a $install/usr/share/aclocal $fs/usr/share
39 cp -a $install/usr/share/gettext $fs/usr/share
41 # Remove "gettext-base" and "gettext-tools" files.
42 for bin in gettext gettext.sh envsubst ngettext msgcat msgfmt msgmerge xgettext; do
43 rm $fs/usr/bin/$bin
44 done
45 rm $fs/usr/lib/libgettextlib*.so*
46 rm $fs/usr/lib/libgettextsrc*.so*
47 }