CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
bash: updated to 4.3.42
[ports/core-arm.git] / glibc / Pkgfile
CommitLineData
34fed911
VM
1# Description: The C library used in the GNU system
2# URL: http://www.gnu.org/software/libc/
3# Maintainer: CRUX System Team, core-ports at crux dot nu
4# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
5# Depends on:
6
7name=glibc
d6e43ba0
VM
8version=2.19
9release=2
34fed911 10source=(http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.xz \
d6e43ba0
VM
11 ftp://ftp.kernel.org/pub/linux/kernel/v3.0/linux-3.12.tar.xz \
12 hosts resolv.conf nsswitch.conf host.conf ld.so.conf)
34fed911
VM
13
14build() {
736f12d7 15 # install kernel headers
d6e43ba0 16 cd linux-3.12
34fed911
VM
17 make mrproper
18 make ARCH=arm headers_check
19 make ARCH=arm INSTALL_HDR_PATH=$PKG/usr headers_install
20
21 cd $SRC
34fed911 22
736f12d7
VM
23 mkdir $SRC/build
24 cd $SRC/build
34fed911
VM
25
26 ../$name-$version/configure --prefix=/usr \
68160bd8 27 --build=arm-unknown-linux-gnueabihf \
34fed911
VM
28 --libexecdir=/usr/lib \
29 --with-headers=$PKG/usr/include \
30 --with-tls \
736f12d7 31 --enable-kernel=2.6.25 \
34fed911
VM
32 --enable-add-ons \
33 --disable-profile \
34 --without-gd \
736f12d7 35 --enable-obsolete-rpc
34fed911 36
736f12d7 37 make
34fed911
VM
38 make install_root=$PKG install
39
40 cp $SRC/{hosts,resolv.conf,nsswitch.conf,host.conf,ld.so.conf} $PKG/etc
41 ln -sf ../usr/share/zoneinfo/UTC $PKG/etc/localtime
42 mkdir -p $PKG/etc/ld.so.conf.d $PKG/usr/lib/locale
736f12d7 43 touch $PKG/etc/ld.so.cache
34fed911 44
736f12d7
VM
45 rm -rf $PKG/usr/share/{info,locale} \
46 $PKG/usr/bin/tzselect \
47 $PKG/usr/sbin/z{dump,ic}
34fed911 48}