wok annotate libmicrohttpd/receipt @ rev 12420
Up: libmicrohttpd to 0.9.18.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Apr 21 09:20:33 2012 +0000 (2012-04-21) |
parents | 970d6037bb2e |
children | 4904e3d374a9 |
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" |
slaxemulator@11287 | 8 DEPENDS="libgcrypt libgnutls" |
slaxemulator@11287 | 9 BUILD_DEPENDS="libgcrypt-dev gnutls-dev libtasn1-dev" |
slaxemulator@7749 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
slaxemulator@7749 | 11 WEB_SITE="http://www.gnu.org/software/libmicrohttpd/" |
slaxemulator@11287 | 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
slaxemulator@7749 | 13 |
slaxemulator@7749 | 14 # Rules to configure and make the package. |
slaxemulator@7749 | 15 compile_rules() |
slaxemulator@7749 | 16 { |
slaxemulator@7749 | 17 cd $src |
slaxemulator@7749 | 18 ./configure \ |
slaxemulator@7749 | 19 --prefix=/usr \ |
slaxemulator@7749 | 20 --infodir=/usr/share/info \ |
slaxemulator@7749 | 21 --mandir=/usr/share/man \ |
slaxemulator@7749 | 22 --disable-dependency-tracking \ |
slaxemulator@7749 | 23 --enable-largefile \ |
slaxemulator@7749 | 24 --enable-curl \ |
slaxemulator@7749 | 25 --enable-messages \ |
slaxemulator@7749 | 26 --with-pic \ |
slaxemulator@7749 | 27 $CONFIGURE_ARGS && |
slaxemulator@11287 | 28 make && make DESTDIR=$DESTDIR install |
slaxemulator@11287 | 29 mkdir -p $DESTDIR/usr/include/$PACKAGE |
slaxemulator@11287 | 30 cp -a src/include/platform.h $DESTDIR/usr/include/$PACKAGE |
slaxemulator@11287 | 31 cp -a src/include/plibc/plibc.h $DESTDIR/usr/include/$PACKAGE |
slaxemulator@11287 | 32 sed -i 's#Cflags: -I${includedir}#Cflags: -I${includedir} -I{includedir}/libmicrohttpd#' $DESTDIR/usr/lib/pkgconfig/libmicrohttpd.pc |
slaxemulator@7757 | 33 |
slaxemulator@7749 | 34 } |
slaxemulator@7749 | 35 |
slaxemulator@7749 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@7749 | 37 genpkg_rules() |
slaxemulator@7749 | 38 { |
slaxemulator@7749 | 39 mkdir -p $fs/usr/lib |
slaxemulator@7749 | 40 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
slaxemulator@7749 | 41 } |
slaxemulator@7749 | 42 |