Makefile 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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
  12. PKG_DEPENDS:= libjpeg libtiff
  13. PKG_URL:= http://www.imagemagick.org/
  14. PKG_SITES:= http://image_magick.veidrodis.com/image_magick/
  15. PKG_SUBPKGS:= CONVERT DISPLAY LIBIMAGEMAGICK
  16. PKGSD_LIBIMAGEMAGICK:= imagemagick library
  17. PKGSC_LIBIMAGEMAGICK:= libs
  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
  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. SUB_INSTALLS-y:=
  32. SUB_INSTALLS-m:=
  33. SUB_INSTALLS-${ADK_PACKAGE_CONVERT}+= convert-install
  34. SUB_INSTALLS-${ADK_PACKAGE_DISPLAY}+= display-install
  35. CONFIGURE_ARGS+= --with-magick-plus-plus=no
  36. post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
  37. $(INSTALL_DIR) $(IDIR_LIBIMAGEMAGICK)/usr/lib
  38. $(INSTALL_DIR) $(IDIR_LIBIMAGEMAGICK)/usr/lib/${PKG_NAME}-${PKG_VERSION}/config
  39. $(INSTALL_DATA) $(WRKINST)/usr/lib/${PKG_NAME}-${PKG_VERSION}/config/* \
  40. $(IDIR_LIBIMAGEMAGICK)/usr/lib/${PKG_NAME}-${PKG_VERSION}/config
  41. $(INSTALL_DIR) $(IDIR_LIBIMAGEMAGICK)/usr/share/${PKG_NAME}-${PKG_VERSION}/config
  42. $(INSTALL_DATA) $(WRKINST)/usr/share/${PKG_NAME}-${PKG_VERSION}/config/* \
  43. $(IDIR_LIBIMAGEMAGICK)/usr/share/${PKG_NAME}-${PKG_VERSION}/config
  44. $(CP) $(WRKINST)/usr/lib/libMagickCore.so* \
  45. $(IDIR_LIBIMAGEMAGICK)/usr/lib
  46. $(CP) $(WRKINST)/usr/lib/libMagickWand.so* \
  47. $(IDIR_LIBIMAGEMAGICK)/usr/lib
  48. convert-install:
  49. $(INSTALL_DIR) $(IDIR_CONVERT)/usr/bin
  50. $(INSTALL_BIN) $(WRKINST)/usr/bin/convert \
  51. $(IDIR_CONVERT)/usr/bin
  52. display-install:
  53. $(INSTALL_DIR) $(IDIR_DISPLAY)/usr/bin
  54. $(INSTALL_BIN) $(WRKINST)/usr/bin/display \
  55. $(IDIR_DISPLAY)/usr/bin
  56. include ${TOPDIR}/mk/pkg-bottom.mk