| 1 | NAME = tiff |
|---|
| 2 | VERSION = 3.9.5 |
|---|
| 3 | GARTYPE = v2 |
|---|
| 4 | |
|---|
| 5 | DESCRIPTION = Lib and tools for Tag Image File Format |
|---|
| 6 | define BLURB |
|---|
| 7 | endef |
|---|
| 8 | |
|---|
| 9 | MASTER_SITES = http://download.osgeo.org/libtiff/ |
|---|
| 10 | DISTFILES += $(DISTNAME).tar.gz |
|---|
| 11 | |
|---|
| 12 | PATCHFILES += 0001-Keep-norunpath-during-linkage.patch |
|---|
| 13 | |
|---|
| 14 | VENDOR_URL = http://www.remotesensing.org/libtiff/ |
|---|
| 15 | |
|---|
| 16 | LICENSE = COPYRIGHT |
|---|
| 17 | |
|---|
| 18 | PACKAGES = CSWtiff |
|---|
| 19 | SPKG_DESC_CSWtiff += Tools for Tag Image File Format manipulation |
|---|
| 20 | PKGFILES_CSWtiff += $(bindir)/.* |
|---|
| 21 | PKGFILES_CSWtiff += $(mandir)/man1/.* |
|---|
| 22 | RUNTIME_DEP_PKGS_CSWtiff += CSWlibtiff3 |
|---|
| 23 | RUNTIME_DEP_PKGS_CSWtiff += CSWlibjpeg7 |
|---|
| 24 | RUNTIME_DEP_PKGS_CSWtiff += CSWjbigkit |
|---|
| 25 | RUNTIME_DEP_PKGS_CSWtiff += CSWfreeglut |
|---|
| 26 | RUNTIME_DEP_PKGS_CSWtiff += CSWmesa |
|---|
| 27 | RUNTIME_DEP_PKGS_CSWtiff += CSWlibz1 |
|---|
| 28 | |
|---|
| 29 | # There are legacy packages dependencing on CSWtiff who have not a SONAME binding and |
|---|
| 30 | # require libtiff.so to be available |
|---|
| 31 | RUNTIME_DEP_PKGS_CSWtiff += CSWlibtiff-dev |
|---|
| 32 | CHECKPKG_OVERRIDES_CSWtiff += surplus-dependency|CSWlibtiff-dev |
|---|
| 33 | |
|---|
| 34 | PACKAGES += CSWlibtiff3 |
|---|
| 35 | SPKG_DESC_CSWlibtiff3 = Tag Image File Format library for C, libtiff.so.3 |
|---|
| 36 | PKGFILES_CSWlibtiff3 += $(call pkgfiles_lib,libtiff.so.3) |
|---|
| 37 | RUNTIME_DEP_PKGS_CSWlibtiff3 += CSWlibjpeg7 |
|---|
| 38 | RUNTIME_DEP_PKGS_CSWlibtiff3 += CSWjbigkit |
|---|
| 39 | RUNTIME_DEP_PKGS_CSWlibtiff3 += CSWlibz1 |
|---|
| 40 | |
|---|
| 41 | PACKAGES += CSWlibtiffxx3 |
|---|
| 42 | SPKG_DESC_CSWlibtiffxx3 = Tag Image File Format library for C++, libtiffcxx.so.3 |
|---|
| 43 | PKGFILES_CSWlibtiffxx3 += $(call pkgfiles_lib,libtiffxx.so.3) |
|---|
| 44 | RUNTIME_DEP_PKGS_CSWlibtiffxx3 += CSWlibjpeg7 |
|---|
| 45 | RUNTIME_DEP_PKGS_CSWlibtiffxx3 += CSWjbigkit |
|---|
| 46 | RUNTIME_DEP_PKGS_CSWlibtiffxx3 += CSWlibz1 |
|---|
| 47 | RUNTIME_DEP_PKGS_CSWlibtiffxx3 += CSWlibtiff3 |
|---|
| 48 | |
|---|
| 49 | PACKAGES += CSWlibtiff-dev |
|---|
| 50 | SPKG_DESC_CSWlibtiff-dev += Development files for libtiff.so.3 and libtiffxx.so.3 |
|---|
| 51 | # PKGFILES is catchall |
|---|
| 52 | RUNTIME_DEP_PKGS_CSWlibtiff-dev += CSWlibtiff3 |
|---|
| 53 | RUNTIME_DEP_PKGS_CSWlibtiff-dev += CSWlibtiffxx3 |
|---|
| 54 | |
|---|
| 55 | # There are docs only |
|---|
| 56 | CHECKPKG_OVERRIDES_CSWlibtiff-dev += file-with-bad-content|/usr/local|root/opt/csw/share/doc/tiff/ChangeLog |
|---|
| 57 | CHECKPKG_OVERRIDES_CSWlibtiff-dev += file-with-bad-content|/usr/local|root/opt/csw/share/doc/tiff/html/build.html |
|---|
| 58 | |
|---|
| 59 | EXTRA_LINKER_FLAGS += -norunpath |
|---|
| 60 | |
|---|
| 61 | BUILD64 = 1 |
|---|
| 62 | ISAEXEC = 1 |
|---|
| 63 | |
|---|
| 64 | CONFIGURE_ARGS = $(DIRPATHS) |
|---|
| 65 | CONFIGURE_ARGS += --with-docdir=$(docdir)/tiff |
|---|
| 66 | CONFIGURE_ARGS += --disable-static |
|---|
| 67 | CONFIGURE_ARGS += --enable-cxx |
|---|
| 68 | CONFIGURE_ARGS += --with-zlib-include-dir=$(includedir) |
|---|
| 69 | CONFIGURE_ARGS += --with-zlib-lib-dir=$(libdir) |
|---|
| 70 | CONFIGURE_ARGS += --with-jpeg-include-dir=$(includedir) |
|---|
| 71 | CONFIGURE_ARGS += --with-jpeg-lib-dir=$(libdir) |
|---|
| 72 | CONFIGURE_ARGS += --with-jbig-include-dir=$(includedir) |
|---|
| 73 | CONFIGURE_ARGS += --with-jbig-lib-dir=$(libdir) |
|---|
| 74 | |
|---|
| 75 | include gar/category.mk |
|---|