CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
gettext: updated to 0.19.8.1
[crossrootfs.git] / gettext / Pkgfile
CommitLineData
6dca1d21
JB
1# Description: The GNU internationalization library
2# URL: http://www.gnu.org/software/gettext/
3# Maintainer: CRUX System Team, core-ports at crux dot nu
b751b192 4# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
3e879875 5# Depends on: ncurses acl
6dca1d21
JB
6
7name=gettext
95b81b5c 8version=0.19.8.1
ca2da3ee 9release=1
95b81b5c 10source=(http://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.gz)
6dca1d21
JB
11
12build() {
13 cd $name-$version
72c8cd6d 14
6dca1d21
JB
15 cat > config.cache << EOF
16am_cv_func_iconv_works=yes
17gl_cv_func_wcwidth_works=yes
18gt_cv_func_printf_posix=yes
19gt_cv_int_divbyzero_sigfpe=yes
20EOF
5469c668 21
6dca1d21
JB
22 ./configure --build=$CHOST \
23 --host=$CTARGET \
24 --prefix=/usr \
6dca1d21
JB
25 --disable-csharp \
26 --disable-{,native-}java \
27 --disable-nls \
2f4f8f9a 28 --without-{emacs,git} \
6dca1d21 29 --with-included-{glib,libcroco,libxml} \
3e879875 30 --with-sysroot=$CLFS \
6dca1d21 31 --cache-file=config.cache
6c86fc7c
VM
32
33 # get rid of host lib search dirs from Makefiles
34 for mk in $(find -name Makefile) ; do
35 sed -i 's|-L/usr/lib||' $mk
36 done
37
38 # use same type fix as done for gcc port, to prevent libtool
39 # from linking in host libraries
40 for lt_file in $(find -name 'libtool') ; do
41 sed -i 's/func_append add_dir \" /add_dir=\"/' $lt_file
42 done
43
6dca1d21
JB
44 make
45 make -j1 DESTDIR=$PKG install
46 rm -r $PKG/usr/share/{info,doc}
3e879875 47 rm $PKG/usr/share/gettext/intl/COPYING.LIB
6dca1d21 48}