SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "libmng"

# SliTaz package receipt.

PACKAGE="libmng"
VERSION="2.0.3"
CATEGORY="development"
SHORT_DESC="library for multi network graphics"
MAINTAINER="allan316@gmail.com"
LICENSE="BSD"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://libmng.sourceforge.net"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="lcms jpeg zlib"
BUILD_DEPENDS="autoconf automake lcms-dev jpeg-dev libtool"

HOST_ARCH="i486 x86_64"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/libmng/files/libmng-devel/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed '/scope="row/!d;s|.*/libmng-devel/||;s|/.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    
    # Patch for libmng 2.0.2 to build with jpeg9
    # see http://bugs.gentoo.org/520906
    patch -p1 <$stuff/libmng-2.0.2-jpeg9.patch


    autoreconf -f -i &&
    ./configure \
        --prefix=/usr \
        --infodir=/usr/share/info \
        --mandir=/usr/share/man \
        $CONFIGURE_ARGS &&
    make && make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib
    cp -a $install/usr/lib/*.so* $fs/usr/lib
}

6063 packages and 233209 files in current database (Sat Dec 21 00:00:03 2024)