wok-next annotate commoncpp2/receipt @ rev 5545
libarchive: fix compile_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 13 15:11:57 2010 +0200 (2010-05-13) |
parents | 0f710d0f94f4 |
children | 08b8d9c3741d |
rev | line source |
---|---|
rcx@3771 | 1 # SliTaz package receipt. |
rcx@3771 | 2 |
rcx@3771 | 3 PACKAGE="commoncpp2" |
rcx@3771 | 4 VERSION="1.7.3" |
rcx@3771 | 5 CATEGORY="development" |
rcx@3771 | 6 SHORT_DESC="A very portable and highly optimized class framework for writing C++ applications." |
rcx@3771 | 7 MAINTAINER="rcx@zoominternet.net" |
pascal@4999 | 8 DEPENDS="glibc-base gcc-lib-base zlib" |
rcx@3771 | 9 BUILD_DEPENDS="slitaz-toolchain" |
rcx@3771 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
rcx@3771 | 11 WEB_SITE="http://www.gnu.org/software/commoncpp/" |
rcx@3771 | 12 WGET_URL="http://www.gnutelephony.org/dist/tarballs/$TARBALL" |
rcx@3771 | 13 |
rcx@3771 | 14 # Rules to configure and make the package. |
rcx@3771 | 15 compile_rules() |
rcx@3771 | 16 { |
rcx@3771 | 17 # Apply patch from http://bugs.gentoo.org/show_bug.cgi?id=279505 |
rcx@3771 | 18 local commoncpp2_diff |
rcx@3771 | 19 commoncpp2_diff=$PWD/stuff/1.7.3-gcc4.4.diff |
rcx@3771 | 20 |
rcx@3771 | 21 cd $src |
rcx@3771 | 22 # Only apply the patch once |
rcx@3771 | 23 if [ ! -e $src/1.7.3-gcc4.4.diff ] ; then |
rcx@3771 | 24 patch -p1 < $commoncpp2_diff |
rcx@3771 | 25 cp $commoncpp2_diff $src/1.7.3-gcc4.4.diff |
rcx@3771 | 26 fi |
rcx@3771 | 27 |
rcx@3771 | 28 ./configure \ |
rcx@3771 | 29 --prefix=/usr \ |
rcx@3771 | 30 --sysconfdir=/etc \ |
rcx@3771 | 31 --mandir=/usr/share/man \ |
rcx@3771 | 32 $CONFIGURE_ARGS && |
rcx@3771 | 33 make && |
rcx@3771 | 34 make DESTDIR=$PWD/_pkg install |
rcx@3771 | 35 } |
rcx@3771 | 36 |
rcx@3771 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
rcx@3771 | 38 genpkg_rules() |
rcx@3771 | 39 { |
rcx@3771 | 40 mkdir -p $fs/usr/lib |
rcx@3771 | 41 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
rcx@3771 | 42 } |