wok-current annotate ncurses/receipt @ rev 12802
linux-source: fix path to url file
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Fri May 18 11:48:52 2012 +0000 (2012-05-18) |
parents | fb9821d2c0ce |
children | 851050970033 |
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 DEPENDS="ncurses-common" |
pankso@12774 | 14 BUILD_DEPENDS="gcc" |
pankso@7 | 15 |
gokhlayeh@8203 | 16 # Rules to compile & install the temporary toolchain. |
gokhlayeh@8203 | 17 cook_tmp_toolchain() |
gokhlayeh@8203 | 18 { |
gokhlayeh@8203 | 19 cd $src |
gokhlayeh@8203 | 20 ./configure --with-shared --without-debug \ |
gokhlayeh@8203 | 21 --without-ada --enable-overwrite && |
gokhlayeh@8203 | 22 make && make install |
gokhlayeh@8203 | 23 } |
gokhlayeh@8203 | 24 |
pankso@7 | 25 # Rules to configure and make the package. |
pankso@7 | 26 compile_rules() |
pankso@7 | 27 { |
pankso@12774 | 28 # Ncurses need an installed /usr/bin/tic witch is in ncursesw-extra. And |
pankso@12774 | 29 # when cross compiling we can't use the freshly cooked binary. See cook log: |
pankso@12774 | 30 # |
pankso@12774 | 31 #** Building terminfo database, please wait... |
pankso@12774 | 32 #Running /usr/bin/tic to install /home/slitaz/wok/ncurses/install/usr/share/terminfo |
pankso@12774 | 33 # |
pankso@12775 | 34 if [ ! -d "/var/lib/tazpkg/installed/ncursesw-extra" ]; then |
pankso@12792 | 35 echo "Installing: ncursesw-extra" |
pankso@12792 | 36 tazpkg get-install ncursesw-extra 2>/dev/null 1>/dev/null |
pankso@12774 | 37 fi |
gokhlayeh@8203 | 38 cd $src |
gokhlayeh@8203 | 39 sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \ |
gokhlayeh@8203 | 40 include/Makefile.in |
gokhlayeh@8203 | 41 ./configure \ |
pankso@4884 | 42 --libdir=/lib \ |
pankso@4884 | 43 --sysconfdir=/etc \ |
pankso@4884 | 44 --with-shared \ |
pankso@4884 | 45 --without-debug \ |
slaxemulator@10092 | 46 --without-ada \ |
pankso@12773 | 47 --with-build-cc="gcc -D_GNU_SOURCE" \ |
pankso@12773 | 48 $CONFIGURE_ARGS && |
gokhlayeh@8203 | 49 make && make install |
pankso@7 | 50 } |
pankso@7 | 51 |
pankso@7 | 52 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@7 | 53 genpkg_rules() |
pankso@7 | 54 { |
pankso@4884 | 55 mkdir -p $fs/lib |
pankso@12773 | 56 cp -a $install/lib/libncurses.so* $fs/lib |
pankso@7 | 57 } |