Makefile 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. # $OpenBSD: Makefile,v 1.164 2017/05/21 15:02:41 sthen Exp $
  2. COMMENT= image processing tools
  3. VER= 6.9.8
  4. DASHVER= 6
  5. DISTNAME= ImageMagick-${VER}-${DASHVER}
  6. PKGNAME= ImageMagick-${VER}.${DASHVER}
  7. PORTROACH= site:https://www.imagemagick.org/download/ limit:6.*
  8. EXTRACT_SUFX= .tar.xz
  9. SHARED_LIBS += MagickCore-6.Q16 3.1 # 4.0
  10. SHARED_LIBS += MagickWand-6.Q16 3.0 # 4.0
  11. SHARED_LIBS += Magick++-6.Q16 5.1 # 7.0
  12. CATEGORIES= graphics
  13. HOMEPAGE= https://www.imagemagick.org/
  14. MAINTAINER= Stuart Henderson <sthen@openbsd.org>
  15. MASTER_SITES= https://www.imagemagick.org/download/releases/ \
  16. ftp://sunsite.icm.edu.pl/packages/ImageMagick/
  17. # http://www.imagemagick.org/script/license.php
  18. PERMIT_PACKAGE_CDROM= Yes
  19. WANTLIB += ICE SM X11 Xau Xdmcp Xext Xt bz2 c djvulibre expat
  20. WANTLIB += fftw3 fontconfig freetype iconv jbig jpeg lcms2 lzma m
  21. WANTLIB += openjp2 perl png pthread pthread-stubs ${LIBCXX} tiff
  22. WANTLIB += webp xcb xml2 z
  23. LIB_DEPENDS = archivers/bzip2 \
  24. archivers/xz \
  25. converters/libiconv \
  26. graphics/djvulibre \
  27. graphics/jbigkit \
  28. graphics/png \
  29. graphics/tiff \
  30. graphics/lcms2 \
  31. graphics/libwebp \
  32. graphics/openjp2 \
  33. math/fftw3 \
  34. textproc/libxml
  35. BUILD_DEPENDS = print/ghostscript/gnu
  36. ALL_TARGET= all perl-build
  37. CONFIGURE_STYLE= autoconf
  38. LIBTOOL_FLAGS= --tag=disable-static
  39. AUTOCONF_VERSION= 2.69
  40. USE_GMAKE= Yes
  41. CONFIGURE_ARGS+= --without-gcc-arch \
  42. --with-gs-font-dir=${LOCALBASE}/share/fonts/ghostscript \
  43. --with-perl \
  44. --with-perl-options='MAKE=${MAKE_PROGRAM}' \
  45. --with-quantum-depth=16 \
  46. --without-dps \
  47. --without-fpx \
  48. --without-gvc \
  49. --without-lqr \
  50. --without-openexr \
  51. --without-pango \
  52. --without-rsvg \
  53. --without-wmf \
  54. --disable-openmp
  55. CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include/libxml2 -I${LOCALBASE}/include" \
  56. LDFLAGS="-L${WRKBUILD}/magick/.libs -L${WRKBUILD}/wand/.libs -L${LOCALBASE}/lib" \
  57. ac_cv_path_LaunchDelegate=no
  58. pre-configure:
  59. cd ${WRKSRC}; ${SUBST_CMD} $$(find . -name '*.pc.in')
  60. post-install:
  61. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ImageMagick
  62. .for i in coder.xml colors.xml delegates.xml log.xml magic.xml \
  63. mime.xml policy.xml quantization-table.xml \
  64. thresholds.xml type-dejavu.xml type-ghostscript.xml \
  65. type-windows.xml type.xml
  66. ${INSTALL_DATA} ${WRKSRC}/config/$i ${PREFIX}/share/examples/ImageMagick
  67. .endfor
  68. .include <bsd.port.mk>