aboutsummaryrefslogtreecommitdiffstats
path: root/main/tiff/APKBUILD
blob: 33bab1eabc006a3881d06177ff7f2f7e747c1142 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Contributor: Leonardo Arena <rnalrd@gmail.com>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=tiff
pkgver=3.9.6
pkgrel=2
pkgdesc="Provides support for the Tag Image File Format or TIFF"
url="http://www.libtiff.org/"
license="GPL"
depends=
depends_dev="zlib-dev jpeg-dev"
makedepends="libtool autoconf automake $depends_dev"
subpackages="$pkgname-doc $pkgname-dev"
source="ftp://ftp.remotesensing.org/pub/libtiff/$pkgname-$pkgver.tar.gz
	libtiff-negsize-3.9.patch
	CVE-2012-3401.patch
	CVE-2012-5581.patch
	"
	
_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"

	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--disable-cxx
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="6920f3bf628d791d49f268b83612ed23  tiff-3.9.6.tar.gz
a0742e7c81551c51438a8d6fa5d68676  libtiff-negsize-3.9.patch
8c862de25b906d3fcefce2fb06c7b604  CVE-2012-3401.patch
f0eff2b15675a00dd4d4a230b88f1f59  CVE-2012-5581.patch"