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