source: trunk/make/tiff/tiff.mk @ 14007

Letzte Änderung dieser Datei seit 14007 war 14007, erstellt von er13 vor 18 Monaten

tiff:

Fixes the following CVEs:

  • CVE-2016-3622
  • CVE-2016-3623
  • CVE-2016-5321
  • CVE-2016-5323
  • CVE-2016-5652
  • CVE-2016-5875
  • CVE-2014-8127
  • CVE-2015-8665
  • CVE-2015-8683
  • CVE-2016-9273
  • CVE-2016-9448
Dateigröße: 3.4 KB
Zeile 
1$(call PKG_INIT_BIN, 4.0.7)
2$(PKG)_LIB_VERSION:=5.2.5
3$(PKG)_SOURCE:=$(pkg)-$($(PKG)_VERSION).tar.gz
4$(PKG)_SOURCE_SHA256:=9f43a2cfb9589e5cecaa66e16bf87f814c945f22df7ba600d63aac4632c4f019
5$(PKG)_SITE:=http://download.osgeo.org/libtiff
6
7$(PKG)_BINARIES_ALL := fax2ps fax2tiff ppm2tiff raw2tiff tiff2bw tiff2pdf tiff2ps tiffinfo tiffsplit
8$(PKG)_BINARIES := $(call PKG_SELECTED_SUBOPTIONS,$($(PKG)_BINARIES_ALL))
9$(PKG)_BINARIES_BUILD_DIR := $($(PKG)_BINARIES:%=$($(PKG)_DIR)/tools/.libs/%)
10$(PKG)_BINARIES_TARGET_DIR := $($(PKG)_BINARIES:%=$($(PKG)_DEST_DIR)/usr/bin/%)
11
12$(PKG)_EXCLUDED += $(patsubst %,$($(PKG)_DEST_DIR)/usr/bin/%,$(filter-out $($(PKG)_BINARIES),$($(PKG)_BINARIES_ALL)))
13
14$(PKG)_LIBNAMES_SHORT := libtiff libtiffxx
15$(PKG)_LIBNAMES_LONG := $($(PKG)_LIBNAMES_SHORT:%=%.so.$($(PKG)_LIB_VERSION))
16
17$(PKG)_LIBS_BUILD_DIR :=$($(PKG)_LIBNAMES_LONG:%=$($(PKG)_DIR)/libtiff/.libs/%)
18$(PKG)_LIBS_STAGING_DIR := $($(PKG)_LIBNAMES_LONG:%=$(TARGET_TOOLCHAIN_STAGING_DIR)/usr/lib/%)
19$(PKG)_LIBS_TARGET_DIR := $($(PKG)_LIBNAMES_LONG:%=$($(PKG)_TARGET_LIBDIR)/%)
20
21$(PKG)_DEPENDS_ON += $(STDCXXLIB) zlib jpeg
22$(PKG)_REBUILD_SUBOPTS += FREETZ_STDCXXLIB
23
24$(PKG)_CONFIGURE_PRE_CMDS += $(call PKG_PREVENT_RPATH_HARDCODING,./configure)
25
26$(PKG)_CONFIGURE_OPTIONS += --enable-shared
27$(PKG)_CONFIGURE_OPTIONS += --enable-static
28$(PKG)_CONFIGURE_OPTIONS += --enable-cxx=yes
29$(PKG)_CONFIGURE_OPTIONS += --enable-ccitt
30$(PKG)_CONFIGURE_OPTIONS += --enable-packbits
31$(PKG)_CONFIGURE_OPTIONS += --enable-lzw
32$(PKG)_CONFIGURE_OPTIONS += --enable-thunder
33$(PKG)_CONFIGURE_OPTIONS += --enable-next
34$(PKG)_CONFIGURE_OPTIONS += --enable-logluv
35$(PKG)_CONFIGURE_OPTIONS += --enable-mdi
36$(PKG)_CONFIGURE_OPTIONS += --enable-zlib
37$(PKG)_CONFIGURE_OPTIONS += --enable-jpeg
38$(PKG)_CONFIGURE_OPTIONS += --disable-old-jpeg
39$(PKG)_CONFIGURE_OPTIONS += --disable-jbig
40$(PKG)_CONFIGURE_OPTIONS += --disable-lzma
41$(PKG)_CONFIGURE_OPTIONS += --without-apple-opengl-framework
42
43$(PKG)_CONFIGURE_OPTIONS += --with-jpeg-include-dir="$(TARGET_TOOLCHAIN_STAGING_DIR)/usr/include"
44$(PKG)_CONFIGURE_OPTIONS += --with-jpeg-lib-dir="$(TARGET_TOOLCHAIN_STAGING_DIR)/usr/lib"
45
46$(PKG_SOURCE_DOWNLOAD)
47$(PKG_UNPACKED)
48$(PKG_CONFIGURED_CONFIGURE)
49
50$($(PKG)_BINARIES_BUILD_DIR) $($(PKG)_LIBS_BUILD_DIR): $($(PKG)_DIR)/.configured
51    $(SUBMAKE) -C $(TIFF_DIR)
52
53$($(PKG)_BINARIES_TARGET_DIR): $($(PKG)_DEST_DIR)/usr/bin/%: $($(PKG)_DIR)/tools/.libs/%
54    $(INSTALL_BINARY_STRIP)
55
56$($(PKG)_LIBS_STAGING_DIR): $($(PKG)_LIBS_BUILD_DIR)
57    $(SUBMAKE) -C $(TIFF_DIR)/libtiff \
58        DESTDIR="$(TARGET_TOOLCHAIN_STAGING_DIR)" \
59        install
60    $(SUBMAKE) -C $(TIFF_DIR) \
61        DESTDIR="$(TARGET_TOOLCHAIN_STAGING_DIR)" \
62        install-pkgconfigDATA
63    $(PKG_FIX_LIBTOOL_LA) \
64        $(TARGET_TOOLCHAIN_STAGING_DIR)/usr/lib/pkgconfig/libtiff*.pc \
65        $(TIFF_LIBNAMES_SHORT:%=$(TARGET_TOOLCHAIN_STAGING_DIR)/usr/lib/%.la)
66
67$($(PKG)_LIBS_TARGET_DIR): $($(PKG)_TARGET_LIBDIR)/%: $(TARGET_TOOLCHAIN_STAGING_DIR)/usr/lib/%
68    $(INSTALL_LIBRARY_STRIP)
69
70$(pkg): $($(PKG)_LIBS_STAGING_DIR)
71
72$(pkg)-precompiled: $($(PKG)_BINARIES_TARGET_DIR) $($(PKG)_LIBS_TARGET_DIR)
73
74$(pkg)-clean:
75    -$(SUBMAKE) -C $(TIFF_DIR) clean
76    $(RM) \
77        $(TARGET_TOOLCHAIN_STAGING_DIR)/usr/lib/libtiff* \
78        $(TARGET_TOOLCHAIN_STAGING_DIR)/usr/lib/pkgconfig/libtiff*.pc \
79        $(TARGET_TOOLCHAIN_STAGING_DIR)/usr/include/tiff*
80
81$(pkg)-uninstall:
82    $(RM) \
83        $(TIFF_BINARIES_ALL:%=$(TIFF_DEST_DIR)/usr/bin/%) \
84        $(TIFF_TARGET_DIR)/libtiff*.so*
85
86$(call PKG_ADD_LIB,libtiff)
87$(PKG_FINISH)
Hinweis: Hilfe zum Repository-Browser finden Sie in TracBrowser.