CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
e2fsprogs: updated to 1.42.13 and updated mandir
[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=6.0
9 release=1
10 source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz)
11
12 build() {
13 cd $name-$version
14
15 ./configure --build=$CHOST \
16 --host=$CTARGET \
17 --with-install-prefix=$PKG \
18 --prefix=/usr \
19 --mandir=/usr/share/man \
20 --with-{normal,shared} \
21 --without-{debug,ada,tests} \
22 --enable-pc-files \
23 --enable-widec
24
25 make
26 make DESTDIR=$PKG install
27
28 install -d $PKG/{lib,usr/include/ncursesw,usr/lib/pkgconfig}
29
30 # move library to /lib and create symlinks
31 mv $PKG/usr/lib/libncursesw.so.* $PKG/lib
32 ln -sf ../../lib/libncursesw.so.$version $PKG/usr/lib/libncursesw.so
33 ln -s libncursesw.so.$version $PKG/lib/libncurses.so.${version%%.*}
34
35 # linker scripts and .pc files for non-wide ncurses
36 for LIB in ncurses form panel menu ; do
37 echo "INPUT(-l${LIB}w)" > $PKG/usr/lib/lib${LIB}.so
38 ln -s ${LIB}w.pc $PKG/usr/lib/pkgconfig/${LIB}.pc
39 done
40
41 # linker script for the curses library
42 echo "INPUT(-lncursesw)" > $PKG/usr/lib/libcursesw.so
43 ln -s libncurses.so $PKG/usr/lib/libcurses.so
44
45 # symlinks for ncurses 5 (remove them later))
46 ln -s libncursesw.so $PKG/usr/lib/libncurses.so.5
47 ln -s libncursesw.so $PKG/usr/lib/libncursesw.so.5
48 ln -s libncursesw.so $PKG/usr/lib/libncursesw.so.6
49
50 # some progs expect a /usr/include/curses.h
51 ln -s ../curses.h $PKG/usr/include/ncursesw/ncurses.h
52 }