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.

108 lines
2.5 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.10
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://download.osgeo.org/libtiff
  13. PKG_HASH:=2c52d11ccaf767457db0c46795d9c7d1a8d8f76f68b0b800a3dfe45786b996e4
  14. PKG_FIXUP:=autoreconf
  15. PKG_REMOVE_FILES:=autogen.sh aclocal.m4
  16. PKG_LICENSE:=BSD
  17. PKG_LICENSE_FILES:=COPYRIGHT
  18. PKG_CPE_ID:=cpe:/a:libtiff:libtiff
  19. PKG_BUILD_PARALLEL:=1
  20. PKG_INSTALL:=1
  21. PKG_CONFIG_DEPENDS:=CONFIG_PACKAGE_libtiffxx
  22. include $(INCLUDE_DIR)/uclibc++.mk
  23. include $(INCLUDE_DIR)/package.mk
  24. define Package/tiff/Default
  25. TITLE:=TIFF
  26. URL:=http://www.remotesensing.org/libtiff/
  27. MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
  28. endef
  29. define Package/libtiff
  30. $(call Package/tiff/Default)
  31. SECTION:=libs
  32. CATEGORY:=Libraries
  33. TITLE+= library
  34. DEPENDS:=+zlib +libjpeg
  35. endef
  36. define Package/libtiffxx
  37. $(call Package/tiff/Default)
  38. SECTION:=libs
  39. CATEGORY:=Libraries
  40. TITLE+= library(c++ bindings)
  41. DEPENDS:=+libtiff $(CXX_DEPENDS)
  42. endef
  43. define Package/tiff-utils
  44. $(call Package/tiff/Default)
  45. SECTION:=utils
  46. CATEGORY:=Utilities
  47. SUBMENU:=Image Manipulation
  48. TITLE+= utilities
  49. DEPENDS:=+libtiff
  50. endef
  51. CONFIGURE_ARGS += \
  52. $(if $(CONFIG_PACKAGE_libtiffxx),--enable-cxx,--disable-cxx) \
  53. --disable-lzma \
  54. --enable-ccitt \
  55. --enable-packbits \
  56. --enable-lzw \
  57. --enable-thunder \
  58. --enable-next \
  59. --enable-logluv \
  60. --enable-mdi \
  61. --enable-zlib \
  62. --enable-jpeg \
  63. --disable-old-jpeg \
  64. --disable-jbig \
  65. --without-x
  66. define Build/InstallDev/hxx
  67. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/*.hxx $(1)/usr/include/
  68. endef
  69. define Build/InstallDev
  70. $(INSTALL_DIR) $(1)/usr/{lib,include}
  71. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(1)/usr/lib/
  72. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
  73. $(if $(CONFIG_PACKAGE_libtiffxx), $(call Build/InstallDev/hxx,$(1)))
  74. endef
  75. define Package/libtiff/install
  76. $(INSTALL_DIR) $(1)/usr/lib
  77. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtiff.so* $(1)/usr/lib/
  78. endef
  79. define Package/libtiffxx/install
  80. $(INSTALL_DIR) $(1)/usr/lib
  81. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtiffxx.so* $(1)/usr/lib/
  82. endef
  83. define Package/tiff-utils/install
  84. $(INSTALL_DIR) $(1)/usr/bin
  85. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  86. endef
  87. $(eval $(call BuildPackage,libtiff))
  88. $(eval $(call BuildPackage,libtiffxx))
  89. $(eval $(call BuildPackage,tiff-utils))