2 # Copyright (C) 2006-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://download.osgeo.org/libtiff
16 PKG_MD5SUM:=051c1068e6a0627f461948c365290410
19 PKG_REMOVE_FILES:=autogen.sh aclocal.m4
23 PKG_CONFIG_DEPENDS:=CONFIG_PACKAGE_libtiffxx
25 include $(INCLUDE_DIR)/uclibc++.mk
26 include $(INCLUDE_DIR)/package.mk
28 define Package/tiff/Default
30 URL:=http://www.remotesensing.org/libtiff/
33 define Package/libtiff
34 $(call Package/tiff/Default)
38 DEPENDS:=+zlib +libjpeg
41 define Package/libtiffxx
42 $(call Package/tiff/Default)
45 TITLE+= library(c++ bindings)
46 DEPENDS:=+libtiff $(CXX_DEPENDS)
49 define Package/tiff-utils
50 $(call Package/tiff/Default)
57 TARGET_CFLAGS += $(FPIC)
59 define Build/Configure
60 $(call Build/Configure/Default, \
61 $(if $(CONFIG_PACKAGE_libtiffxx), \
81 define Build/InstallDev
82 $(INSTALL_DIR) $(1)/usr/{lib,include}
83 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(1)/usr/lib/
84 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
87 define Package/libtiff/install
88 $(INSTALL_DIR) $(1)/usr/lib
89 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtiff.so.* $(1)/usr/lib/
92 define Package/libtiffxx/install
93 $(INSTALL_DIR) $(1)/usr/lib
94 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtiffxx.so.* $(1)/usr/lib/
97 define Package/tiff-utils/install
98 $(INSTALL_DIR) $(1)/usr/bin
99 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
102 $(eval $(call BuildPackage,libtiff))
103 $(eval $(call BuildPackage,libtiffxx))
104 $(eval $(call BuildPackage,tiff-utils))