1
0

Makefile 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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_SUBPKGS:= CONVERT DISPLAY LIBIMAGEMAGICK
  15. PKGSD_LIBIMAGEMAGICK:= imagemagick library
  16. PKGSC_LIBIMAGEMAGICK:= libs
  17. PKGSS_LIBIMAGEMAGICK:= libjpeg libtiff
  18. PKGSD_CONVERT:= image processing and converting utility
  19. PKGSC_CONVERT:= multimedia
  20. PKGSS_CONVERT:= libimagemagick
  21. PKGSD_DISPLAY:= image display application
  22. PKGSC_DISPLAY:= multimedia
  23. PKGSS_DISPLAY:= libimagemagick libX11 libXau libXdmcp libICE libSM fontconfig libXt zlib libpng
  24. PKGSB_DISPLAY:= libX11
  25. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}-${PKG_EXTRAVER}.tar.gz
  26. WRKDIST= ${WRKDIR}/${PKG_NAME}-${PKG_VERSION}-${PKG_EXTRAVER}
  27. include $(TOPDIR)/mk/package.mk
  28. $(eval $(call PKG_template,LIBIMAGEMAGICK,libimagemagick,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBIMAGEMAGICK},${PKGSC_LIBIMAGEMAGICK}))
  29. $(eval $(call PKG_template,CONVERT,convert,$(PKG_VERSION)-${PKG_RELEASE},${PKGSS_CONVERT},${PKGSD_CONVERT},${PKGSC_CONVERT}))
  30. $(eval $(call PKG_template,DISPLAY,display,$(PKG_VERSION)-${PKG_RELEASE},${PKGSS_DISPLAY},${PKGSD_DISPLAY},${PKGSC_DISPLAY}))
  31. CONFIGURE_ARGS+= --with-magick-plus-plus=no \
  32. --enable-fast-install
  33. post-install:
  34. $(INSTALL_DIR) $(IDIR_LIBIMAGEMAGICK)/usr/lib
  35. $(INSTALL_DIR) $(IDIR_LIBIMAGEMAGICK)/usr/lib/${PKG_NAME}-${PKG_VERSION}/config
  36. $(INSTALL_DATA) $(WRKINST)/usr/lib/${PKG_NAME}-${PKG_VERSION}/config/* \
  37. $(IDIR_LIBIMAGEMAGICK)/usr/lib/${PKG_NAME}-${PKG_VERSION}/config
  38. $(INSTALL_DIR) $(IDIR_LIBIMAGEMAGICK)/usr/share/${PKG_NAME}-${PKG_VERSION}/config
  39. $(INSTALL_DATA) $(WRKINST)/usr/share/${PKG_NAME}-${PKG_VERSION}/config/* \
  40. $(IDIR_LIBIMAGEMAGICK)/usr/share/${PKG_NAME}-${PKG_VERSION}/config
  41. $(CP) $(WRKINST)/usr/lib/libMagickCore.so* \
  42. $(IDIR_LIBIMAGEMAGICK)/usr/lib
  43. $(CP) $(WRKINST)/usr/lib/libMagickWand.so* \
  44. $(IDIR_LIBIMAGEMAGICK)/usr/lib
  45. convert-install:
  46. $(INSTALL_DIR) $(IDIR_CONVERT)/usr/bin
  47. $(INSTALL_BIN) $(WRKINST)/usr/bin/convert \
  48. $(IDIR_CONVERT)/usr/bin
  49. display-install:
  50. $(INSTALL_DIR) $(IDIR_DISPLAY)/usr/bin
  51. $(INSTALL_BIN) $(WRKINST)/usr/bin/display \
  52. $(IDIR_DISPLAY)/usr/bin
  53. include ${TOPDIR}/mk/pkg-bottom.mk