pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

tiff-32: compat32 package for tiff



Module Name:	pkgsrc-wip
Committed By:	Naveen Narayanan <zerous@nocebo.space>
Pushed By:	zerous
Date:		Sun Jun 30 18:26:40 2019 +0200
Changeset:	63161bdab525532a83f99fda462a4c4f1b63d856

Added Files:
	tiff-32/DESCR
	tiff-32/Makefile
	tiff-32/PLIST
	tiff-32/buildlink3.mk
	tiff-32/distinfo
	tiff-32/options.mk
	tiff-32/patches/patch-configure

Log Message:
tiff-32: compat32 package for tiff

This is software provides support for the Tag Image Format (TIFF).
Included is a library, libtiff, for reading and writing TIFF, a
collection of tools for doing simple manipulations of TIFF images, and
documentation on the library and tools.  A random assortment of
TIFF-related software contributed by others is also included.

The library, along with associated tool programs, should handle most
of your needs for reading and writing files that follow the 5.0 or 6.0
TIFF spec.  There is also considerable support for some of the more
esoteric portions of the 6.0 TIFF spec.

This package is intended to crosscompile tiff for i386.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=63161bdab525532a83f99fda462a4c4f1b63d856

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 tiff-32/DESCR                   |  12 ++
 tiff-32/Makefile                |  49 +++++++++
 tiff-32/PLIST                   | 237 ++++++++++++++++++++++++++++++++++++++++
 tiff-32/buildlink3.mk           |  18 +++
 tiff-32/distinfo                |   7 ++
 tiff-32/options.mk              |  16 +++
 tiff-32/patches/patch-configure |  30 +++++
 7 files changed, 369 insertions(+)

