tiff4: bump to 4.0.10, fix PROVIDES_tools, add debuginfo.

This commit is contained in:
fbrosson
2018-11-12 00:47:53 +00:00
parent 520a35d14e
commit 173b3f9920
2 changed files with 37 additions and 22 deletions

View File

@@ -5,10 +5,10 @@ Subject: applying patch tiff-4.0.3.patch
diff --git a/libtiff/tiff.h b/libtiff/tiff.h
index fb39634..339492d 100644
index 5b0a0c9..762722c 100644
--- a/libtiff/tiff.h
+++ b/libtiff/tiff.h
@@ -65,6 +65,12 @@
@@ -63,6 +63,12 @@
* strings unsigned char*
*/
@@ -21,7 +21,7 @@ index fb39634..339492d 100644
typedef TIFF_INT8_T int8;
typedef TIFF_UINT8_T uint8;
@@ -77,6 +83,8 @@ typedef TIFF_UINT32_T uint32;
@@ -75,6 +81,8 @@ typedef TIFF_UINT32_T uint32;
typedef TIFF_INT64_T int64;
typedef TIFF_UINT64_T uint64;
@@ -31,7 +31,7 @@ index fb39634..339492d 100644
* Some types as promoted in a variable argument list
* We use uint16_vap rather then directly using int, because this way
--
2.2.2
2.19.1
From 2c7a559393ece94809e7290fd35995c1f84dc6e7 Mon Sep 17 00:00:00 2001
@@ -60,5 +60,5 @@ index b54feb7..efde82c 100644
AS_IF([test "X$ax_cv_check_gl_libgl" = Xno -a "X$no_x" = Xyes],
--
2.2.2
2.19.1

View File

@@ -7,19 +7,23 @@ HOMEPAGE="http://www.libtiff.org/"
COPYRIGHT="1988-1997 Sam Leffler
1991-1997 Silicon Graphics, Inc."
LICENSE="MIT"
REVISION="2"
SOURCE_URI="http://download.osgeo.org/libtiff/tiff-$portVersion.tar.gz"
CHECKSUM_SHA256="6e7bdeec2c310734e734d19aae3a71ebe37a4d842e0e23dbb1b8921c0026cfcd"
REVISION="1"
SOURCE_URI="https://download.osgeo.org/libtiff/tiff-$portVersion.tar.gz"
CHECKSUM_SHA256="2c52d11ccaf767457db0c46795d9c7d1a8d8f76f68b0b800a3dfe45786b996e4"
SOURCE_DIR="tiff-$portVersion"
PATCHES="tiff4-$portVersion.patchset"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
libVersion="5.4.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
portVersionCompat="$portVersion compat >= ${portVersion%%.*}"
PROVIDES="
tiff4$secondaryArchSuffix = $portVersion compat >= 4
lib:libtiff$secondaryArchSuffix = 5.3.0 compat >= 5
lib:libtiffxx$secondaryArchSuffix = 5.3.0 compat >= 5
tiff4$secondaryArchSuffix = $portVersionCompat
lib:libtiff$secondaryArchSuffix = $libVersionCompat
lib:libtiffxx$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
@@ -28,9 +32,9 @@ REQUIRES="
"
PROVIDES_devel="
tiff4${secondaryArchSuffix}_devel = $portVersion compat >= 4
devel:libtiff$secondaryArchSuffix = 5.3.0 compat >= 5
devel:libtiffxx$secondaryArchSuffix = 5.3.0 compat >= 5
tiff4${secondaryArchSuffix}_devel = $portVersionCompat
devel:libtiff$secondaryArchSuffix = $libVersionCompat
devel:libtiffxx$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
tiff4$secondaryArchSuffix == $portVersion base
@@ -43,16 +47,13 @@ if [ -z "$secondaryArchSuffix" ]; then
SUMMARY_tools="The TIFF tools"
PROVIDES_tools="
tiff4_tools = $portVersion
cmd:bmp2tiff
cmd:fax2ps
cmd:fax2tiff
cmd:gif2tiff
cmd:pal2rgb
cmd:ppm2tiff
cmd:ras2tiff
cmd:raw2tiff
cmd:rgb2ycbcr
cmd:thumbnail
# cmd:rgb2ycbcr
# cmd:thumbnail
cmd:tiff2bw
cmd:tiff2pdf
cmd:tiff2ps
@@ -62,6 +63,7 @@ if [ -z "$secondaryArchSuffix" ]; then
cmd:tiffcrop
cmd:tiffdither
cmd:tiffdump
# cmd:tiffgt
cmd:tiffinfo
cmd:tiffmedian
cmd:tiffset
@@ -90,11 +92,24 @@ BUILD_PREREQUIRES="
cmd:make
"
debugList=(
"$libDir"/libtiff.so.$libVersion
"$libDir"/libtiffxx.so.$libVersion
)
if [ -z "$secondaryArchSuffix" ]; then
for i in `echo "$PROVIDES_tools" | sed -n -e "s/^\s*cmd://p"`; do
debugList+=("${binDir/$portName/${portName}_tools}"/$i)
done
fi
defineDebugInfoPackage $portName "${debugList[@]}"
PATCH()
{
if [ $effectiveTargetArchitecture == x86_gcc2 ]; then
sed -i 's/ios::pos_type/streampos/g' libtiff/tif_stream.cxx
sed -i 's/ios::off_type/streamoff/g' libtiff/tif_stream.cxx
if [ "$effectiveTargetArchitecture" = x86_gcc2 ]; then
sed -i \
-e 's/ios::pos_type/streampos/g' \
-e 's/ios::off_type/streamoff/g' \
libtiff/tif_stream.cxx
fi
}