Makefile 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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 $(TOPDIR)/rules.mk
  4. PKG_NAME:= ImageMagick
  5. PKG_VERSION:= 6.6.5
  6. PKG_EXTRAVER:= 10
  7. PKG_RELEASE:= 1
  8. PKG_MD5SUM:= a07a97cfb28b588cbcf83ffa9ec92e3f
  9. PKG_DESCR:= image processing and converting utility
  10. PKG_SECTION:= multimedia
  11. PKG_BUILDDEP:= jpeg libtiff fontconfig libiconv
  12. PKG_URL:= http://www.imagemagick.org/
  13. PKG_SITES:= http://image_magick.veidrodis.com/image_magick/
  14. PKG_NEED_CXX:= 1
  15. PKG_SUBPKGS:= CONVERT DISPLAY LIBIMAGEMAGICK
  16. PKGSD_LIBIMAGEMAGICK:= imagemagick library
  17. PKGSC_LIBIMAGEMAGICK:= libs
  18. PKGSS_LIBIMAGEMAGICK:= libjpeg libtiff
  19. PKGSD_CONVERT:= image processing and converting utility
  20. PKGSC_CONVERT:= multimedia
  21. PKGSS_CONVERT:= libimagemagick
  22. PKGSD_DISPLAY:= image display application
  23. PKGSC_DISPLAY:= multimedia
  24. PKGSS_DISPLAY:= libimagemagick libX11 libXau libXdmcp libICE libSM fontconfig libXt zlib libpng
  25. PKGSB_DISPLAY:= libX11
  26. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}-${PKG_EXTRAVER}.tar.gz
  27. WRKDIST= ${WRKDIR}/${PKG_NAME}-${PKG_VERSION}-${PKG_EXTRAVER}
  28. include $(TOPDIR)/mk/package.mk
  29. $(eval $(call PKG_template,LIBIMAGEMAGICK,libimagemagick,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBIMAGEMAGICK},${PKGSC_LIBIMAGEMAGICK}))
  30. $(eval $(call PKG_template,CONVERT,convert,$(PKG_VERSION)-${PKG_RELEASE},${PKGSS_CONVERT},${PKGSD_CONVERT},${PKGSC_CONVERT}))
  31. $(eval $(call PKG_template,DISPLAY,display,$(PKG_VERSION)-${PKG_RELEASE},${PKGSS_DISPLAY},${PKGSD_DISPLAY},${PKGSC_DISPLAY}))
  32. CONFIGURE_ARGS+= --with-magick-plus-plus=no \
  33. --without-gslib \
  34. --without-dps \
  35. --without-perl \
  36. --without-djvu \
  37. --without-lcms \
  38. --without-lcms2 \
  39. --without-wmf \
  40. --enable-fast-install
  41. libimagemagick-install:
  42. $(INSTALL_DIR) $(IDIR_LIBIMAGEMAGICK)/usr/lib
  43. $(INSTALL_DIR) $(IDIR_LIBIMAGEMAGICK)/usr/lib/${PKG_NAME}-${PKG_VERSION}/config
  44. $(INSTALL_DATA) $(WRKINST)/usr/lib/${PKG_NAME}-${PKG_VERSION}/config/* \
  45. $(IDIR_LIBIMAGEMAGICK)/usr/lib/${PKG_NAME}-${PKG_VERSION}/config
  46. $(INSTALL_DIR) $(IDIR_LIBIMAGEMAGICK)/usr/share/${PKG_NAME}-${PKG_VERSION}/config
  47. $(INSTALL_DATA) $(WRKINST)/usr/share/${PKG_NAME}-${PKG_VERSION}/config/* \
  48. $(IDIR_LIBIMAGEMAGICK)/usr/share/${PKG_NAME}-${PKG_VERSION}/config
  49. $(CP) $(WRKINST)/usr/lib/libMagickCore.so* \
  50. $(IDIR_LIBIMAGEMAGICK)/usr/lib
  51. $(CP) $(WRKINST)/usr/lib/libMagickWand.so* \
  52. $(IDIR_LIBIMAGEMAGICK)/usr/lib
  53. convert-install:
  54. $(INSTALL_DIR) $(IDIR_CONVERT)/usr/bin
  55. $(INSTALL_BIN) $(WRKINST)/usr/bin/convert $(IDIR_CONVERT)/usr/bin
  56. display-install:
  57. $(INSTALL_DIR) $(IDIR_DISPLAY)/usr/bin
  58. $(INSTALL_BIN) $(WRKINST)/usr/bin/display $(IDIR_DISPLAY)/usr/bin
  59. include ${TOPDIR}/mk/pkg-bottom.mk