wok-current annotate libmicrohttpd/receipt @ rev 14810
Up: apr-util* (1.5.2)
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Wed Jul 17 13:35:05 2013 +0200 (2013-07-17) |
parents | 55013648b5d3 |
children | 7773fcd44ae5 |
rev | line source |
---|---|
slaxemulator@7749 | 1 # SliTaz package receipt. |
slaxemulator@7749 | 2 |
slaxemulator@7749 | 3 PACKAGE="libmicrohttpd" |
slaxemulator@12420 | 4 VERSION="0.9.18" |
slaxemulator@7749 | 5 CATEGORY="network" |
slaxemulator@7749 | 6 SHORT_DESC="A small C library that is supposed to make it easy to run an HTTP server as part of another application." |
slaxemulator@7749 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@14714 | 8 LICENSE="LGPL2.1" |
slaxemulator@7749 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
slaxemulator@7749 | 10 WEB_SITE="http://www.gnu.org/software/libmicrohttpd/" |
slaxemulator@11287 | 11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
slaxemulator@7749 | 12 |
pascal@14714 | 13 DEPENDS="libgcrypt libgnutls" |
pascal@14714 | 14 BUILD_DEPENDS="libgcrypt-dev gnutls-dev libtasn1-dev" |
pascal@14714 | 15 |
slaxemulator@7749 | 16 # Rules to configure and make the package. |
slaxemulator@7749 | 17 compile_rules() |
slaxemulator@7749 | 18 { |
slaxemulator@7749 | 19 cd $src |
slaxemulator@7749 | 20 ./configure \ |
slaxemulator@7749 | 21 --prefix=/usr \ |
slaxemulator@7749 | 22 --infodir=/usr/share/info \ |
slaxemulator@7749 | 23 --mandir=/usr/share/man \ |
slaxemulator@7749 | 24 --disable-dependency-tracking \ |
slaxemulator@7749 | 25 --enable-largefile \ |
slaxemulator@7749 | 26 --enable-curl \ |
slaxemulator@7749 | 27 --enable-messages \ |
slaxemulator@7749 | 28 --with-pic \ |
slaxemulator@7749 | 29 $CONFIGURE_ARGS && |
slaxemulator@11287 | 30 make && make DESTDIR=$DESTDIR install |
slaxemulator@11287 | 31 mkdir -p $DESTDIR/usr/include/$PACKAGE |
slaxemulator@11287 | 32 cp -a src/include/platform.h $DESTDIR/usr/include/$PACKAGE |
slaxemulator@11287 | 33 cp -a src/include/plibc/plibc.h $DESTDIR/usr/include/$PACKAGE |
slaxemulator@11287 | 34 sed -i 's#Cflags: -I${includedir}#Cflags: -I${includedir} -I{includedir}/libmicrohttpd#' $DESTDIR/usr/lib/pkgconfig/libmicrohttpd.pc |
slaxemulator@7757 | 35 |
slaxemulator@7749 | 36 } |
slaxemulator@7749 | 37 |
slaxemulator@7749 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@7749 | 39 genpkg_rules() |
slaxemulator@7749 | 40 { |
slaxemulator@7749 | 41 mkdir -p $fs/usr/lib |
pascal@14714 | 42 cp -a $install/usr/lib/*.so* $fs/usr/lib |
slaxemulator@7749 | 43 } |
slaxemulator@7749 | 44 |