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.

88 lines
1.9 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.3.0
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://download.osgeo.org/libtiff
  13. PKG_HASH:=0e46e5acb087ce7d1ac53cf4f56a09b221537fc86dfc5daaad1c2e89e1b37ac8
  14. PKG_MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
  15. PKG_LICENSE:=BSD-3-Clause
  16. PKG_LICENSE_FILES:=COPYRIGHT
  17. PKG_CPE_ID:=cpe:/a:libtiff:libtiff
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/cmake.mk
  20. define Package/tiff/Default
  21. TITLE:=TIFF
  22. URL:=http://simplesystems.org/libtiff/
  23. endef
  24. define Package/libtiff
  25. $(call Package/tiff/Default)
  26. SECTION:=libs
  27. CATEGORY:=Libraries
  28. TITLE+= library
  29. DEPENDS:=+zlib +libjpeg
  30. ABI_VERSION:=5
  31. endef
  32. define Package/tiff-utils
  33. $(call Package/tiff/Default)
  34. SECTION:=utils
  35. CATEGORY:=Utilities
  36. SUBMENU:=Image Manipulation
  37. TITLE+= utilities
  38. DEPENDS:=+libtiff
  39. endef
  40. CMAKE_OPTIONS += \
  41. -Dld-version-script=OFF \
  42. -Dccitt=ON \
  43. -Dpackbits=ON \
  44. -Dlzw=ON \
  45. -Dthunder=ON \
  46. -Dnext=ON \
  47. -Dlogluv=ON \
  48. -Dmdi=ON \
  49. -Dzlib=ON \
  50. -Dpixarlog=ON \
  51. -Djpeg=ON \
  52. -Dold-jpeg=OFF \
  53. -Djbig=OFF \
  54. -Dlzma=OFF \
  55. -Dzstd=OFF \
  56. -Dwebp=OFF \
  57. -Djpeg12=OFF \
  58. -Dcxx=OFF
  59. TARGET_CFLAGS += $(TARGET_CPPFLAGS)
  60. define Build/InstallDev
  61. $(call Build/InstallDev/cmake,$(1))
  62. $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/libtiff-4.pc
  63. $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/libtiff-4.pc
  64. endef
  65. define Package/libtiff/install
  66. $(INSTALL_DIR) $(1)/usr/lib
  67. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtiff.so.$(ABI_VERSION)* $(1)/usr/lib
  68. endef
  69. define Package/tiff-utils/install
  70. $(INSTALL_DIR) $(1)/usr/bin
  71. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  72. endef
  73. $(eval $(call BuildPackage,libtiff))
  74. $(eval $(call BuildPackage,tiff-utils))