wok-4.x annotate libmicrohttpd/receipt @ rev 11965
tazwok compat: add wget as libt4k_common bdep (https $WGET_URL)
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Fri Mar 02 15:32:28 2012 +0100 (2012-03-02) |
parents | 2ce480b4b0c0 |
children |
rev | line source |
---|---|
slaxemulator@7749 | 1 # SliTaz package receipt. |
slaxemulator@7749 | 2 |
slaxemulator@7749 | 3 PACKAGE="libmicrohttpd" |
slaxemulator@11287 | 4 VERSION="0.9.16" |
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 |