Makefile 3.0 KB

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