wok annotate libpng+apng/receipt @ rev 22521
updated autofs (5.1.4 -> 5.1.6)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jan 02 10:33:19 2020 +0100 (2020-01-02) |
parents | 4fea4d70e3c3 |
children | 65d7d867e0c1 |
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 |
pascal@22356 | 28 #gzip -cd $SRC/$PATCH | patch -p0 |
Hans-G?nter@21277 | 29 |
pascal@22356 | 30 # try to fix apng patch... |
pascal@22356 | 31 gzip -cd $SRC/$PATCH > patch.apng |
pascal@22356 | 32 for i in $(seq 267 -1 248); do |
pascal@22356 | 33 sed -i "s|^\+PNG_EXPORT($i,|+PNG_EXPORT($(($i+2)),|" patch.apng |
pascal@22356 | 34 done |
pascal@22356 | 35 patch -p0 < patch.apng |
pascal@22356 | 36 |
pascal@22356 | 37 LIBS=-lrt \ |
Hans-G?nter@21277 | 38 ./configure \ |
Hans-G?nter@21277 | 39 --prefix=/usr \ |
Hans-G?nter@21277 | 40 --disable-static \ |
al@14737 | 41 $CONFIGURE_ARGS && |
Hans-G?nter@21277 | 42 make -j 1 && |
Hans-G?nter@21277 | 43 |
pascal@19115 | 44 case "$ARCH" in |
pascal@19115 | 45 arm*) |
pascal@19115 | 46 make DESTDIR=$DESTDIR install ;; |
pascal@19115 | 47 *) |
pascal@19115 | 48 make check | tr [A-Z] [a-z] && |
pascal@19115 | 49 make DESTDIR=$DESTDIR install ;; |
pascal@19115 | 50 esac |
al@14737 | 51 } |
al@14737 | 52 |
al@14737 | 53 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@14737 | 54 genpkg_rules() |
al@14737 | 55 { |
al@14737 | 56 mkdir -p $fs/usr/lib |
al@14737 | 57 cp -a $install/usr/lib/*.so* $fs/usr/lib |
al@14737 | 58 } |