diffs:
diff --git a/tiff-32/DESCR b/tiff-32/DESCR
new file mode 100644
index 0000000000..f02c43c874
--- /dev/null
+++ b/tiff-32/DESCR
@@ -0,0 +1,12 @@
+This is software provides support for the Tag Image Format (TIFF).
+Included is a library, libtiff, for reading and writing TIFF, a
+collection of tools for doing simple manipulations of TIFF images, and
+documentation on the library and tools.  A random assortment of
+TIFF-related software contributed by others is also included.
+
+The library, along with associated tool programs, should handle most of
+your needs for reading and writing files that follow the 5.0 or 6.0
+TIFF spec.  There is also considerable support for some of the more
+esoteric portions of the 6.0 TIFF spec.
+
+This package is intended to crosscompile tiff for i386.
diff --git a/tiff-32/Makefile b/tiff-32/Makefile
new file mode 100644
index 0000000000..31fef5f859
--- /dev/null
+++ b/tiff-32/Makefile
@@ -0,0 +1,49 @@
+# $NetBSD: Makefile,v 1.144 2018/11/10 21:14:53 maya Exp $
+
+DISTNAME=	tiff-4.0.10
+CATEGORIES=	graphics
+MASTER_SITES=	https://download.osgeo.org/libtiff/
+ABI?=          	32
+PKGNAME=	compat${ABI}_tiff-4.0.10
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	http://simplesystems.org/libtiff/
+COMMENT=	Library and tools for reading and writing TIFF data files
+LICENSE=	mit
+
+EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
+
+USE_LANGUAGES=		c c++
+USE_LIBTOOL=		yes
+GNU_CONFIGURE=		yes
+LIBABISUFFIX?=          /32
+CONFIGURE_ARGS+=        --libdir=${PREFIX}/lib${LIBABISUFFIX}
+CFLAGS+=                -m32
+CONFIGURE_ARGS+=	--enable-rpath
+CONFIGURE_ARGS+=	--enable-cxx
+#CONFIGURE_ARGS+=	--with-docdir=${PREFIX}/share/doc/tiff
+CONFIGURE_ARGS+=        --with-docdir=${PREFIX}/lib${LIBABISUFFIX}
+CONFIGURE_ARGS+=	--without-x # just in case detects gl to build tiffgt
+CONFIGURE_ARGS+=	--bindir=${PREFIX}/lib/${LIBABISUFFIX}
+CONFIGURE_ARGS+=	--includedir=${PREFIX}/lib/${LIBABISUFFIX}
+#CONFIGURE_ARGS+=	--mandir=${PREFIX}/lib/${LIBABISUFFIX}
+GNU_CONFIGURE_MANDIR=	${PREFIX}/lib/${LIBABISUFFIX}
+
+PKGCONFIG_OVERRIDE=	libtiff-4.pc.in
+
+TEST_TARGET=		check
+
+post-install:
+	cd ${DESTDIR}/${PREFIX}/lib/${LIBABISUFFIX}/man3 && for file in *.3tiff; do\
+		target=`${ECHO} $$file | sed "s/3tiff/3/"`; \
+		${MV} $$file $$target; \
+	done
+
+.include "options.mk"
+
+.include "../../devel/zlib/buildlink3.mk"
+# XXX for liblzma; there are more potential suppliers
+.include "../../archivers/xz/buildlink3.mk"
+.include "../../graphics/jbigkit/buildlink3.mk"
+.include "../../mk/jpeg.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/tiff-32/PLIST b/tiff-32/PLIST
new file mode 100644
index 0000000000..aa0efde99e
--- /dev/null
+++ b/tiff-32/PLIST
@@ -0,0 +1,237 @@
+@comment $NetBSD$
+lib/32/COPYRIGHT
+lib/32/ChangeLog
+lib/32/README.md
+lib/32/RELEASE-DATE
+lib/32/TODO
+lib/32/VERSION
+lib/32/fax2ps
+lib/32/fax2tiff
+lib/32/html/TIFFTechNote2.html
+lib/32/html/addingtags.html
+lib/32/html/bugs.html
+lib/32/html/build.html
+lib/32/html/contrib.html
+lib/32/html/document.html
+lib/32/html/images.html
+lib/32/html/images/back.gif
+lib/32/html/images/bali.jpg
+lib/32/html/images/cat.gif
+lib/32/html/images/cover.jpg
+lib/32/html/images/cramps.gif
+lib/32/html/images/dave.gif
+lib/32/html/images/info.gif
+lib/32/html/images/jello.jpg
+lib/32/html/images/jim.gif
+lib/32/html/images/note.gif
+lib/32/html/images/oxford.gif
+lib/32/html/images/quad.jpg
+lib/32/html/images/ring.gif
+lib/32/html/images/smallliz.jpg
+lib/32/html/images/strike.gif
+lib/32/html/images/warning.gif
+lib/32/html/index.html
+lib/32/html/internals.html
+lib/32/html/intro.html
+lib/32/html/libtiff.html
+lib/32/html/man/TIFFClose.3tiff.html
+lib/32/html/man/TIFFDataWidth.3tiff.html
+lib/32/html/man/TIFFError.3tiff.html
+lib/32/html/man/TIFFFieldDataType.3tiff.html
+lib/32/html/man/TIFFFieldName.3tiff.html
+lib/32/html/man/TIFFFieldPassCount.3tiff.html
+lib/32/html/man/TIFFFieldReadCount.3tiff.html
+lib/32/html/man/TIFFFieldTag.3tiff.html
+lib/32/html/man/TIFFFieldWriteCount.3tiff.html
+lib/32/html/man/TIFFFlush.3tiff.html
+lib/32/html/man/TIFFGetField.3tiff.html
+lib/32/html/man/TIFFOpen.3tiff.html
+lib/32/html/man/TIFFPrintDirectory.3tiff.html
+lib/32/html/man/TIFFRGBAImage.3tiff.html
+lib/32/html/man/TIFFReadDirectory.3tiff.html
+lib/32/html/man/TIFFReadEncodedStrip.3tiff.html
+lib/32/html/man/TIFFReadEncodedTile.3tiff.html
+lib/32/html/man/TIFFReadRGBAImage.3tiff.html
+lib/32/html/man/TIFFReadRGBAStrip.3tiff.html
+lib/32/html/man/TIFFReadRGBATile.3tiff.html
+lib/32/html/man/TIFFReadRawStrip.3tiff.html
+lib/32/html/man/TIFFReadRawTile.3tiff.html
+lib/32/html/man/TIFFReadScanline.3tiff.html
+lib/32/html/man/TIFFReadTile.3tiff.html
+lib/32/html/man/TIFFSetDirectory.3tiff.html
+lib/32/html/man/TIFFSetField.3tiff.html
+lib/32/html/man/TIFFWarning.3tiff.html
+lib/32/html/man/TIFFWriteDirectory.3tiff.html
+lib/32/html/man/TIFFWriteEncodedStrip.3tiff.html
+lib/32/html/man/TIFFWriteEncodedTile.3tiff.html
+lib/32/html/man/TIFFWriteRawStrip.3tiff.html
+lib/32/html/man/TIFFWriteRawTile.3tiff.html
+lib/32/html/man/TIFFWriteScanline.3tiff.html
+lib/32/html/man/TIFFWriteTile.3tiff.html
+lib/32/html/man/TIFFbuffer.3tiff.html
+lib/32/html/man/TIFFcodec.3tiff.html
+lib/32/html/man/TIFFcolor.3tiff.html
+lib/32/html/man/TIFFmemory.3tiff.html
+lib/32/html/man/TIFFquery.3tiff.html
+lib/32/html/man/TIFFsize.3tiff.html
+lib/32/html/man/TIFFstrip.3tiff.html
+lib/32/html/man/TIFFswab.3tiff.html
+lib/32/html/man/TIFFtile.3tiff.html
+lib/32/html/man/fax2ps.1.html
+lib/32/html/man/fax2tiff.1.html
+lib/32/html/man/index.html
+lib/32/html/man/libtiff.3tiff.html
+lib/32/html/man/pal2rgb.1.html
+lib/32/html/man/ppm2tiff.1.html
+lib/32/html/man/raw2tiff.1.html
+lib/32/html/man/tiff2bw.1.html
+lib/32/html/man/tiff2pdf.1.html
+lib/32/html/man/tiff2ps.1.html
+lib/32/html/man/tiff2rgba.1.html
+lib/32/html/man/tiffcmp.1.html
+lib/32/html/man/tiffcp.1.html
+lib/32/html/man/tiffcrop.1.html
+lib/32/html/man/tiffdither.1.html
+lib/32/html/man/tiffdump.1.html
+lib/32/html/man/tiffgt.1.html
+lib/32/html/man/tiffinfo.1.html
+lib/32/html/man/tiffmedian.1.html
+lib/32/html/man/tiffset.1.html
+lib/32/html/man/tiffsplit.1.html
+lib/32/html/misc.html
+lib/32/html/support.html
+lib/32/html/tools.html
+lib/32/html/v3.4beta007.html
+lib/32/html/v3.4beta016.html
+lib/32/html/v3.4beta018.html
+lib/32/html/v3.4beta024.html
+lib/32/html/v3.4beta028.html
+lib/32/html/v3.4beta029.html
+lib/32/html/v3.4beta031.html
+lib/32/html/v3.4beta032.html
+lib/32/html/v3.4beta033.html
+lib/32/html/v3.4beta034.html
+lib/32/html/v3.4beta035.html
+lib/32/html/v3.4beta036.html
+lib/32/html/v3.5.1.html
+lib/32/html/v3.5.2.html
+lib/32/html/v3.5.3.html
+lib/32/html/v3.5.4.html
+lib/32/html/v3.5.5.html
+lib/32/html/v3.5.6-beta.html
+lib/32/html/v3.5.7.html
+lib/32/html/v3.6.0.html
+lib/32/html/v3.6.1.html
+lib/32/html/v3.7.0.html
+lib/32/html/v3.7.0alpha.html
+lib/32/html/v3.7.0beta.html
+lib/32/html/v3.7.0beta2.html
+lib/32/html/v3.7.1.html
+lib/32/html/v3.7.2.html
+lib/32/html/v3.7.3.html
+lib/32/html/v3.7.4.html
+lib/32/html/v3.8.0.html
+lib/32/html/v3.8.1.html
+lib/32/html/v3.8.2.html
+lib/32/html/v3.9.0beta.html
+lib/32/html/v3.9.1.html
+lib/32/html/v3.9.2.html
+lib/32/html/v4.0.0.html
+lib/32/html/v4.0.1.html
+lib/32/html/v${PKGVERSION}.html
+lib/32/html/v4.0.2.html
+lib/32/html/v4.0.3.html
+lib/32/html/v4.0.4.html
+lib/32/html/v4.0.4beta.html
+lib/32/html/v4.0.5.html
+lib/32/html/v4.0.6.html
+lib/32/html/v4.0.7.html
+lib/32/html/v4.0.8.html
+lib/32/html/v4.0.9.html
+lib/32/libtiff.la
+lib/32/libtiffxx.la
+lib/32/man1/fax2ps.1
+lib/32/man1/fax2tiff.1
+lib/32/man1/pal2rgb.1
+lib/32/man1/ppm2tiff.1
+lib/32/man1/raw2tiff.1
+lib/32/man1/tiff2bw.1
+lib/32/man1/tiff2pdf.1
+lib/32/man1/tiff2ps.1
+lib/32/man1/tiff2rgba.1
+lib/32/man1/tiffcmp.1
+lib/32/man1/tiffcp.1
+lib/32/man1/tiffcrop.1
+lib/32/man1/tiffdither.1
+lib/32/man1/tiffdump.1
+lib/32/man1/tiffgt.1
+lib/32/man1/tiffinfo.1
+lib/32/man1/tiffmedian.1
+lib/32/man1/tiffset.1
+lib/32/man1/tiffsplit.1
+lib/32/man3/TIFFClose.3
+lib/32/man3/TIFFDataWidth.3
+lib/32/man3/TIFFError.3
+lib/32/man3/TIFFFieldDataType.3
+lib/32/man3/TIFFFieldName.3
+lib/32/man3/TIFFFieldPassCount.3
+lib/32/man3/TIFFFieldReadCount.3
+lib/32/man3/TIFFFieldTag.3
+lib/32/man3/TIFFFieldWriteCount.3
+lib/32/man3/TIFFFlush.3
+lib/32/man3/TIFFGetField.3
+lib/32/man3/TIFFOpen.3
+lib/32/man3/TIFFPrintDirectory.3
+lib/32/man3/TIFFRGBAImage.3
+lib/32/man3/TIFFReadDirectory.3
+lib/32/man3/TIFFReadEncodedStrip.3
+lib/32/man3/TIFFReadEncodedTile.3
+lib/32/man3/TIFFReadRGBAImage.3
+lib/32/man3/TIFFReadRGBAStrip.3
+lib/32/man3/TIFFReadRGBATile.3
+lib/32/man3/TIFFReadRawStrip.3
+lib/32/man3/TIFFReadRawTile.3
+lib/32/man3/TIFFReadScanline.3
+lib/32/man3/TIFFReadTile.3
+lib/32/man3/TIFFSetDirectory.3
+lib/32/man3/TIFFSetField.3
+lib/32/man3/TIFFWarning.3
+lib/32/man3/TIFFWriteDirectory.3
+lib/32/man3/TIFFWriteEncodedStrip.3
+lib/32/man3/TIFFWriteEncodedTile.3
+lib/32/man3/TIFFWriteRawStrip.3
+lib/32/man3/TIFFWriteRawTile.3
+lib/32/man3/TIFFWriteScanline.3
+lib/32/man3/TIFFWriteTile.3
+lib/32/man3/TIFFbuffer.3
+lib/32/man3/TIFFcodec.3
+lib/32/man3/TIFFcolor.3
+lib/32/man3/TIFFmemory.3
+lib/32/man3/TIFFquery.3
+lib/32/man3/TIFFsize.3
+lib/32/man3/TIFFstrip.3
+lib/32/man3/TIFFswab.3
+lib/32/man3/TIFFtile.3
+lib/32/man3/libtiff.3
+lib/32/pal2rgb
+lib/32/pkgconfig/libtiff-4.pc
+lib/32/ppm2tiff
+lib/32/raw2tiff
+lib/32/tiff.h
+lib/32/tiff2bw
+lib/32/tiff2pdf
+lib/32/tiff2ps
+lib/32/tiff2rgba
+lib/32/tiffcmp
+lib/32/tiffconf.h
+lib/32/tiffcp
+lib/32/tiffcrop
+lib/32/tiffdither
+lib/32/tiffdump
+lib/32/tiffinfo
+lib/32/tiffio.h
+lib/32/tiffio.hxx
+lib/32/tiffmedian
+lib/32/tiffset
+lib/32/tiffsplit
+lib/32/tiffvers.h
diff --git a/tiff-32/buildlink3.mk b/tiff-32/buildlink3.mk
new file mode 100644
index 0000000000..73a187d057
--- /dev/null
+++ b/tiff-32/buildlink3.mk
@@ -0,0 +1,18 @@
+# $NetBSD: buildlink3.mk,v 1.24 2013/08/28 16:51:36 richard Exp $
+
+BUILDLINK_TREE+=	tiff
+
+.if !defined(TIFF_BUILDLINK3_MK)
+TIFF_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.tiff+=	tiff>=3.6.1
+BUILDLINK_ABI_DEPENDS.tiff+=	tiff>=4.0.3nb5
+BUILDLINK_PKGSRCDIR.tiff?=	../../graphics/tiff
+
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../archivers/xz/buildlink3.mk"
+.include "../../graphics/jbigkit/buildlink3.mk"
+.include "../../mk/jpeg.buildlink3.mk"
+.endif # TIFF_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-tiff
diff --git a/tiff-32/distinfo b/tiff-32/distinfo
new file mode 100644
index 0000000000..5abafc2bff
--- /dev/null
+++ b/tiff-32/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.93 2018/11/10 21:14:53 maya Exp $
+
+SHA1 (tiff-4.0.10.tar.gz) = c783b80f05cdacf282aa022dc5f5b0ede5e021ae
+RMD160 (tiff-4.0.10.tar.gz) = b25cc4002f2493e71763d0a465a50e9d6ee2aff0
+SHA512 (tiff-4.0.10.tar.gz) = d213e5db09fd56b8977b187c5a756f60d6e3e998be172550c2892dbdb4b2a8e8c750202bc863fe27d0d1c577ab9de1710d15e9f6ed665aadbfd857525a81eea8
+Size (tiff-4.0.10.tar.gz) = 2402867 bytes
+SHA1 (patch-configure) = a0032133f06b6ac92bbf52349fabe83f74ea14a6
diff --git a/tiff-32/options.mk b/tiff-32/options.mk
new file mode 100644
index 0000000000..67f09cfc3c
--- /dev/null
+++ b/tiff-32/options.mk
@@ -0,0 +1,16 @@
+# $NetBSD: options.mk,v 1.2 2005/05/31 10:01:37 dillo Exp $
+
+PKG_OPTIONS_VAR=	PKG_OPTIONS.tiff
+PKG_SUPPORTED_OPTIONS=	lzw
+PKG_SUGGESTED_OPTIONS=	lzw
+
+.include "../../mk/bsd.options.mk"
+
+###
+### LZW compression support
+###
+.if !empty(PKG_OPTIONS:Mlzw)
+CONFIGURE_ARGS+=	--enable-lzw
+.else
+CONFIGURE_ARGS+=	--disable-lzw
+.endif
diff --git a/tiff-32/patches/patch-configure b/tiff-32/patches/patch-configure
new file mode 100644
index 0000000000..dd12a0ec6d
--- /dev/null
+++ b/tiff-32/patches/patch-configure
@@ -0,0 +1,30 @@
+$NetBSD: patch-configure,v 1.4 2015/08/27 19:16:53 adam Exp $
+
+To avoid conflict with Security.framework on OS X, prefer unsigned long long as 64-bit type.
+
+--- configure.orig	2015-08-24 22:13:55.000000000 +0000
++++ configure
+@@ -17750,11 +17750,7 @@ _ACEOF
+ $as_echo_n "checking for unsigned 64-bit type... " >&6; }
+ UINT64_T='none'
+ UINT64_FORMAT='none'
+-if test $ac_cv_sizeof_unsigned_long -eq 8
+-then
+-  UINT64_T='unsigned long'
+-  UINT64_FORMAT='"%lu"'
+-elif test $ac_cv_sizeof_unsigned_long_long -eq 8
++if test $ac_cv_sizeof_unsigned_long_long -eq 8
+ then
+   UINT64_T='unsigned long long'
+   case "${host_os}" in
+@@ -17766,6 +17762,10 @@ then
+       UINT64_FORMAT='"%llu"'
+       ;;
+   esac
++elif test $ac_cv_sizeof_unsigned_long -eq 8
++then
++  UINT64_T='unsigned long'
++  UINT64_FORMAT='"%lu"'
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
+ $as_echo "$UINT64_T" >&6; }


Home | Main Index | Thread Index | Old Index