2 # Copyright (C) 2006-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://download.osgeo.org/libtiff
17 PKG_MD5SUM:=051c1068e6a0627f461948c365290410
19 PKG_FIXUP:=libtool-ucxx
20 PKG_REMOVE_FILES:=autogen.sh aclocal.m4
24 PKG_CONFIG_DEPENDS:=CONFIG_PACKAGE_libtiffxx
26 include $(INCLUDE_DIR)/uclibc++.mk
27 include $(INCLUDE_DIR)/package.mk
29 define Package/tiff/Default
31 URL:=http://www.remotesensing.org/libtiff/
34 define Package/libtiff
35 $(call Package/tiff/Default)
39 DEPENDS:=+zlib +libjpeg
42 define Package/libtiffxx
43 $(call Package/tiff/Default)
46 TITLE+= library(c++ bindings)
47 DEPENDS:=+libtiff $(CXX_DEPENDS)
50 define Package/tiff-utils
51 $(call Package/tiff/Default)
58 TARGET_CFLAGS += $(FPIC)
60 define Build/Configure
61 $(call Build/Configure/Default, \
62 $(if $(CONFIG_PACKAGE_libtiffxx), \
78 --with-apple-opengl-framework \
82 define Build/InstallDev
83 $(INSTALL_DIR) $(1)/usr/{lib,include}
84 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(1)/usr/lib/
85 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
88 define Package/libtiff/install
89 $(INSTALL_DIR) $(1)/usr/lib
90 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtiff.so.* $(1)/usr/lib/
93 define Package/libtiffxx/install
94 $(INSTALL_DIR) $(1)/usr/lib
95 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtiffxx.so.* $(1)/usr/lib/
98 define Package/tiff-utils/install
99 $(INSTALL_DIR) $(1)/usr/bin
100 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
103 $(eval $(call BuildPackage,libtiff))
104 $(eval $(call BuildPackage,libtiffxx))
105 $(eval $(call BuildPackage,tiff-utils))