wok-current view libmicrohttpd/receipt @ rev 8003
Fix: iasl/compiler need -j1 to compile
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Tue Jan 18 19:08:18 2011 +0100 (2011-01-18) |
parents | 7564000a33b1 |
children | 2ce480b4b0c0 |
line source
1 # SliTaz package receipt.
3 PACKAGE="libmicrohttpd"
4 VERSION="0.9.5"
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 }