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.

104 lines
2.2 KiB

  1. #
  2. # Copyright (C) 2006-2014 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.3
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://download.osgeo.org/libtiff
  13. PKG_MD5SUM:=051c1068e6a0627f461948c365290410
  14. PKG_FIXUP:=autoreconf
  15. PKG_REMOVE_FILES:=autogen.sh aclocal.m4
  16. PKG_INSTALL:=1
  17. PKG_CONFIG_DEPENDS:=CONFIG_PACKAGE_libtiffxx
  18. include $(INCLUDE_DIR)/uclibc++.mk
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/tiff/Default
  21. TITLE:=TIFF
  22. URL:=http://www.remotesensing.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. endef
  31. define Package/libtiffxx
  32. $(call Package/tiff/Default)
  33. SECTION:=libs
  34. CATEGORY:=Libraries
  35. TITLE+= library(c++ bindings)
  36. DEPENDS:=+libtiff $(CXX_DEPENDS)
  37. endef
  38. define Package/tiff-utils
  39. $(call Package/tiff/Default)
  40. SECTION:=utils
  41. CATEGORY:=Utilities
  42. TITLE+= utilities
  43. DEPENDS:=+libtiff
  44. endef
  45. TARGET_CFLAGS += $(FPIC)
  46. define Build/Configure
  47. $(call Build/Configure/Default, \
  48. $(if $(CONFIG_PACKAGE_libtiffxx), \
  49. --enable-cxx, \
  50. --disable-cxx \
  51. ) \
  52. --disable-lzma \
  53. --enable-ccitt \
  54. --enable-packbits \
  55. --enable-lzw \
  56. --enable-thunder \
  57. --enable-next \
  58. --enable-logluv \
  59. --enable-mdi \
  60. --enable-zlib \
  61. --enable-jpeg \
  62. --disable-old-jpeg \
  63. --disable-jbig \
  64. --without-x \
  65. )
  66. endef
  67. define Build/InstallDev
  68. $(INSTALL_DIR) $(1)/usr/{lib,include}
  69. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(1)/usr/lib/
  70. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  71. endef
  72. define Package/libtiff/install
  73. $(INSTALL_DIR) $(1)/usr/lib
  74. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtiff.so.* $(1)/usr/lib/
  75. endef
  76. define Package/libtiffxx/install
  77. $(INSTALL_DIR) $(1)/usr/lib
  78. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtiffxx.so.* $(1)/usr/lib/
  79. endef
  80. define Package/tiff-utils/install
  81. $(INSTALL_DIR) $(1)/usr/bin
  82. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  83. endef
  84. $(eval $(call BuildPackage,libtiff))
  85. $(eval $(call BuildPackage,libtiffxx))
  86. $(eval $(call BuildPackage,tiff-utils))