29 lines
955 B
Plaintext
29 lines
955 B
Plaintext
# Description: Library for manipulation of TIFF (Tag Image File Format) images
|
|
# URL: http://libtiff.maptools.org/
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
|
# Depends on: libjpeg-turbo-32 zlib-32 libtiff
|
|
|
|
name=libtiff-32
|
|
version=4.0.3
|
|
release=2
|
|
source=(http://download.osgeo.org/libtiff/tiff-$version.tar.gz
|
|
gif2tiff-buffer-overflow.patch
|
|
tiff2pdf_use-after-free.patch
|
|
lzw-oob-write.patch
|
|
tiff-4.0.3-CVE-2013-4243.patch
|
|
tiff-4.0.3-CVE-2013-1960.patch)
|
|
|
|
build() {
|
|
cd tiff-$version
|
|
patch -d tools -p0 -i $SRC/tiff2pdf_use-after-free.patch
|
|
patch -d tools -p0 -i $SRC/gif2tiff-buffer-overflow.patch
|
|
patch -d tools -p0 -i $SRC/lzw-oob-write.patch
|
|
patch -p0 -i $SRC/tiff-4.0.3-CVE-2013-4243.patch
|
|
patch -p1 -i $SRC/tiff-4.0.3-CVE-2013-1960.patch
|
|
|
|
./configure --prefix=/usr --libdir=/usr/lib32 --mandir=/usr/man
|
|
make
|
|
make DESTDIR=$PKG install
|
|
rm -r $PKG/usr/{bin,include,share,man}
|
|
}
|