wok view libmicrohttpd/receipt @ rev 12516

Up: xorg-libXtst (1.2.1) + clean receipt
author Christophe Lincoln <pankso@slitaz.org>
date Wed Apr 25 00:01:48 2012 +0200 (2012-04-25)
parents 970d6037bb2e
children 4904e3d374a9
line source
1 # SliTaz package receipt.
3 PACKAGE="libmicrohttpd"
4 VERSION="0.9.18"
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 }