wok-next annotate libmicrohttpd/receipt @ rev 20748
Update (b)deps
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed May 30 20:13:48 2018 +0300 (2018-05-30) |
parents | c3a368c0cddb |
children | d5aab818505e |
rev | line source |
---|---|
al@20456 | 1 # SliTaz package receipt v2. |
slaxemulator@7749 | 2 |
slaxemulator@7749 | 3 PACKAGE="libmicrohttpd" |
slaxemulator@15859 | 4 VERSION="0.9.33" |
slaxemulator@7749 | 5 CATEGORY="network" |
al@20456 | 6 SHORT_DESC="A small C library that is supposed to make it easy to run an HTTP \ |
al@20456 | 7 server as part of another application" |
slaxemulator@7749 | 8 MAINTAINER="slaxemulator@gmail.com" |
pascal@14714 | 9 LICENSE="LGPL2.1" |
al@20456 | 10 WEB_SITE="http://www.gnu.org/software/libmicrohttpd/" |
al@20456 | 11 |
slaxemulator@7749 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
slaxemulator@11287 | 13 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
slaxemulator@7749 | 14 |
slaxemulator@15859 | 15 BUILD_DEPENDS="libgcrypt-dev gmp-dev gnutls-dev libtasn1-dev" |
al@20456 | 16 SPLIT="libmicrohttpd-dev" |
pascal@14714 | 17 |
al@20456 | 18 compile_rules() { |
slaxemulator@7749 | 19 ./configure \ |
slaxemulator@7749 | 20 --disable-dependency-tracking \ |
slaxemulator@7749 | 21 --enable-largefile \ |
slaxemulator@7749 | 22 --enable-curl \ |
slaxemulator@7749 | 23 --enable-messages \ |
slaxemulator@7749 | 24 --with-pic \ |
slaxemulator@7749 | 25 $CONFIGURE_ARGS && |
al@20577 | 26 fix libtool && |
al@20577 | 27 make && |
al@20577 | 28 make DESTDIR=$DESTDIR install || return 1 |
al@20456 | 29 |
slaxemulator@11287 | 30 mkdir -p $DESTDIR/usr/include/$PACKAGE |
slaxemulator@11287 | 31 cp -a src/include/platform.h $DESTDIR/usr/include/$PACKAGE |
slaxemulator@11287 | 32 cp -a src/include/plibc/plibc.h $DESTDIR/usr/include/$PACKAGE |
slaxemulator@11287 | 33 sed -i 's#Cflags: -I${includedir}#Cflags: -I${includedir} -I{includedir}/libmicrohttpd#' $DESTDIR/usr/lib/pkgconfig/libmicrohttpd.pc |
slaxemulator@7749 | 34 } |
slaxemulator@7749 | 35 |
al@20456 | 36 genpkg_rules() { |
al@20456 | 37 case $PACKAGE in |
al@20456 | 38 libmicrohttpd) |
al@20456 | 39 copy @std |
al@20456 | 40 DEPENDS="libgcrypt libgnutls" |
al@20456 | 41 ;; |
al@20456 | 42 *-dev) |
al@20456 | 43 copy @dev |
al@20456 | 44 DEPENDS="libmicrohttpd libgcrypt-dev gnutls-dev libtasn1-dev" |
al@20456 | 45 ;; |
al@20456 | 46 esac |
slaxemulator@7749 | 47 } |