wok-6.x view libmicrohttpd/receipt @ rev 24718
updated libarchive and libarchive-dev (3.4.2 -> 3.6.0)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 15 07:41:02 2022 +0100 (2022-03-15) |
parents | 10cf42b0d0ae |
children | b7b06aebdb04 |
line source
1 # SliTaz package receipt.
3 PACKAGE="libmicrohttpd"
4 VERSION="0.9.70"
5 CATEGORY="network"
6 SHORT_DESC="A small C library that is supposed to make it easy to run an HTTP server as part of another application."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="LGPL2.1"
9 WEB_SITE="https://www.gnu.org/software/libmicrohttpd/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="libgcrypt libgnutls"
15 BUILD_DEPENDS="gmp-dev gnutls-dev libgcrypt-dev libtasn1-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure \
28 --prefix=/usr \
29 --infodir=/usr/share/info \
30 --mandir=/usr/share/man \
31 --disable-dependency-tracking \
32 --enable-largefile \
33 --enable-curl \
34 --enable-messages \
35 --with-pic \
36 $CONFIGURE_ARGS &&
37 make -j 1 &&
38 make DESTDIR=$DESTDIR install
40 mkdir -p $DESTDIR/usr/include/$PACKAGE
41 cp -a src/include/platform.h \
42 $DESTDIR/usr/include/$PACKAGE
43 # cp -a src/include/plibc/plibc.h \
44 # $DESTDIR/usr/include/$PACKAGE
45 sed -i 's#Cflags: -I${includedir}#Cflags: -I${includedir} -I{includedir}/libmicrohttpd#' $DESTDIR/usr/lib/pkgconfig/libmicrohttpd.pc
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/usr/lib
53 cp -a $install/usr/lib/*.so* $fs/usr/lib
54 }