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.

105 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. MAINTAINER:=Oliver Ertl <oliver-ertl@t-online.de>
  24. endef
  25. define Package/libtiff
  26. $(call Package/tiff/Default)
  27. SECTION:=libs
  28. CATEGORY:=Libraries
  29. TITLE+= library
  30. DEPENDS:=+zlib +libjpeg
  31. endef
  32. define Package/libtiffxx
  33. $(call Package/tiff/Default)
  34. SECTION:=libs
  35. CATEGORY:=Libraries
  36. TITLE+= library(c++ bindings)
  37. DEPENDS:=+libtiff $(CXX_DEPENDS)
  38. endef
  39. define Package/tiff-utils
  40. $(call Package/tiff/Default)
  41. SECTION:=utils
  42. CATEGORY:=Utilities
  43. TITLE+= utilities
  44. DEPENDS:=+libtiff
  45. endef
  46. TARGET_CFLAGS += $(FPIC)
  47. define Build/Configure
  48. $(call Build/Configure/Default, \
  49. $(if $(CONFIG_PACKAGE_libtiffxx), \
  50. --enable-cxx, \
  51. --disable-cxx \
  52. ) \
  53. --disable-lzma \
  54. --enable-ccitt \
  55. --enable-packbits \
  56. --enable-lzw \
  57. --enable-thunder \
  58. --enable-next \
  59. --enable-logluv \
  60. --enable-mdi \
  61. --enable-zlib \
  62. --enable-jpeg \
  63. --disable-old-jpeg \
  64. --disable-jbig \
  65. --without-x \
  66. )
  67. endef
  68. define Build/InstallDev
  69. $(INSTALL_DIR) $(1)/usr/{lib,include}
  70. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(1)/usr/lib/
  71. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  72. endef
  73. define Package/libtiff/install
  74. $(INSTALL_DIR) $(1)/usr/lib
  75. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtiff.so.* $(1)/usr/lib/
  76. endef
  77. define Package/libtiffxx/install
  78. $(INSTALL_DIR) $(1)/usr/lib
  79. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtiffxx.so.* $(1)/usr/lib/
  80. endef
  81. define Package/tiff-utils/install
  82. $(INSTALL_DIR) $(1)/usr/bin
  83. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  84. endef
  85. $(eval $(call BuildPackage,libtiff))
  86. $(eval $(call BuildPackage,libtiffxx))
  87. $(eval $(call BuildPackage,tiff-utils))