wok view libmicrohttpd/receipt @ rev 25561
created recipe for ext4magic
author | Hans-G?nter Theisgen |
---|---|
date | Sun Apr 30 06:26:09 2023 +0100 (18 months ago) |
parents | 71360a13cd94 |
children | d79ed38ace18 |
line source
1 # SliTaz package receipt.
3 PACKAGE="libmicrohttpd"
4 VERSION="0.9.75"
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 &&
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 cook_copy_files *.so*
53 }