wok-6.x annotate libpng+apng/receipt @ rev 19985
Up zstd (1.2.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jul 01 15:39:55 2017 +0200 (2017-07-01) |
parents | d1ab69441168 |
children | 516554f6d045 |
rev | line source |
---|---|
al@14737 | 1 # SliTaz package receipt. |
al@14737 | 2 |
al@14737 | 3 PACKAGE="libpng+apng" |
al@14737 | 4 SOURCE="libpng" |
devl547@19760 | 5 VERSION="1.6.28" |
al@14737 | 6 SERIES="libpng16" |
al@14737 | 7 CATEGORY="x-window" |
al@14737 | 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" |
al@14737 | 12 TARBALL="$SOURCE-$VERSION.tar.xz" |
al@14737 | 13 WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL" |
pascal@19115 | 14 HOST_ARCH="i486 arm" |
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 |
al@14737 | 22 # Rules to configure and make the package. |
al@14737 | 23 compile_rules() |
al@14737 | 24 { |
al@14737 | 25 [ -s "$SRC/$PATCH" ] || wget -O "$SRC/$PATCH" $PATCH_URL |
al@14737 | 26 gzip -cd $SRC/$PATCH | patch -p0 |
al@14737 | 27 ./configure \ |
al@14737 | 28 --prefix=/usr \ |
al@14737 | 29 --disable-static \ |
al@14737 | 30 $CONFIGURE_ARGS && |
al@14737 | 31 make && |
pascal@19115 | 32 case "$ARCH" in |
pascal@19115 | 33 arm*) |
pascal@19115 | 34 make DESTDIR=$DESTDIR install ;; |
pascal@19115 | 35 *) |
pascal@19115 | 36 make check | tr [A-Z] [a-z] && |
pascal@19115 | 37 make DESTDIR=$DESTDIR install ;; |
pascal@19115 | 38 esac |
al@14737 | 39 } |
al@14737 | 40 |
al@14737 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@14737 | 42 genpkg_rules() |
al@14737 | 43 { |
al@14737 | 44 mkdir -p $fs/usr/lib |
al@14737 | 45 cp -a $install/usr/lib/*.so* $fs/usr/lib |
al@14737 | 46 } |