2 # Copyright (C) 2006 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://libtiff.maptools.org/dl/
19 include $(INCLUDE_DIR)/package.mk
21 define Package/libtiff
25 DEPENDS:=+zlib +libjpeg
28 TARGET_CFLAGS += $(FPIC)
30 CONFIGURE_ARGS += --without-x
31 MAKE_FLAGS += all install DESTDIR=$(PKG_INSTALL_DIR)
33 define Build/InstallDev
34 $(INSTALL_DIR) $(1)/usr/{lib,include}
35 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(1)/usr/lib
36 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
39 define Package/tiff/Install
40 $(INSTALL_DIR) $(1)/usr/lib
41 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*so* $(1)/usr/lib/
44 $(eval $(call BuildPackage,libtiff))