Annotation of pkgsrc/graphics/ImageMagick/Makefile, Revision 1.269
1.269 ! jperkin 1: # $NetBSD: Makefile,v 1.268 2020/06/02 08:22:42 adam Exp $
1.96 mjl 2:
1.268 adam 3: PKGREVISION= 2
1.98 tron 4: .include "Makefile.common"
1.96 mjl 5:
1.113 adam 6: PKGNAME= ImageMagick-${DISTVERSION}
1.58 jlam 7:
1.118 adam 8: MAINTAINER= adam@NetBSD.org
1.113 adam 9: COMMENT= Package for display and interactive manipulation of images
1.65 jtb 10:
1.113 adam 11: CONFLICTS= geomview<1.8.1nb2 # used to have a program named 'animate'
1.70 jlam 12:
1.147 jschauma 13: USE_LANGUAGES= c c++ c99
1.215 jperkin 14: USE_TOOLS+= gmake pkg-config:run
1.167 adam 15: CONFIGURE_ARGS+= --disable-assert
16: CONFIGURE_ARGS+= --with-fontconfig
1.255 leot 17: CONFIGURE_ARGS+= --with-jpeg
1.176 fhajny 18: CONFIGURE_ARGS+= --with-xml=yes
1.169 adam 19: CONFIGURE_ARGS+= --without-perl
1.181 markd 20: CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR}
1.213 dholland 21: # This one used to be optional, but it depends on ghostscript even if it's
22: # disabled so having a way to disable it seems pointless.
23: CONFIGURE_ARGS+= --with-gslib
1.234 jperkin 24: # http://www.imagemagick.org/discourse-server/viewtopic.php?f=2&t=25475
25: CONFIGURE_ARGS.NetBSD+= --disable-openmp
1.225 wiz 26: PKGCONFIG_OVERRIDE+= MagickWand/MagickWand.pc.in
27: PKGCONFIG_OVERRIDE+= MagickCore/MagickCore.pc.in
28: PKGCONFIG_OVERRIDE+= MagickCore/ImageMagick.pc.in
1.180 adam 29: PKGCONFIG_OVERRIDE+= Magick++/lib/Magick++.pc.in
1.89 wiz 30:
1.108 jlam 31: GCC_REQD+= 2.95.3
1.102 grant 32:
1.141 heinz 33: TEST_TARGET= check
34:
1.123 tv 35: .include "options.mk"
1.91 hubertf 36:
1.103 grant 37: .if !empty(MACHINE_PLATFORM:MNetBSD-*-sparc64)
1.108 jlam 38: GCC_REQD+= 3.0
1.103 grant 39: .endif
1.74 jlam 40:
1.93 salo 41: # Avoid compiler bug on "mipsel" (cobalt?)
1.104 grant 42: .if ${MACHINE_ARCH} == "mipsel"
1.132 adam 43: CFLAGS+= -O
1.48 tron 44: .endif
45:
1.200 fhajny 46: PKG_SYSCONFSUBDIR= ImageMagick-${IM_MAJOR_LIB_VER}
1.263 rillig 47: EGDIR= ${PREFIX}/share/examples/ImageMagick
48: CONF_FILES+= ${EGDIR}/colors.xml ${PKG_SYSCONFDIR}/colors.xml
49: CONF_FILES+= ${EGDIR}/delegates.xml ${PKG_SYSCONFDIR}/delegates.xml
50: CONF_FILES+= ${EGDIR}/log.xml ${PKG_SYSCONFDIR}/log.xml
51: CONF_FILES+= ${EGDIR}/mime.xml ${PKG_SYSCONFDIR}/mime.xml
52: CONF_FILES+= ${EGDIR}/policy.xml ${PKG_SYSCONFDIR}/policy.xml
53: CONF_FILES+= ${EGDIR}/thresholds.xml ${PKG_SYSCONFDIR}/thresholds.xml
54: CONF_FILES+= ${EGDIR}/type-dejavu.xml ${PKG_SYSCONFDIR}/type-dejavu.xml
55: CONF_FILES+= ${EGDIR}/type-ghostscript.xml ${PKG_SYSCONFDIR}/type-ghostscript.xml
56: CONF_FILES+= ${EGDIR}/type-windows.xml ${PKG_SYSCONFDIR}/type-windows.xml
57: CONF_FILES+= ${EGDIR}/type.xml ${PKG_SYSCONFDIR}/type.xml
1.142 joerg 58:
1.167 adam 59: SUBST_CLASSES+= fix-cfg
60: SUBST_STAGE.fix-cfg= pre-configure
61: SUBST_MESSAGE.fix-cfg= Fixing configure.xml.
62: SUBST_FILES.fix-cfg= config/configure.xml.in
63: SUBST_VARS.fix-cfg= CONFIGURE_ARGS
64:
1.169 adam 65: SUBST_CLASSES+= fix-etc
66: SUBST_STAGE.fix-etc= pre-configure
67: SUBST_MESSAGE.fix-etc= Handle configuration files.
68: SUBST_FILES.fix-etc= Makefile.in
69: SUBST_SED.fix-etc= -e 's,^configlibdir =.*,configlibdir = $$(DATA_DIR)/examples/ImageMagick,'
70:
1.263 rillig 71: SUBST_CLASSES+= fix-tools
72: SUBST_STAGE.fix-tools= pre-install
73: SUBST_MESSAGE.fix-tools= Unwrapping tools path in delegate paths.
74: SUBST_FILES.fix-tools= config/delegates.xml
75: SUBST_SED.fix-tools= -e 's,${TOOLS_DIR},,g'
1.224 adam 76:
1.230 wiz 77: SUBST_CLASSES+= fix-pc
78: SUBST_STAGE.fix-pc= pre-configure
79: SUBST_MESSAGE.fix-pc= Unwrapping pkg-config path in installed helper tools.
80: SUBST_FILES.fix-pc+= Magick++/bin/Magick++-config.in
81: SUBST_FILES.fix-pc+= MagickCore/MagickCore-config.in
82: SUBST_FILES.fix-pc+= MagickWand/MagickWand-config.in
83: SUBST_SED.fix-pc= -e 's,@PKG_CONFIG@,pkg-config,g'
84:
1.250 jperkin 85: # failed to convert strong functions and variables: Invalid type identifier
1.269 ! jperkin 86: CTF_FILES_SKIP+= lib/libMagickCore-7.Q16HDRI.so.*
! 87: CTF_FILES_SKIP+= lib/libMagickWand-7.Q16HDRI.so.*
1.250 jperkin 88:
1.109 xtraeme 89: .include "../../archivers/bzip2/buildlink3.mk"
1.172 sbd 90: .include "../../archivers/xz/buildlink3.mk"
1.153 adam 91: .include "../../devel/libltdl/buildlink3.mk"
1.154 adam 92: .include "../../fonts/fontconfig/buildlink3.mk"
93: .include "../../graphics/freetype2/buildlink3.mk"
1.255 leot 94: .include "../../mk/jpeg.buildlink3.mk"
1.187 drochner 95: .include "../../graphics/lcms2/buildlink3.mk"
1.173 wiz 96: .include "../../graphics/libwebp/buildlink3.mk"
1.152 adam 97: .include "../../graphics/png/buildlink3.mk"
1.109 xtraeme 98: .include "../../graphics/tiff/buildlink3.mk"
1.167 adam 99: .include "../../math/fftw/buildlink3.mk"
1.213 dholland 100: .include "../../print/ghostscript/buildlink3.mk"
1.154 adam 101: .include "../../textproc/libxml2/buildlink3.mk"
1.16 agc 102: .include "../../mk/bsd.pkg.mk"
CVSweb <webmaster@jp.NetBSD.org>