CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
pkg-config: updated to 0.29.2
[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
b751b192 4# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
6dca1d21
JB
5# Depends on:
6
7name=ncurses
29ff8d68 8version=6.0
819d103e 9release=4
6dca1d21
JB
10source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz)
11
12build() {
13 cd $name-$version
14
29ff8d68
VM
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 \
7cbf4276
VM
23 --enable-widec \
24 --disable-rpath \
25 --disable-rpath-hack
29ff8d68 26
6dca1d21 27 make
29ff8d68
VM
28 make DESTDIR=$PKG install
29
30 install -d $PKG/{lib,usr/include/ncursesw,usr/lib/pkgconfig}
31
32 # move library to /lib and create symlinks
33 mv $PKG/usr/lib/libncursesw.so.* $PKG/lib
34 ln -sf ../../lib/libncursesw.so.$version $PKG/usr/lib/libncursesw.so
35 ln -s libncursesw.so.$version $PKG/lib/libncurses.so.${version%%.*}
36
37 # linker scripts and .pc files for non-wide ncurses
38 for LIB in ncurses form panel menu ; do
39 echo "INPUT(-l${LIB}w)" > $PKG/usr/lib/lib${LIB}.so
40 ln -s ${LIB}w.pc $PKG/usr/lib/pkgconfig/${LIB}.pc
1178a74d 41 done
29ff8d68
VM
42
43 # linker script for the curses library
44 echo "INPUT(-lncursesw)" > $PKG/usr/lib/libcursesw.so
45 ln -s libncurses.so $PKG/usr/lib/libcurses.so
6dca1d21 46}