Makefile 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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_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://simplesystems.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. --disable-webp \
  69. --disable-zstd \
  70. --without-x \
  71. )
  72. endef
  73. define Build/InstallDev
  74. $(INSTALL_DIR) $(1)/usr/{lib,include}
  75. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(1)/usr/lib/
  76. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  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))