| 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.7 |
| 9 | release=2 |
| 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.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 | } |