wok-next view libmicrohttpd/receipt @ rev 20730
glib: up (2.56.1) with static libs and Python2
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 29 15:17:41 2018 +0300 (2018-05-29) |
parents | c3a368c0cddb |
children | d5aab818505e |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libmicrohttpd"
4 VERSION="0.9.33"
5 CATEGORY="network"
6 SHORT_DESC="A small C library that is supposed to make it easy to run an HTTP \
7 server as part of another application"
8 MAINTAINER="slaxemulator@gmail.com"
9 LICENSE="LGPL2.1"
10 WEB_SITE="http://www.gnu.org/software/libmicrohttpd/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
15 BUILD_DEPENDS="libgcrypt-dev gmp-dev gnutls-dev libtasn1-dev"
16 SPLIT="libmicrohttpd-dev"
18 compile_rules() {
19 ./configure \
20 --disable-dependency-tracking \
21 --enable-largefile \
22 --enable-curl \
23 --enable-messages \
24 --with-pic \
25 $CONFIGURE_ARGS &&
26 fix libtool &&
27 make &&
28 make DESTDIR=$DESTDIR install || return 1
30 mkdir -p $DESTDIR/usr/include/$PACKAGE
31 cp -a src/include/platform.h $DESTDIR/usr/include/$PACKAGE
32 cp -a src/include/plibc/plibc.h $DESTDIR/usr/include/$PACKAGE
33 sed -i 's#Cflags: -I${includedir}#Cflags: -I${includedir} -I{includedir}/libmicrohttpd#' $DESTDIR/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 }