2 # Copyright (C) 2006-2009 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
:=93e56e421679c591de7552db13384cb8
19 PKG_FIXUP
:=libtool-uclibcxx
22 PKG_CONFIG_DEPENDS
:=CONFIG_PACKAGE_libtiffxx
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/tiff
/Default
28 URL
:=http
://www.remotesensing.org
/libtiff
/
31 define Package
/libtiff
32 $(call Package
/tiff
/Default
)
36 DEPENDS
:=+zlib
+libjpeg
39 define Package
/libtiffxx
40 $(call Package
/tiff
/Default
)
43 TITLE
+= library
(c
++ bindings
)
44 DEPENDS
:=+libtiff
+uclibcxx
47 define Package
/tiff-utils
48 $(call Package
/tiff
/Default
)
55 TARGET_CFLAGS
+= $(FPIC
)
60 define Build
/Configure
61 $(call Build
/Configure
/Default
, \
62 $(if
$(CONFIG_PACKAGE_libtiffxx
), \
78 --with-apple-opengl-framework \
84 define Build
/InstallDev
85 $(INSTALL_DIR
) $(1)/usr
/{lib
,include}
86 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
* $(1)/usr
/lib
/
87 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/* $(1)/usr
/include/
90 define Package
/libtiff
/install
91 $(INSTALL_DIR
) $(1)/usr
/lib
92 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libtiff.so.
* $(1)/usr
/lib
/
95 define Package
/libtiffxx
/install
96 $(INSTALL_DIR
) $(1)/usr
/lib
97 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libtiffxx.so.
* $(1)/usr
/lib
/
100 define Package
/tiff-utils
/install
101 $(INSTALL_DIR
) $(1)/usr
/bin
102 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
/
105 $(eval
$(call BuildPackage
,libtiff
))
106 $(eval
$(call BuildPackage
,libtiffxx
))
107 $(eval
$(call BuildPackage
,tiff-utils
))