Makefile 3.0 KB

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