diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-04-23 09:37:37 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-04-23 09:42:24 +0000 |
commit | 4fae22ebc20517a01951fbc52d14eab131e66c5b (patch) | |
tree | 74643da93076f2145aa77060a3abf8d807ed9973 /main/tiff/APKBUILD | |
parent | 6c830b0725e1936ca196495fcd1dfd89c91fb769 (diff) | |
download | aports-4fae22ebc20517a01951fbc52d14eab131e66c5b.tar.bz2 aports-4fae22ebc20517a01951fbc52d14eab131e66c5b.tar.xz |
main/tiff: upgrade to 3.9.5
and clean up the APKBUILD
Diffstat (limited to 'main/tiff/APKBUILD')
-rw-r--r-- | main/tiff/APKBUILD | 69 |
1 files changed, 38 insertions, 31 deletions
diff --git a/main/tiff/APKBUILD b/main/tiff/APKBUILD index a863e2c369..2764544fe3 100644 --- a/main/tiff/APKBUILD +++ b/main/tiff/APKBUILD @@ -1,36 +1,41 @@ # Contributor: Leonardo Arena <rnalrd@gmail.com> # Maintainer: Michael Mason <ms13sp@gmail.com> pkgname=tiff -pkgver=3.8.2 -pkgrel=4 +pkgver=3.9.5 +pkgrel=0 pkgdesc="Provides support for the Tag Image File Format or TIFF" url="http://www.libtiff.org/" arch="all" license="GPL" depends= -subpackages="$pkgname-doc $pkgname-dev" -source="ftp://ftp.remotesensing.org/pub/lib$pkgname/$pkgname-$pkgver.tar.gz - CVE-2006-3459-3465.patch - libtiff-CVE-2009-2285.patch - tiff-3.8.2-CVE-2008-2327.patch - tiff-3.8.2-CVE-2009-2347.patch - tiff2pdf-compression.patch - tiff2pdf-octal-printf.patch - tiffsplit-fname-overflow.patch - tiff-jpegfix.patch +depends_dev="zlib-dev jpeg-dev" +makedepends="libtool autoconf automake $depends_dev" +subpackages="$pkgname-doc $pkgname-dev $pkgname-tools" +source="ftp://ftp.remotesensing.org/pub/libtiff/$pkgname-$pkgver.tar.gz " + +_builddir="$srcdir"/$pkgname-$pkgver -build() { - cd "$srcdir/$pkgname-$pkgver" +prepare() { + local _failed= + cd "$_builddir" + + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || _failed="$_failed $i";; + esac + done + + rm -f libtool.m4 + libtoolize --force --copy \ + && aclocal -I . -I m4 \ + && automake --add-missing --copy \ + && autoconf \ + && autoheader +} - patch -p1 < ../tiff2pdf-octal-printf.patch || return 1 - patch -p1 < ../tiffsplit-fname-overflow.patch || return 1 - patch -p1 < ../CVE-2006-3459-3465.patch || return 1 - patch -p1 < ../tiff2pdf-compression.patch || return 1 - patch -p1 < ../tiff-3.8.2-CVE-2008-2327.patch || return 1 - patch -p1 < ../libtiff-CVE-2009-2285.patch || return 1 - patch -p1 < ../tiff-3.8.2-CVE-2009-2347.patch || return 1 - patch -p1 < ../tiff-jpegfix.patch || return 1 +build() { + cd "$_builddir" ./configure --prefix=/usr \ --sysconfdir=/etc \ @@ -38,16 +43,18 @@ build() { --infodir=/usr/share/info \ --disable-cxx make || return 1 +} + +package() { + cd "$_builddir" make DESTDIR="$pkgdir" install + rm -f "$pkgdir"/usr/lib/*.la +} +tools() { + pkgdesc="Command-line utility programs for manipulating TIFF files" + mkdir -p "$subpkgdir"/usr/ + mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ } -md5sums="fbb6f446ea4ed18955e2714934e5b698 tiff-3.8.2.tar.gz -624d3067e6a4c0680767eb62253ea980 CVE-2006-3459-3465.patch -ff61077408727a82281f77a94f555e2a libtiff-CVE-2009-2285.patch -c2c2e22557d9c63011df5777dda6a86b tiff-3.8.2-CVE-2008-2327.patch -d3b02693cca83e63005b162edd43016b tiff-3.8.2-CVE-2009-2347.patch -b443ffca9d498bb3a88c17da0200025b tiff2pdf-compression.patch -d54368687d2645ffbbe6c2df384b11bf tiff2pdf-octal-printf.patch -323352fd60a7bd3ffac8724c3c031669 tiffsplit-fname-overflow.patch -3353687eba89179f55f027bd571a63f5 tiff-jpegfix.patch" +md5sums="8fc7ce3b4e1d0cc8a319336967815084 tiff-3.9.5.tar.gz" |