wok-next annotate libmicrohttpd/receipt @ rev 21596

updated dos2unix (7.4.0 -> 7.4.1)
author Hans-G?nter Theisgen
date Wed Jun 24 14:10:06 2020 +0100 (2020-06-24)
parents 25deb7c6df08
children
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@21020 6 SHORT_DESC="Run HTTP server as part of another application"
al@21020 7 MAINTAINER="devel@slitaz.org"
pascal@14714 8 LICENSE="LGPL2.1"
al@20456 9 WEB_SITE="http://www.gnu.org/software/libmicrohttpd/"
al@20456 10
slaxemulator@7749 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
slaxemulator@11287 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
slaxemulator@7749 13
slaxemulator@15859 14 BUILD_DEPENDS="libgcrypt-dev gmp-dev gnutls-dev libtasn1-dev"
al@21020 15 SPLIT="$PACKAGE-dev"
pascal@14714 16
al@20456 17 compile_rules() {
slaxemulator@7749 18 ./configure \
slaxemulator@7749 19 --disable-dependency-tracking \
slaxemulator@7749 20 --enable-largefile \
slaxemulator@7749 21 --enable-curl \
slaxemulator@7749 22 --enable-messages \
slaxemulator@7749 23 --with-pic \
slaxemulator@7749 24 $CONFIGURE_ARGS &&
al@20577 25 fix libtool &&
al@20577 26 make &&
al@21020 27 make DESTDIR=$install install || return 1
al@20456 28
al@21020 29 mkdir -p $install/usr/include/$PACKAGE
al@21020 30 cp -a src/include/platform.h $install/usr/include/$PACKAGE
al@21020 31 cp -a src/include/plibc/plibc.h $install/usr/include/$PACKAGE
al@21020 32 sed -i 's#Cflags: -I${includedir}#Cflags: -I${includedir} -I{includedir}/libmicrohttpd#' \
al@21020 33 $install/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 }