Makefile 3.0 KB

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