wok view libmicrohttpd/receipt @ rev 7829

Add pktstat
author Paul Issott <paul@slitaz.org>
date Sun Dec 26 20:10:04 2010 +0000 (2010-12-26)
parents b1f2a3419959
children 7564000a33b1
line source
1 # SliTaz package receipt.
3 PACKAGE="libmicrohttpd"
4 VERSION="0.9.3"
5 CATEGORY="network"
6 SHORT_DESC="A small C library that is supposed to make it easy to run an HTTP server as part of another application."
7 MAINTAINER="slaxemulator@gmail.com"
8 DEPENDS="gnutls"
9 BUILD_DEPENDS="gnutls-dev libtasn1-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://www.gnu.org/software/libmicrohttpd/"
12 WGET_URL="ftp://ftp.gnu.org/gnu/$PACKAGE/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 ./configure \
19 --prefix=/usr \
20 --infodir=/usr/share/info \
21 --mandir=/usr/share/man \
22 --disable-dependency-tracking \
23 --enable-largefile \
24 --enable-curl \
25 --enable-messages \
26 --with-pic \
27 $CONFIGURE_ARGS &&
28 make && make DESTDIR=$PWD/_pkg install
29 mkdir -p $PWD/_pkg/usr/include/$PACKAGE
30 cp -a src/include/platform.h $PWD/_pkg/usr/include/$PACKAGE
31 cp -a src/include/plibc/plibc.h $PWD/_pkg/usr/include/$PACKAGE
32 sed -i 's#Cflags: -I${includedir}#Cflags: -I${includedir} -I{includedir}/libmicrohttpd#' $PWD/_pkg/usr/lib/pkgconfig/libmicrohttpd.pc
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib
40 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
41 }