wok-next annotate libmicrohttpd/receipt @ rev 20456

Combine receipts
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 02 03:33:54 2018 +0200 (2018-03-02)
parents 7773fcd44ae5
children 25deb7c6df08
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 --prefix=/usr \
slaxemulator@7749 21 --infodir=/usr/share/info \
slaxemulator@7749 22 --mandir=/usr/share/man \
slaxemulator@7749 23 --disable-dependency-tracking \
slaxemulator@7749 24 --enable-largefile \
slaxemulator@7749 25 --enable-curl \
slaxemulator@7749 26 --enable-messages \
slaxemulator@7749 27 --with-pic \
slaxemulator@7749 28 $CONFIGURE_ARGS &&
al@20456 29 make && make DESTDIR=$DESTDIR install || return 1
al@20456 30
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@7749 35 }
slaxemulator@7749 36
al@20456 37 genpkg_rules() {
al@20456 38 case $PACKAGE in
al@20456 39 libmicrohttpd)
al@20456 40 copy @std
al@20456 41 DEPENDS="libgcrypt libgnutls"
al@20456 42 ;;
al@20456 43 *-dev)
al@20456 44 copy @dev
al@20456 45 DEPENDS="libmicrohttpd libgcrypt-dev gnutls-dev libtasn1-dev"
al@20456 46 ;;
al@20456 47 esac
slaxemulator@7749 48 }