CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Merged changes from noeabi (72cbd18e791bd2edff0e8d23873136187f0cd936)
[crossrootfs.git] / ncurses / Pkgfile
CommitLineData
6dca1d21
JB
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
83e7e2d0 4# Arch Maintainer: CRUX-ARM System Team, devel@crux-arm.nu
6dca1d21
JB
5# Depends on:
6
7name=ncurses
8version=5.7
9release=2
10source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz)
11
12build() {
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.5 $PKG/usr/lib/libncurses$i.so && \
42 ln -sf ../../lib/libncurses$i.so.5 $PKG/usr/lib/libncurses$i.so.5 \
43 ; done
44}