wok view libmicrohttpd/receipt @ rev 25669

Up lapack (3.12.0), less (633), libarchive (3.7.2), liblouis (3.28.0), libmicrohttpd (1.0.1), libpng (1.6.43), libssh (0.10.6), libtasn1 (4.19.0), libtirpc (1.3.4), libvpx (1.14.0), libwebp (1.3.2), logrotate (3.21.0), lua (5.4.6)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 25 16:11:20 2024 +0000 (2 months ago)
parents d79ed38ace18
children
line source
1 # SliTaz package receipt.
3 PACKAGE="libmicrohttpd"
4 VERSION="1.0.1"
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 - https://ftp.gnu.org/gnu/$PACKAGE/ 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 }