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.

109 lines
2.3 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:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://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. TARGET_CFLAGS += $(FPIC)
  50. define Build/Configure
  51. $(call Build/Configure/Default, \
  52. $(if $(CONFIG_PACKAGE_libtiffxx), \
  53. --enable-cxx, \
  54. --disable-cxx \
  55. ) \
  56. --disable-lzma \
  57. --enable-ccitt \
  58. --enable-packbits \
  59. --enable-lzw \
  60. --enable-thunder \
  61. --enable-next \
  62. --enable-logluv \
  63. --enable-mdi \
  64. --enable-zlib \
  65. --enable-jpeg \
  66. --disable-old-jpeg \
  67. --disable-jbig \
  68. --without-x \
  69. )
  70. endef
  71. define Build/InstallDev
  72. $(INSTALL_DIR) $(1)/usr/{lib,include}
  73. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(1)/usr/lib/
  74. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  75. endef
  76. define Package/libtiff/install
  77. $(INSTALL_DIR) $(1)/usr/lib
  78. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtiff.so.* $(1)/usr/lib/
  79. endef
  80. define Package/libtiffxx/install
  81. $(INSTALL_DIR) $(1)/usr/lib
  82. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtiffxx.so.* $(1)/usr/lib/
  83. endef
  84. define Package/tiff-utils/install
  85. $(INSTALL_DIR) $(1)/usr/bin
  86. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  87. endef
  88. $(eval $(call BuildPackage,libtiff))
  89. $(eval $(call BuildPackage,libtiffxx))
  90. $(eval $(call BuildPackage,tiff-utils))