CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
procps: updated to 3.3.3 and aligned with upstream. Cleaned cross patches.
[crossrootfs.git] / ncurses / Pkgfile
1 # Description: A System V Release 4.0 curses emulation library
2 # URL: http://www.gnu.org/software/ncurses/ncurses.html
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
7 name=ncurses
8 version=5.9
9 release=1
10 source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz)
11
12 build() {
13 cd $name-$version
14
15 local OPTIONS="\
16 --build=$CHOST \
17 --host=$CTARGET \
18 --with-install-prefix=$PKG \
19 --prefix=/usr \
20 --with-normal \
21 --with-shared \
22 --without-debug \
23 --without-ada
24 "
25
26 ./configure $OPTIONS
27 make
28 make install
29 make distclean
30
31 sed '/^BUILD_CCFLAGS/ s/-DHAVE_CONFIG_H/-DHAVE_CONFIG_H -D_GNU_SOURCE/' -i ncurses/Makefile.in
32 ./configure $OPTIONS --enable-widec
33 make
34 make install
35
36 mkdir $PKG/lib
37
38 for i in w ''; do
39 mv $PKG/usr/lib/libncurses$i.so.* $PKG/lib
40 ln -sf libncurses$i.so $PKG/usr/lib/libcurses$i.so
41 ln -sf ../../lib/libncurses$i.so.$version $PKG/usr/lib/libncurses$i.so
42 done
43 }