Makefile 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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:= libpng jpeg libtiff fontconfig libiconv libtool e2fsprogs
  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 libltdl
  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. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  33. CONFIGURE_ENV+= ac_cv_sys_file_offset_bits=yes
  34. CONFIGURE_ARGS+= --with-magick-plus-plus=no \
  35. --without-gslib \
  36. --without-dps \
  37. --without-perl \
  38. --without-djvu \
  39. --without-lcms \
  40. --without-lcms2 \
  41. --without-wmf \
  42. --without-xml \
  43. --with-jpeg \
  44. --with-png \
  45. --with-tiff \
  46. --enable-fast-install
  47. libimagemagick-install:
  48. $(INSTALL_DIR) $(IDIR_LIBIMAGEMAGICK)/usr/lib
  49. $(INSTALL_DIR) $(IDIR_LIBIMAGEMAGICK)/usr/lib/${PKG_NAME}-${PKG_VERSION}/config
  50. $(INSTALL_DATA) $(WRKINST)/usr/lib/${PKG_NAME}-${PKG_VERSION}/config/* \
  51. $(IDIR_LIBIMAGEMAGICK)/usr/lib/${PKG_NAME}-${PKG_VERSION}/config
  52. $(INSTALL_DIR) $(IDIR_LIBIMAGEMAGICK)/usr/share/${PKG_NAME}-${PKG_VERSION}/config
  53. $(INSTALL_DATA) $(WRKINST)/usr/share/${PKG_NAME}-${PKG_VERSION}/config/* \
  54. $(IDIR_LIBIMAGEMAGICK)/usr/share/${PKG_NAME}-${PKG_VERSION}/config
  55. $(CP) $(WRKINST)/usr/lib/libMagickCore.so* \
  56. $(IDIR_LIBIMAGEMAGICK)/usr/lib
  57. $(CP) $(WRKINST)/usr/lib/libMagickWand.so* \
  58. $(IDIR_LIBIMAGEMAGICK)/usr/lib
  59. convert-install:
  60. $(INSTALL_DIR) $(IDIR_CONVERT)/usr/bin
  61. $(INSTALL_BIN) $(WRKINST)/usr/bin/convert $(IDIR_CONVERT)/usr/bin
  62. display-install:
  63. $(INSTALL_DIR) $(IDIR_DISPLAY)/usr/bin
  64. $(INSTALL_BIN) $(WRKINST)/usr/bin/display $(IDIR_DISPLAY)/usr/bin
  65. include ${TOPDIR}/mk/pkg-bottom.mk