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
/
31 MAINTAINER
:=Jiri Slachta
<slachta@cesnet.cz
>
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
), \
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
))