wok-next annotate cmake/receipt @ rev 1542
xorg-libX11: hack compile_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 11 13:59:29 2008 +0000 (2008-10-11) |
parents | e47d0b9e8a1e |
children | 71ac043c8879 |
rev | line source |
---|---|
pankso@14 | 1 # SliTaz package receipt. |
pankso@14 | 2 |
pankso@14 | 3 PACKAGE="cmake" |
pankso@794 | 4 VERSION="2.6.0" |
pankso@200 | 5 CATEGORY="development" |
pankso@14 | 6 SHORT_DESC="Cross-platform Make." |
pankso@14 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@1511 | 8 BUILD_DEPENDS="ncurses-dev" |
pankso@14 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@14 | 10 WEB_SITE="http://www.cmake.org/" |
pankso@794 | 11 WGET_URL="http://www.cmake.org/files/v2.6/$TARBALL" |
pankso@14 | 12 |
pankso@14 | 13 # Rules to configure and make the package. |
pankso@14 | 14 compile_rules() |
pankso@14 | 15 { |
pankso@14 | 16 cd $src |
pankso@56 | 17 ./bootstrap \ |
pankso@56 | 18 --prefix=/usr \ |
pankso@56 | 19 --docdir=/share/doc/$PACKAGE \ |
pankso@56 | 20 --mandir=/share/man \ |
pascal@1511 | 21 $CONFIGURE_ARGS && |
pascal@1511 | 22 make && |
pankso@14 | 23 make DESTDIR=$PWD/_pkg install |
pankso@14 | 24 } |
pankso@14 | 25 |
pankso@14 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@14 | 27 genpkg_rules() |
pankso@14 | 28 { |
pankso@14 | 29 cp -a $_pkg/* $fs |
pankso@14 | 30 rm -rf $fs/usr/share/man |
pankso@14 | 31 } |
pankso@794 | 32 |
pankso@794 | 33 pre_install() |
pankso@794 | 34 { |
pankso@794 | 35 rm -rf $1/usr/share/cmake-2.4 |
pankso@794 | 36 } |