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.

82 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2010-2012 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:=vips
  9. PKG_VERSION:=7.38.5
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://www.vips.ecs.soton.ac.uk/supported/7.38/
  13. PKG_MD5SUM:=768d1c0f50c5b2794bcab68383af33ee
  14. PKG_FIXUP:=autoreconf
  15. PKG_CHECK_FORMAT_SECURITY:=0
  16. include $(INCLUDE_DIR)/package.mk
  17. include $(INCLUDE_DIR)/nls.mk
  18. PKG_INSTALL=1
  19. define Package/vips
  20. $(call Package/vips/Default)
  21. SECTION:=multimedia
  22. CATEGORY:=Multimedia
  23. TITLE:=An image manipulation library
  24. URL:=http://www.vips.ecs.soton.ac.uk/
  25. MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  26. DEPENDS:=+glib2 +libexif +libjpeg +libpng +libxml2 $(INTL_DEPENDS)
  27. endef
  28. TARGET_LDFLAGS+= \
  29. -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
  30. CONFIGURE_ARGS += \
  31. --disable-cxx \
  32. --disable-threads \
  33. --without-cfitsio \
  34. --without-fftw \
  35. --without-lcms \
  36. --without-magick \
  37. --without-matio \
  38. --without-OpenEXR \
  39. --without-orc \
  40. --without-pangoft2 \
  41. --without-python \
  42. --without-tiff \
  43. --without-v4l \
  44. --without-x \
  45. --without-zip \
  46. --with-jpeg \
  47. --with-libexif \
  48. --with-png \
  49. define Build/InstallDev
  50. $(INSTALL_DIR) $(1)/usr/include/vips
  51. $(CP) \
  52. $(PKG_INSTALL_DIR)/usr/include/* \
  53. $(1)/usr/include/
  54. $(INSTALL_DIR) $(1)/usr/lib/
  55. $(CP) \
  56. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  57. $(1)/usr/lib/
  58. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
  59. $(INSTALL_DATA) \
  60. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
  61. $(1)/usr/lib/pkgconfig/
  62. endef
  63. define Package/vips/install
  64. $(INSTALL_DIR) $(1)/usr/lib/
  65. $(CP) \
  66. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  67. $(1)/usr/lib/
  68. endef
  69. $(eval $(call BuildPackage,vips))