wok annotate libpng+apng/receipt @ rev 21715
updated protobuf, protobuf-dev and protobuf-python (2.4.1 -> 3.8.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jun 12 13:25:36 2019 +0100 (2019-06-12) |
parents | 516554f6d045 |
children | a54924df72eb |
rev | line source |
---|---|
al@14737 | 1 # SliTaz package receipt. |
al@14737 | 2 |
al@14737 | 3 PACKAGE="libpng+apng" |
al@14737 | 4 SOURCE="libpng" |
pascal@21403 | 5 VERSION="1.6.37" |
al@14737 | 6 SERIES="libpng16" |
al@14737 | 7 CATEGORY="x-window" |
Hans-G?nter@21277 | 8 SHORT_DESC="Loads and saves PNG files (with APNG support)." |
al@14737 | 9 MAINTAINER="al.bobylev@gmail.com" |
al@14737 | 10 LICENSE="zlib/libpng" |
al@14737 | 11 WEB_SITE="http://www.libpng.org/pub/png/libpng.html" |
Hans-G?nter@21277 | 12 |
al@14737 | 13 TARBALL="$SOURCE-$VERSION.tar.xz" |
al@14737 | 14 WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL" |
al@14737 | 15 |
al@14737 | 16 PATCH="$SOURCE-$VERSION-apng.patch.gz" |
al@14737 | 17 PATCH_URL="$SF_MIRROR/apng/$SOURCE/$SERIES/$PATCH" |
al@14737 | 18 |
al@14737 | 19 DEPENDS="zlib" |
al@14737 | 20 BUILD_DEPENDS="gawk zlib-dev" |
al@14737 | 21 |
Hans-G?nter@21277 | 22 HOST_ARCH="i486 arm" |
Hans-G?nter@21277 | 23 |
al@14737 | 24 # Rules to configure and make the package. |
al@14737 | 25 compile_rules() |
al@14737 | 26 { |
al@14737 | 27 [ -s "$SRC/$PATCH" ] || wget -O "$SRC/$PATCH" $PATCH_URL |
al@14737 | 28 gzip -cd $SRC/$PATCH | patch -p0 |
Hans-G?nter@21277 | 29 |
Hans-G?nter@21277 | 30 ./configure \ |
Hans-G?nter@21277 | 31 --prefix=/usr \ |
Hans-G?nter@21277 | 32 --disable-static \ |
al@14737 | 33 $CONFIGURE_ARGS && |
Hans-G?nter@21277 | 34 make -j 1 && |
Hans-G?nter@21277 | 35 |
pascal@19115 | 36 case "$ARCH" in |
pascal@19115 | 37 arm*) |
pascal@19115 | 38 make DESTDIR=$DESTDIR install ;; |
pascal@19115 | 39 *) |
pascal@19115 | 40 make check | tr [A-Z] [a-z] && |
pascal@19115 | 41 make DESTDIR=$DESTDIR install ;; |
pascal@19115 | 42 esac |
al@14737 | 43 } |
al@14737 | 44 |
al@14737 | 45 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@14737 | 46 genpkg_rules() |
al@14737 | 47 { |
al@14737 | 48 mkdir -p $fs/usr/lib |
al@14737 | 49 cp -a $install/usr/lib/*.so* $fs/usr/lib |
al@14737 | 50 } |