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
:=5d29f32517dadb6dbcd1255ea5bbc93a2b54b94fbf83653b4d65c7d6775b8634
18 PKG_MAINTAINER
:=Jiri Slachta
<jiri@slachta.eu
>
19 PKG_LICENSE
:=BSD-3-Clause
20 PKG_LICENSE_FILES
:=COPYRIGHT
21 PKG_CPE_ID
:=cpe
:/a
:libtiff
:libtiff
24 PKG_CONFIG_DEPENDS
:=CONFIG_PACKAGE_libtiffxx
26 include $(INCLUDE_DIR
)/uclibc
++.mk
27 include $(INCLUDE_DIR
)/package.mk
28 include $(INCLUDE_DIR
)/cmake.mk
30 define Package
/tiff
/Default
32 URL
:=http
://simplesystems.org
/libtiff
/
35 define Package
/libtiff
36 $(call Package
/tiff
/Default
)
40 DEPENDS
:=+zlib
+libjpeg
44 define Package
/libtiffxx
45 $(call Package
/tiff
/Default
)
48 TITLE
+= library
(c
++ bindings
)
49 DEPENDS
:=+libtiff
$(CXX_DEPENDS
)
53 define Package
/tiff-utils
54 $(call Package
/tiff
/Default
)
57 SUBMENU
:=Image Manipulation
63 -Dld-version-script
=OFF \
80 -Dcxx
=O
$(if
$(CONFIG_PACKAGE_libtiffxx
),N
,FF
)
82 TARGET_CFLAGS
+= $(TARGET_CPPFLAGS
)
84 define Build
/InstallDev
85 $(call Build
/InstallDev
/cmake
,$(1))
86 $(SED
) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr
/lib
/pkgconfig
/libtiff-4.
pc
87 $(SED
) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr
/lib
/pkgconfig
/libtiff-4.
pc
90 define Package
/libtiff
/install
91 $(INSTALL_DIR
) $(1)/usr
/lib
92 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libtiff.so.
$(ABI_VERSION
)* $(1)/usr
/lib
95 define Package
/libtiffxx
/install
96 $(INSTALL_DIR
) $(1)/usr
/lib
97 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libtiffxx.so.
$(ABI_VERSION
)* $(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
))