You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

105 lines
2.4 KiB

  1. #
  2. # Copyright (C) 2006-2018 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=tiff
  9. PKG_VERSION:=4.0.9
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://download.osgeo.org/libtiff
  13. PKG_HASH:=6e7bdeec2c310734e734d19aae3a71ebe37a4d842e0e23dbb1b8921c0026cfcd
  14. PKG_FIXUP:=autoreconf
  15. PKG_REMOVE_FILES:=autogen.sh aclocal.m4
  16. PKG_LICENSE:=BSD
  17. PKG_LICENSE_FILES:=COPYRIGHT
  18. PKG_INSTALL:=1
  19. PKG_CONFIG_DEPENDS:=CONFIG_PACKAGE_libtiffxx
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/tiff/Default
  22. TITLE:=TIFF
  23. URL:=http://www.remotesensing.org/libtiff/
  24. MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
  25. endef
  26. define Package/libtiff
  27. $(call Package/tiff/Default)
  28. SECTION:=libs
  29. CATEGORY:=Libraries
  30. TITLE+= library
  31. DEPENDS:=+zlib +libjpeg
  32. endef
  33. define Package/libtiffxx
  34. $(call Package/tiff/Default)
  35. SECTION:=libs
  36. CATEGORY:=Libraries
  37. TITLE+= library(c++ bindings)
  38. DEPENDS:=+libtiff +PACKAGE_libtiffxx:libstdcpp
  39. endef
  40. define Package/tiff-utils
  41. $(call Package/tiff/Default)
  42. SECTION:=utils
  43. CATEGORY:=Utilities
  44. SUBMENU:=Image Manipulation
  45. TITLE+= utilities
  46. DEPENDS:=+libtiff
  47. endef
  48. CONFIGURE_ARGS += \
  49. $(if $(CONFIG_PACKAGE_libtiffxx),--enable-cxx,--disable-cxx) \
  50. --disable-lzma \
  51. --enable-ccitt \
  52. --enable-packbits \
  53. --enable-lzw \
  54. --enable-thunder \
  55. --enable-next \
  56. --enable-logluv \
  57. --enable-mdi \
  58. --enable-zlib \
  59. --enable-jpeg \
  60. --disable-old-jpeg \
  61. --disable-jbig \
  62. --without-x
  63. define Build/InstallDev/hxx
  64. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/*.hxx $(1)/usr/include/
  65. endef
  66. define Build/InstallDev
  67. $(INSTALL_DIR) $(1)/usr/{lib,include}
  68. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(1)/usr/lib/
  69. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
  70. $(if $(CONFIG_PACKAGE_libtiffxx), $(call Build/InstallDev/hxx,$(1)))
  71. endef
  72. define Package/libtiff/install
  73. $(INSTALL_DIR) $(1)/usr/lib
  74. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtiff.so* $(1)/usr/lib/
  75. endef
  76. define Package/libtiffxx/install
  77. $(INSTALL_DIR) $(1)/usr/lib
  78. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtiffxx.so* $(1)/usr/lib/
  79. endef
  80. define Package/tiff-utils/install
  81. $(INSTALL_DIR) $(1)/usr/bin
  82. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  83. endef
  84. $(eval $(call BuildPackage,libtiff))
  85. $(eval $(call BuildPackage,libtiffxx))
  86. $(eval $(call BuildPackage,tiff-utils))