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