wok annotate libmng/receipt @ rev 25804
created recipe for wm-switcher
author | Hans-G?nter Theisgen |
---|---|
date | Wed Nov 13 15:16:07 2024 +0100 (8 days ago) |
parents | b0069c845544 |
children |
rev | line source |
---|---|
allan316@4547 | 1 # SliTaz package receipt. |
allan316@4547 | 2 |
allan316@4547 | 3 PACKAGE="libmng" |
erjo@5929 | 4 VERSION="1.0.10" |
allan316@4547 | 5 CATEGORY="development" |
allan316@4547 | 6 SHORT_DESC="library for multi network graphics" |
allan316@4547 | 7 MAINTAINER="allan316@gmail.com" |
pascal@15473 | 8 LICENSE="BSD" |
allan316@4547 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@25469 | 10 WEB_SITE="https://libmng.sourceforge.net" |
allan316@4547 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
allan316@4547 | 12 |
pascal@15327 | 13 DEPENDS="lcms jpeg zlib" |
pascal@15647 | 14 BUILD_DEPENDS="autoconf automake lcms-dev jpeg-dev libtool" |
pascal@15327 | 15 |
pascal@24411 | 16 # What is the latest version available today? |
pascal@24411 | 17 current_version() |
pascal@24411 | 18 { |
pascal@24411 | 19 wget -O - https://sourceforge.net/projects/libmng/files/libmng-devel/ 2>/dev/null | \ |
pascal@25606 | 20 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24411 | 21 sed '/scope="row/!d;s|.*/libmng-devel/||;s|/.*||;q' |
pascal@24411 | 22 } |
pascal@24411 | 23 |
allan316@4547 | 24 # Rules to configure and make the package. |
allan316@4547 | 25 compile_rules() |
allan316@4547 | 26 { |
allan316@4547 | 27 cd $src |
pascal@15327 | 28 sed -i 's/ [^ ]*ansi2knr//' makefiles/configure.in makefiles/Makefile.am |
pascal@15327 | 29 sed -i 's/AM_C_PROTOTYPES/# &/' makefiles/configure.in |
allan316@4547 | 30 ln -sf makefiles/configure.in . && |
allan316@4547 | 31 ln -sf makefiles/Makefile.am . && |
allan316@4547 | 32 autoreconf -f -i && |
allan316@4547 | 33 ./configure \ |
allan316@4547 | 34 --prefix=/usr \ |
allan316@4547 | 35 --infodir=/usr/share/info \ |
allan316@4547 | 36 --mandir=/usr/share/man \ |
allan316@4547 | 37 $CONFIGURE_ARGS && |
pascal@15327 | 38 make && make DESTDIR=$DESTDIR install |
allan316@4547 | 39 } |
allan316@4547 | 40 |
allan316@4547 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
allan316@4547 | 42 genpkg_rules() |
allan316@4547 | 43 { |
allan316@4547 | 44 mkdir -p $fs/usr/lib |
pascal@15327 | 45 cp -a $install/usr/lib/*.so* $fs/usr/lib |
allan316@4547 | 46 } |
allan316@4547 | 47 |