source: packages/libs/tiff/Makefile @ 31367

Last change on this file since 31367 was 31367, checked in by florian, 5 years ago

[package] tiff: update to 4.0.1 and include CVE-2012-1173 patch

File size: 2.2 KB
Line 
1#
2# Copyright (C) 2006-2012 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7# blogic@openwrt.org
8
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=tiff
12PKG_VERSION:=4.0.1
13PKG_RELEASE:=1
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16PKG_SOURCE_URL:=http://download.osgeo.org/libtiff
17PKG_MD5SUM:=fae149cc9da35c598d8be897826dfc63
18
19PKG_FIXUP:=libtool-ucxx
20PKG_REMOVE_FILES:=autogen.sh aclocal.m4
21
22PKG_INSTALL:=1
23
24PKG_CONFIG_DEPENDS:=CONFIG_PACKAGE_libtiffxx
25
26include $(INCLUDE_DIR)/package.mk
27
28define Package/tiff/Default
29  TITLE:=TIFF
30  URL:=http://www.remotesensing.org/libtiff/
31endef
32
33define Package/libtiff
34$(call Package/tiff/Default)
35  SECTION:=libs
36  CATEGORY:=Libraries
37  TITLE+= library
38  DEPENDS:=+zlib +libjpeg
39endef
40
41define Package/libtiffxx
42$(call Package/tiff/Default)
43  SECTION:=libs
44  CATEGORY:=Libraries
45  TITLE+= library(c++ bindings)
46  DEPENDS:=+libtiff +uclibcxx
47endef
48
49define Package/tiff-utils
50$(call Package/tiff/Default)
51  SECTION:=utils
52  CATEGORY:=Utilities
53  TITLE+= utilities
54  DEPENDS:=+libtiff
55endef
56
57TARGET_CFLAGS += $(FPIC)
58
59MAKE_FLAGS += \
60    CXX="g++-uc"
61
62define Build/Configure
63        $(call Build/Configure/Default, \
64                $(if $(CONFIG_PACKAGE_libtiffxx), \
65                        --enable-cxx, \
66                        --disable-cxx \
67                ) \
68                --enable-ccitt \
69                --enable-packbits \
70                --enable-lzw \
71                --enable-thunder \
72                --enable-next \
73                --enable-logluv \
74                --enable-mdi \
75                --enable-zlib \
76                --enable-jpeg \
77                --disable-old-jpeg \
78                --disable-jbig \
79                --without-x \
80                --with-apple-opengl-framework \
81                , \
82                CXX="g++-uc" \
83        )
84endef
85
86define Build/InstallDev
87        $(INSTALL_DIR) $(1)/usr/{lib,include}
88        $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(1)/usr/lib/
89        $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
90endef
91
92define Package/libtiff/install
93        $(INSTALL_DIR) $(1)/usr/lib
94        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtiff.so.* $(1)/usr/lib/
95endef
96
97define Package/libtiffxx/install
98        $(INSTALL_DIR) $(1)/usr/lib
99        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtiffxx.so.* $(1)/usr/lib/
100endef
101
102define Package/tiff-utils/install
103        $(INSTALL_DIR) $(1)/usr/bin
104        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
105endef
106
107$(eval $(call BuildPackage,libtiff))
108$(eval $(call BuildPackage,libtiffxx))
109$(eval $(call BuildPackage,tiff-utils))
Note: See TracBrowser for help on using the repository browser.