SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "libmicrohttpd"

# SliTaz package receipt.

PACKAGE="libmicrohttpd"
VERSION="0.9.75"
CATEGORY="network"
SHORT_DESC="A small C library that is supposed to make it easy to run an HTTP server as part of another application."
MAINTAINER="slaxemulator@gmail.com"
LICENSE="LGPL2.1"
WEB_SITE="https://www.gnu.org/software/libmicrohttpd/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="libgcrypt libgnutls"
BUILD_DEPENDS="gmp-dev gnutls-dev libgcrypt-dev libtasn1-dev"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*} 2>/dev/null | \
    sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure                \
        --prefix=/usr            \
        --infodir=/usr/share/info    \
        --mandir=/usr/share/man        \
        --disable-dependency-tracking    \
        --enable-largefile        \
        --enable-curl            \
        --enable-messages        \
        --with-pic            \
        $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$DESTDIR install

    mkdir -p $DESTDIR/usr/include/$PACKAGE
    cp -a src/include/platform.h    \
        $DESTDIR/usr/include/$PACKAGE
#    cp -a src/include/plibc/plibc.h    \
#        $DESTDIR/usr/include/$PACKAGE
    sed -i 's#Cflags: -I${includedir}#Cflags: -I${includedir} -I{includedir}/libmicrohttpd#' $DESTDIR/usr/lib/pkgconfig/libmicrohttpd.pc

}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_files    *.so*
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)