2 # Copyright (C) 2006-2016 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
:=d1d2e940dea0b5ad435f21f03d96dd72
19 PKG_REMOVE_FILES
:=autogen.sh aclocal.m4
22 PKG_LICENSE_FILES
:=COPYRIGHT
26 PKG_CONFIG_DEPENDS
:=CONFIG_PACKAGE_libtiffxx
28 include $(INCLUDE_DIR
)/uclibc
++.mk
29 include $(INCLUDE_DIR
)/package.mk
31 define Package
/tiff
/Default
33 URL
:=http
://www.remotesensing.org
/libtiff
/
34 MAINTAINER
:=Jiri Slachta
<jiri@slachta.eu
>
37 define Package
/libtiff
38 $(call Package
/tiff
/Default
)
42 DEPENDS
:=+zlib
+libjpeg
45 define Package
/libtiffxx
46 $(call Package
/tiff
/Default
)
49 TITLE
+= library
(c
++ bindings
)
50 DEPENDS
:=+libtiff
$(CXX_DEPENDS
)
53 define Package
/tiff-utils
54 $(call Package
/tiff
/Default
)
57 SUBMENU
:=Image Manipulation
62 TARGET_CFLAGS
+= $(FPIC
)
64 define Build
/Configure
65 $(call Build
/Configure
/Default
, \
66 $(if
$(CONFIG_PACKAGE_libtiffxx
), \
86 define Build
/InstallDev
87 $(INSTALL_DIR
) $(1)/usr
/{lib
,include}
88 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
* $(1)/usr
/lib
/
89 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/* $(1)/usr
/include/
92 define Package
/libtiff
/install
93 $(INSTALL_DIR
) $(1)/usr
/lib
94 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libtiff.so.
* $(1)/usr
/lib
/
97 define Package
/libtiffxx
/install
98 $(INSTALL_DIR
) $(1)/usr
/lib
99 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libtiffxx.so.
* $(1)/usr
/lib
/
102 define Package
/tiff-utils
/install
103 $(INSTALL_DIR
) $(1)/usr
/bin
104 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
/
107 $(eval
$(call BuildPackage
,libtiff
))
108 $(eval
$(call BuildPackage
,libtiffxx
))
109 $(eval
$(call BuildPackage
,tiff-utils
))