Makefile 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= ImageMagick
  5. PKG_VERSION:= 6.7.6
  6. PKG_EXTRAVER:= 1
  7. PKG_RELEASE:= 3
  8. PKG_HASH:= a83847198c7354a8fcf68f1e9b3ac7ddc7ccd21aa525761e93ed522af31d69fa
  9. PKG_DESCR:= image processing and converting utility
  10. PKG_SECTION:= mm/image
  11. PKG_DEPENDS:= libstdcxx
  12. PKG_BUILDDEP:= libpng libjpeg-turbo libtiff fontconfig
  13. PKG_BUILDDEP+= pango libtool e2fsprogs
  14. PKG_URL:= http://www.imagemagick.org/
  15. PKG_SITES:= http://image_magick.veidrodis.com/image_magick/
  16. PKG_LIBNAME:= libimagemagick
  17. PKG_OPTS:= dev
  18. PKG_ARCH_DEPENDS:= !m68k
  19. PKG_BUILDDEP_UCLIBC:= libiconv-tiny
  20. PKG_SUBPKGS:= CONVERT DISPLAY LIBIMAGEMAGICK
  21. PKGSD_LIBIMAGEMAGICK:= imagemagick library
  22. PKGSC_LIBIMAGEMAGICK:= libs/image
  23. PKGSS_LIBIMAGEMAGICK:= libjpeg-turbo libtiff libpng
  24. PKGSD_CONVERT:= image processing and converting utility
  25. PKGSC_CONVERT:= mm/image
  26. PKGSS_CONVERT:= libimagemagick
  27. PKGSD_DISPLAY:= image display application
  28. PKGSC_DISPLAY:= mm/image
  29. PKGSS_DISPLAY:= libimagemagick libX11 libXau libXdmcp libICE libSM fontconfig libXt zlib libpng libltdl
  30. PKGSB_DISPLAY:= libX11
  31. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}-${PKG_EXTRAVER}.tar.gz
  32. WRKDIST= ${WRKDIR}/${PKG_NAME}-${PKG_VERSION}-${PKG_EXTRAVER}
  33. include $(ADK_TOPDIR)/mk/package.mk
  34. $(eval $(call PKG_template,LIBIMAGEMAGICK,libimagemagick,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBIMAGEMAGICK},${PKGSC_LIBIMAGEMAGICK},${PKG_OPTS}))
  35. $(eval $(call PKG_template,CONVERT,convert,$(PKG_VERSION)-${PKG_RELEASE},${PKGSS_CONVERT},${PKGSD_CONVERT},${PKGSC_CONVERT}))
  36. $(eval $(call PKG_template,DISPLAY,display,$(PKG_VERSION)-${PKG_RELEASE},${PKGSS_DISPLAY},${PKGSD_DISPLAY},${PKGSC_DISPLAY}))
  37. CONFIGURE_ENV+= ac_cv_sys_file_offset_bits=yes
  38. CONFIGURE_ARGS+= --with-magick-plus-plus=no \
  39. --without-gslib \
  40. --without-dps \
  41. --without-perl \
  42. --without-djvu \
  43. --without-lcms \
  44. --without-lcms2 \
  45. --without-wmf \
  46. --without-xml \
  47. --without-lzma \
  48. --with-jpeg \
  49. --with-png \
  50. --with-tiff \
  51. --enable-fast-install
  52. libimagemagick-install:
  53. $(INSTALL_DIR) $(IDIR_LIBIMAGEMAGICK)/usr/lib
  54. $(INSTALL_DIR) $(IDIR_LIBIMAGEMAGICK)/usr/lib/${PKG_NAME}-${PKG_VERSION}/config
  55. $(INSTALL_DATA) $(WRKINST)/usr/lib/${PKG_NAME}-${PKG_VERSION}/config/* \
  56. $(IDIR_LIBIMAGEMAGICK)/usr/lib/${PKG_NAME}-${PKG_VERSION}/config
  57. $(INSTALL_DIR) $(IDIR_LIBIMAGEMAGICK)/usr/share/${PKG_NAME}-${PKG_VERSION}
  58. $(INSTALL_DATA) $(WRKINST)/usr/share/${PKG_NAME}-${PKG_VERSION}/* \
  59. $(IDIR_LIBIMAGEMAGICK)/usr/share/${PKG_NAME}-${PKG_VERSION}/
  60. $(CP) $(WRKINST)/usr/lib/libMagickCore.so* \
  61. $(IDIR_LIBIMAGEMAGICK)/usr/lib
  62. $(CP) $(WRKINST)/usr/lib/libMagickWand.so* \
  63. $(IDIR_LIBIMAGEMAGICK)/usr/lib
  64. convert-install:
  65. $(INSTALL_DIR) $(IDIR_CONVERT)/usr/bin
  66. $(INSTALL_BIN) $(WRKINST)/usr/bin/convert $(IDIR_CONVERT)/usr/bin
  67. display-install:
  68. $(INSTALL_DIR) $(IDIR_DISPLAY)/usr/bin
  69. $(INSTALL_BIN) $(WRKINST)/usr/bin/display $(IDIR_DISPLAY)/usr/bin
  70. include ${ADK_TOPDIR}/mk/pkg-bottom.mk