CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
gettext: fixed issues with glibc 'gets' removal (aligned with upstream)
[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
6dca1d21
JB
5# Depends on: ncurses
6
7name=gettext
ca2da3ee
VM
8version=0.18.1.1
9release=1
6dca1d21
JB
10source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz)
11
12build() {
13 cd $name-$version
72c8cd6d
VM
14 # fix for glibc 'gets' removal
15 sed -i -e '/gets is a/d' $name-*/*/stdio.in.h
16
6dca1d21
JB
17 cat > config.cache << EOF
18am_cv_func_iconv_works=yes
19gl_cv_func_wcwidth_works=yes
20gt_cv_func_printf_posix=yes
21gt_cv_int_divbyzero_sigfpe=yes
22EOF
23 ./configure --build=$CHOST \
24 --host=$CTARGET \
25 --prefix=/usr \
26 --mandir=/usr/man \
27 --disable-csharp \
28 --disable-{,native-}java \
29 --disable-nls \
30 --without-emacs \
31 --with-included-{glib,libcroco,libxml} \
32 --cache-file=config.cache
33 make
34 make -j1 DESTDIR=$PKG install
35 rm -r $PKG/usr/share/{info,doc}
36 rm $PKG/usr/share/gettext/intl/{COPYING*,ChangeLog}
37}