wok-current annotate ncurses/receipt @ rev 12773
ncurses*: add to arm pakages (now will try to link ncruses apps again it :-)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 13 04:31:48 2012 +0200 (2012-05-13) |
parents | 92bae5620673 |
children | 4478a745a1e5 |
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" |
pankso@7 | 9 WEB_SITE="http://invisible-island.net/ncurses/" |
pankso@7 | 10 WGET_URL="ftp://invisible-island.net/ncurses/$TARBALL" |
pankso@12773 | 11 HOST_ARCH="i486 arm" |
pankso@12773 | 12 |
pankso@12773 | 13 # Ncurses need an installed /usr/bin/tic witch is in ncursesw-extra. And |
pankso@12773 | 14 # when cross compiling we can't use the freshly cooked binary. See cook log: |
pankso@12773 | 15 # |
pankso@12773 | 16 #** Building terminfo database, please wait... |
pankso@12773 | 17 #Running /usr/bin/tic to install /home/slitaz/wok/ncurses/install/usr/share/terminfo |
pankso@12773 | 18 # |
pankso@12773 | 19 DEPENDS="ncurses-common" |
pankso@12773 | 20 BUILD_DEPENDS="gcc ncursesw-extra" |
pankso@7 | 21 |
gokhlayeh@8203 | 22 # Rules to compile & install the temporary toolchain. |
gokhlayeh@8203 | 23 cook_tmp_toolchain() |
gokhlayeh@8203 | 24 { |
gokhlayeh@8203 | 25 cd $src |
gokhlayeh@8203 | 26 ./configure --with-shared --without-debug \ |
gokhlayeh@8203 | 27 --without-ada --enable-overwrite && |
gokhlayeh@8203 | 28 make && make install |
gokhlayeh@8203 | 29 } |
gokhlayeh@8203 | 30 |
pankso@7 | 31 # Rules to configure and make the package. |
pankso@7 | 32 compile_rules() |
pankso@7 | 33 { |
pankso@12773 | 34 case "$ARCH" in |
pankso@12773 | 35 arm) CROSS_ARGS="" ;; |
pankso@12773 | 36 esac |
gokhlayeh@8203 | 37 cd $src |
gokhlayeh@8203 | 38 sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \ |
gokhlayeh@8203 | 39 include/Makefile.in |
gokhlayeh@8203 | 40 ./configure \ |
pankso@4884 | 41 --libdir=/lib \ |
pankso@4884 | 42 --sysconfdir=/etc \ |
pankso@4884 | 43 --with-shared \ |
pankso@4884 | 44 --without-debug \ |
slaxemulator@10092 | 45 --without-ada \ |
pankso@12773 | 46 --with-build-cc="gcc -D_GNU_SOURCE" \ |
pankso@12773 | 47 $CONFIGURE_ARGS && |
gokhlayeh@8203 | 48 make && make install |
pankso@7 | 49 } |
pankso@7 | 50 |
pankso@7 | 51 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@7 | 52 genpkg_rules() |
pankso@7 | 53 { |
pankso@4884 | 54 mkdir -p $fs/lib |
pankso@12773 | 55 cp -a $install/lib/libncurses.so* $fs/lib |
pankso@7 | 56 } |