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.3 KiB

  1. #
  2. # Copyright (C) 2006-2016 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.6
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://download.osgeo.org/libtiff
  13. PKG_MD5SUM:=d1d2e940dea0b5ad435f21f03d96dd72
  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. TITLE+= utilities
  46. DEPENDS:=+libtiff
  47. endef
  48. TARGET_CFLAGS += $(FPIC)
  49. define Build/Configure
  50. $(call Build/Configure/Default, \
  51. $(if $(CONFIG_PACKAGE_libtiffxx), \
  52. --enable-cxx, \
  53. --disable-cxx \
  54. ) \
  55. --disable-lzma \
  56. --enable-ccitt \
  57. --enable-packbits \
  58. --enable-lzw \
  59. --enable-thunder \
  60. --enable-next \
  61. --enable-logluv \
  62. --enable-mdi \
  63. --enable-zlib \
  64. --enable-jpeg \
  65. --disable-old-jpeg \
  66. --disable-jbig \
  67. --without-x \
  68. )
  69. endef
  70. define Build/InstallDev
  71. $(INSTALL_DIR) $(1)/usr/{lib,include}
  72. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(1)/usr/lib/
  73. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  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))