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.

106 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:=3
  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)/uclibc++.mk
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/tiff/Default
  23. TITLE:=TIFF
  24. URL:=http://www.remotesensing.org/libtiff/
  25. MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
  26. endef
  27. define Package/libtiff
  28. $(call Package/tiff/Default)
  29. SECTION:=libs
  30. CATEGORY:=Libraries
  31. TITLE+= library
  32. DEPENDS:=+zlib +libjpeg
  33. endef
  34. define Package/libtiffxx
  35. $(call Package/tiff/Default)
  36. SECTION:=libs
  37. CATEGORY:=Libraries
  38. TITLE+= library(c++ bindings)
  39. DEPENDS:=+libtiff $(CXX_DEPENDS)
  40. endef
  41. define Package/tiff-utils
  42. $(call Package/tiff/Default)
  43. SECTION:=utils
  44. CATEGORY:=Utilities
  45. SUBMENU:=Image Manipulation
  46. TITLE+= utilities
  47. DEPENDS:=+libtiff
  48. endef
  49. CONFIGURE_ARGS += \
  50. $(if $(CONFIG_PACKAGE_libtiffxx),--enable-cxx,--disable-cxx) \
  51. --disable-lzma \
  52. --enable-ccitt \
  53. --enable-packbits \
  54. --enable-lzw \
  55. --enable-thunder \
  56. --enable-next \
  57. --enable-logluv \
  58. --enable-mdi \
  59. --enable-zlib \
  60. --enable-jpeg \
  61. --disable-old-jpeg \
  62. --disable-jbig \
  63. --without-x
  64. define Build/InstallDev/hxx
  65. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/*.hxx $(1)/usr/include/
  66. endef
  67. define Build/InstallDev
  68. $(INSTALL_DIR) $(1)/usr/{lib,include}
  69. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(1)/usr/lib/
  70. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
  71. $(if $(CONFIG_PACKAGE_libtiffxx), $(call Build/InstallDev/hxx,$(1)))
  72. endef
  73. define Package/libtiff/install
  74. $(INSTALL_DIR) $(1)/usr/lib
  75. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtiff.so* $(1)/usr/lib/
  76. endef
  77. define Package/libtiffxx/install
  78. $(INSTALL_DIR) $(1)/usr/lib
  79. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtiffxx.so* $(1)/usr/lib/
  80. endef
  81. define Package/tiff-utils/install
  82. $(INSTALL_DIR) $(1)/usr/bin
  83. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  84. endef
  85. $(eval $(call BuildPackage,libtiff))
  86. $(eval $(call BuildPackage,libtiffxx))
  87. $(eval $(call BuildPackage,tiff-utils))