wok-current annotate libmicrohttpd/receipt @ rev 25733

Accept licence PyQt-x11-gpl, bump firmware* to 20240610, build imagemagick (merge)
author Stanislas Leduc <shann@slitaz.org>
date Fri Dec 20 16:13:23 2024 +0000 (44 hours ago)
parents 71360a13cd94
children
rev   line source
slaxemulator@7749 1 # SliTaz package receipt.
slaxemulator@7749 2
slaxemulator@7749 3 PACKAGE="libmicrohttpd"
Hans-G?nter@24806 4 VERSION="0.9.75"
slaxemulator@7749 5 CATEGORY="network"
slaxemulator@7749 6 SHORT_DESC="A small C library that is supposed to make it easy to run an HTTP server as part of another application."
slaxemulator@7749 7 MAINTAINER="slaxemulator@gmail.com"
pascal@14714 8 LICENSE="LGPL2.1"
Hans-G?nter@21249 9 WEB_SITE="https://www.gnu.org/software/libmicrohttpd/"
Hans-G?nter@21249 10
slaxemulator@7749 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
slaxemulator@11287 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
slaxemulator@7749 13
pascal@14714 14 DEPENDS="libgcrypt libgnutls"
Hans-G?nter@23087 15 BUILD_DEPENDS="gmp-dev gnutls-dev libgcrypt-dev libtasn1-dev"
pascal@14714 16
pascal@24336 17 # What is the latest version available today?
pascal@24336 18 current_version()
pascal@24336 19 {
pascal@24336 20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24336 21 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24336 22 }
pascal@24336 23
slaxemulator@7749 24 # Rules to configure and make the package.
slaxemulator@7749 25 compile_rules()
slaxemulator@7749 26 {
Hans-G?nter@21249 27 ./configure \
Hans-G?nter@21249 28 --prefix=/usr \
Hans-G?nter@21249 29 --infodir=/usr/share/info \
Hans-G?nter@21249 30 --mandir=/usr/share/man \
Hans-G?nter@21249 31 --disable-dependency-tracking \
Hans-G?nter@21249 32 --enable-largefile \
Hans-G?nter@21249 33 --enable-curl \
Hans-G?nter@21249 34 --enable-messages \
Hans-G?nter@21249 35 --with-pic \
slaxemulator@7749 36 $CONFIGURE_ARGS &&
Hans-G?nter@24806 37 make &&
Hans-G?nter@21249 38 make DESTDIR=$DESTDIR install
Hans-G?nter@21249 39
slaxemulator@11287 40 mkdir -p $DESTDIR/usr/include/$PACKAGE
Hans-G?nter@21249 41 cp -a src/include/platform.h \
Hans-G?nter@21249 42 $DESTDIR/usr/include/$PACKAGE
Hans-G?nter@21249 43 # cp -a src/include/plibc/plibc.h \
Hans-G?nter@21249 44 # $DESTDIR/usr/include/$PACKAGE
slaxemulator@11287 45 sed -i 's#Cflags: -I${includedir}#Cflags: -I${includedir} -I{includedir}/libmicrohttpd#' $DESTDIR/usr/lib/pkgconfig/libmicrohttpd.pc
slaxemulator@7757 46
slaxemulator@7749 47 }
slaxemulator@7749 48
slaxemulator@7749 49 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@7749 50 genpkg_rules()
slaxemulator@7749 51 {
Hans-G?nter@24806 52 cook_copy_files *.so*
slaxemulator@7749 53 }