wok view libmicrohttpd/receipt @ rev 10336

readline: Add $CONFIGURE_ARGS.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun May 22 01:25:04 2011 +0000 (2011-05-22)
parents a4b1ad8f700e
children 970d6037bb2e
line source
1 # SliTaz package receipt.
3 PACKAGE="libmicrohttpd"
4 VERSION="0.9.6"
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 }