2 # Copyright (C) 2006-2018 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
:=https
://download.osgeo.org
/libtiff
16 PKG_HASH
:=2c52d11ccaf767457db0c46795d9c7d1a8d8f76f68b0b800a3dfe45786b996e4
19 PKG_REMOVE_FILES
:=autogen.sh aclocal.m4
22 PKG_LICENSE_FILES
:=COPYRIGHT
23 PKG_CPE_ID
:=cpe
:/a
:libtiff
:libtiff
28 PKG_CONFIG_DEPENDS
:=CONFIG_PACKAGE_libtiffxx
30 include $(INCLUDE_DIR
)/uclibc
++.mk
31 include $(INCLUDE_DIR
)/package.mk
33 define Package
/tiff
/Default
35 URL
:=http
://simplesystems.org
/libtiff
/
36 MAINTAINER
:=Jiri Slachta
<jiri@slachta.eu
>
39 define Package
/libtiff
40 $(call Package
/tiff
/Default
)
44 DEPENDS
:=+zlib
+libjpeg
47 define Package
/libtiffxx
48 $(call Package
/tiff
/Default
)
51 TITLE
+= library
(c
++ bindings
)
52 DEPENDS
:=+libtiff
$(CXX_DEPENDS
)
55 define Package
/tiff-utils
56 $(call Package
/tiff
/Default
)
59 SUBMENU
:=Image Manipulation
65 $(if
$(CONFIG_PACKAGE_libtiffxx
),--enable-cxx
,--disable-cxx
) \
82 define Build
/InstallDev
/hxx
83 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/include/*.hxx
$(1)/usr
/include/
86 define Build
/InstallDev
87 $(INSTALL_DIR
) $(1)/usr
/{lib
,include}
88 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
* $(1)/usr
/lib
/
89 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/include/*.h
$(1)/usr
/include/
90 $(if
$(CONFIG_PACKAGE_libtiffxx
), $(call Build
/InstallDev
/hxx
,$(1)))
93 define Package
/libtiff
/install
94 $(INSTALL_DIR
) $(1)/usr
/lib
95 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libtiff.so
* $(1)/usr
/lib
/
98 define Package
/libtiffxx
/install
99 $(INSTALL_DIR
) $(1)/usr
/lib
100 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libtiffxx.so
* $(1)/usr
/lib
/
103 define Package
/tiff-utils
/install
104 $(INSTALL_DIR
) $(1)/usr
/bin
105 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
/
108 $(eval
$(call BuildPackage
,libtiff
))
109 $(eval
$(call BuildPackage
,libtiffxx
))
110 $(eval
$(call BuildPackage
,tiff-utils
))