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.

111 lines
2.6 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.1.0
  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:=5d29f32517dadb6dbcd1255ea5bbc93a2b54b94fbf83653b4d65c7d6775b8634
  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://simplesystems.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. --disable-webp \
  66. --disable-zstd \
  67. --without-x
  68. define Build/InstallDev/hxx
  69. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/*.hxx $(1)/usr/include/
  70. endef
  71. define Build/InstallDev
  72. $(INSTALL_DIR) $(1)/usr/{lib,include} $(1)/usr/lib/pkgconfig
  73. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(1)/usr/lib/
  74. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc $(1)/usr/lib/pkgconfig/
  75. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
  76. $(if $(CONFIG_PACKAGE_libtiffxx), $(call Build/InstallDev/hxx,$(1)))
  77. endef
  78. define Package/libtiff/install
  79. $(INSTALL_DIR) $(1)/usr/lib
  80. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtiff.so* $(1)/usr/lib/
  81. endef
  82. define Package/libtiffxx/install
  83. $(INSTALL_DIR) $(1)/usr/lib
  84. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtiffxx.so* $(1)/usr/lib/
  85. endef
  86. define Package/tiff-utils/install
  87. $(INSTALL_DIR) $(1)/usr/bin
  88. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  89. endef
  90. $(eval $(call BuildPackage,libtiff))
  91. $(eval $(call BuildPackage,libtiffxx))
  92. $(eval $(call BuildPackage,tiff-utils))