wok-next annotate libpng+apng/receipt @ rev 19345
Up slitaz-base-files (309)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Jul 22 09:40:10 2016 +0300 (2016-07-22) |
parents | 16dd2a014428 |
children | 35a20e111081 |
rev | line source |
---|---|
al@14737 | 1 # SliTaz package receipt. |
al@14737 | 2 |
al@14737 | 3 PACKAGE="libpng+apng" |
al@14737 | 4 PROVIDE="libpng" |
al@14737 | 5 SOURCE="libpng" |
al@14737 | 6 VERSION="1.6.2" |
al@14737 | 7 SERIES="libpng16" |
al@14737 | 8 CATEGORY="x-window" |
al@14737 | 9 SHORT_DESC="Loads and saves PNG files (with APNG support)" |
al@14737 | 10 MAINTAINER="al.bobylev@gmail.com" |
al@14737 | 11 LICENSE="zlib/libpng" |
al@14737 | 12 WEB_SITE="http://www.libpng.org/pub/png/libpng.html" |
al@14737 | 13 TARBALL="$SOURCE-$VERSION.tar.xz" |
al@14737 | 14 WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL" |
pascal@19115 | 15 HOST_ARCH="i486 arm" |
al@14737 | 16 |
al@14737 | 17 PATCH="$SOURCE-$VERSION-apng.patch.gz" |
al@14737 | 18 PATCH_URL="$SF_MIRROR/apng/$SOURCE/$SERIES/$PATCH" |
al@14737 | 19 |
al@14737 | 20 DEPENDS="zlib" |
al@14737 | 21 BUILD_DEPENDS="gawk zlib-dev" |
al@14737 | 22 |
al@14737 | 23 # Rules to configure and make the package. |
al@14737 | 24 compile_rules() |
al@14737 | 25 { |
al@14737 | 26 [ -s "$SRC/$PATCH" ] || wget -O "$SRC/$PATCH" $PATCH_URL |
al@14737 | 27 gzip -cd $SRC/$PATCH | patch -p0 |
al@14737 | 28 ./configure \ |
al@14737 | 29 --prefix=/usr \ |
al@14737 | 30 --disable-static \ |
al@14737 | 31 $CONFIGURE_ARGS && |
al@14737 | 32 make && |
pascal@19115 | 33 case "$ARCH" in |
pascal@19115 | 34 arm*) |
pascal@19115 | 35 make DESTDIR=$DESTDIR install ;; |
pascal@19115 | 36 *) |
pascal@19115 | 37 make check | tr [A-Z] [a-z] && |
pascal@19115 | 38 make DESTDIR=$DESTDIR install ;; |
pascal@19115 | 39 esac |
al@14737 | 40 } |
al@14737 | 41 |
al@14737 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@14737 | 43 genpkg_rules() |
al@14737 | 44 { |
al@14737 | 45 mkdir -p $fs/usr/lib |
al@14737 | 46 cp -a $install/usr/lib/*.so* $fs/usr/lib |
al@14737 | 47 } |