wok-4.x view libmicrohttpd/receipt @ rev 11965
tazwok compat: add wget as libt4k_common bdep (https $WGET_URL)
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Fri Mar 02 15:32:28 2012 +0100 (2012-03-02) |
parents | 2ce480b4b0c0 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="libmicrohttpd"
4 VERSION="0.9.16"
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="libgcrypt libgnutls"
9 BUILD_DEPENDS="libgcrypt-dev gnutls-dev libtasn1-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://www.gnu.org/software/libmicrohttpd/"
12 WGET_URL="$GNU_MIRROR/$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=$DESTDIR install
29 mkdir -p $DESTDIR/usr/include/$PACKAGE
30 cp -a src/include/platform.h $DESTDIR/usr/include/$PACKAGE
31 cp -a src/include/plibc/plibc.h $DESTDIR/usr/include/$PACKAGE
32 sed -i 's#Cflags: -I${includedir}#Cflags: -I${includedir} -I{includedir}/libmicrohttpd#' $DESTDIR/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 }