wok annotate ncurses/receipt @ rev 17385
ncurses: do not depends on libtinfo (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Nov 27 10:52:38 2014 +0100 (2014-11-27) |
parents | 76ae76cc543f |
children | 9632206f6893 |
rev | line source |
---|---|
pankso@7 | 1 # SliTaz package receipt. |
pankso@7 | 2 |
pankso@7 | 3 PACKAGE="ncurses" |
slaxemulator@9487 | 4 VERSION="5.9" |
pankso@210 | 5 CATEGORY="base-system" |
pascal@2086 | 6 SHORT_DESC="Library of functions to manage display on terminals." |
pankso@7 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@7 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@15601 | 9 LICENSE="MIT" |
pankso@7 | 10 WEB_SITE="http://invisible-island.net/ncurses/" |
pankso@7 | 11 WGET_URL="ftp://invisible-island.net/ncurses/$TARBALL" |
pankso@12773 | 12 HOST_ARCH="i486 arm" |
pankso@12773 | 13 |
pankso@12773 | 14 DEPENDS="ncurses-common" |
pankso@12818 | 15 BUILD_DEPENDS="" |
gokhlayeh@8203 | 16 |
pankso@7 | 17 # Rules to configure and make the package. |
pankso@7 | 18 compile_rules() |
pankso@7 | 19 { |
pankso@12774 | 20 # Ncurses need an installed /usr/bin/tic witch is in ncursesw-extra. And |
pankso@12774 | 21 # when cross compiling we can't use the freshly cooked binary. See cook log: |
pankso@12774 | 22 # |
pankso@12774 | 23 #** Building terminfo database, please wait... |
pankso@12774 | 24 #Running /usr/bin/tic to install /home/slitaz/wok/ncurses/install/usr/share/terminfo |
pankso@12774 | 25 # |
pankso@12775 | 26 if [ ! -d "/var/lib/tazpkg/installed/ncursesw-extra" ]; then |
pankso@12792 | 27 echo "Installing: ncursesw-extra" |
pankso@12792 | 28 tazpkg get-install ncursesw-extra 2>/dev/null 1>/dev/null |
pankso@12774 | 29 fi |
gokhlayeh@8203 | 30 cd $src |
pascal@15083 | 31 mkdir -p $DESTDIR/usr/lib/terminfo |
gokhlayeh@8203 | 32 sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \ |
gokhlayeh@8203 | 33 include/Makefile.in |
pascal@17385 | 34 ./configure \ |
pankso@4884 | 35 --libdir=/lib \ |
pankso@4884 | 36 --sysconfdir=/etc \ |
pankso@4884 | 37 --with-shared \ |
pascal@17384 | 38 --without-debug \ |
pascal@17384 | 39 --without-ada \ |
pascal@17385 | 40 --with-build-cc="gcc -D_GNU_SOURCE" \ |
pascal@17378 | 41 --with-termlib \ |
pascal@17379 | 42 --with-ticlib \ |
pascal@17384 | 43 $CONFIGURE_ARGS && |
pascal@17384 | 44 make && make install |
pascal@17384 | 45 ./configure \ |
pascal@17385 | 46 --libdir=/lib \ |
pascal@17385 | 47 --sysconfdir=/etc \ |
pascal@17385 | 48 --with-shared \ |
pascal@17385 | 49 --without-debug \ |
pascal@17385 | 50 --without-ada \ |
pascal@17385 | 51 --with-build-cc="gcc -D_GNU_SOURCE" \ |
pankso@12773 | 52 $CONFIGURE_ARGS && |
gokhlayeh@8203 | 53 make && make install |
pankso@7 | 54 } |
pankso@7 | 55 |
pankso@7 | 56 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@7 | 57 genpkg_rules() |
pankso@7 | 58 { |
pankso@4884 | 59 mkdir -p $fs/lib |
pankso@12773 | 60 cp -a $install/lib/libncurses.so* $fs/lib |
pankso@7 | 61 } |