wok-next view libmicrohttpd/receipt @ rev 21722
efivar: typo in post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 01 10:31:46 2020 +0000 (2020-09-01) |
parents | 25deb7c6df08 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libmicrohttpd"
4 VERSION="0.9.33"
5 CATEGORY="network"
6 SHORT_DESC="Run HTTP server as part of another application"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="http://www.gnu.org/software/libmicrohttpd/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="libgcrypt-dev gmp-dev gnutls-dev libtasn1-dev"
15 SPLIT="$PACKAGE-dev"
17 compile_rules() {
18 ./configure \
19 --disable-dependency-tracking \
20 --enable-largefile \
21 --enable-curl \
22 --enable-messages \
23 --with-pic \
24 $CONFIGURE_ARGS &&
25 fix libtool &&
26 make &&
27 make DESTDIR=$install install || return 1
29 mkdir -p $install/usr/include/$PACKAGE
30 cp -a src/include/platform.h $install/usr/include/$PACKAGE
31 cp -a src/include/plibc/plibc.h $install/usr/include/$PACKAGE
32 sed -i 's#Cflags: -I${includedir}#Cflags: -I${includedir} -I{includedir}/libmicrohttpd#' \
33 $install/usr/lib/pkgconfig/libmicrohttpd.pc
34 }
36 genpkg_rules() {
37 case $PACKAGE in
38 libmicrohttpd)
39 copy @std
40 DEPENDS="libgcrypt libgnutls"
41 ;;
42 *-dev)
43 copy @dev
44 DEPENDS="libmicrohttpd libgcrypt-dev gnutls-dev libtasn1-dev"
45 ;;
46 esac
47 }