Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / graphics / ImageMagick / Makefile
blob0bf25bf612ffd216debe92a60a9deadc8681f2a6
1 # $NetBSD: Makefile,v 1.189 2013/02/06 23:21:20 jperkin Exp $
3 .include "Makefile.common"
5 PKGNAME= ImageMagick-${DISTVERSION}
6 PKGREVISION= 3
8 MAINTAINER= adam@NetBSD.org
9 COMMENT= Package for display and interactive manipulation of images
11 CONFLICTS= geomview<1.8.1nb2 # used to have a program named 'animate'
13 PKG_INSTALLATION_TYPES= overwrite pkgviews
15 USE_LANGUAGES= c c++ c99
16 USE_TOOLS+= gmake pkg-config
17 CONFIGURE_ARGS+= --disable-assert
18 CONFIGURE_ARGS+= --with-fontconfig
19 CONFIGURE_ARGS+= --with-ltdl-include=${BUILDLINK_PREFIX.libltdl}/include
20 CONFIGURE_ARGS+= --with-ltdl-lib=${BUILDLINK_PREFIX.libltdl}/lib
21 CONFIGURE_ARGS+= --with-xml=yes
22 CONFIGURE_ARGS+= --without-perl
23 CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR}
24 PKGCONFIG_OVERRIDE= Magick++/lib/ImageMagick++.pc.in
25 PKGCONFIG_OVERRIDE+= Magick++/lib/Magick++.pc.in
26 PKGCONFIG_OVERRIDE+= magick/ImageMagick.pc.in
27 PKGCONFIG_OVERRIDE+= magick/MagickCore.pc.in
28 PKGCONFIG_OVERRIDE+= wand/MagickWand.pc.in
29 PKGCONFIG_OVERRIDE+= wand/Wand.pc.in
31 GCC_REQD+= 2.95.3
33 PLIST_SUBST+= IM_MAJOR_VER=${IM_MAJOR_VER:Q}
34 PLIST_SUBST+= IM_MAJOR_LIB_VER=${IM_MAJOR_LIB_VER:Q}
36 TEST_TARGET= check
38 .include "options.mk"
40 .if !empty(MACHINE_PLATFORM:MNetBSD-*-sparc64)
41 GCC_REQD+= 3.0
42 .endif
44 # Avoid compiler bug on "mipsel" (cobalt?)
45 .if ${MACHINE_ARCH} == "mipsel"
46 CFLAGS+= -O
47 .endif
49 PKG_SYSCONFSUBDIR= ImageMagick
50 EGDIR= ${PREFIX}/share/examples/ImageMagick
51 CONF_FILES= ${EGDIR}/coder.xml ${PKG_SYSCONFDIR}/coder.xml
52 CONF_FILES+= ${EGDIR}/colors.xml ${PKG_SYSCONFDIR}/colors.xml
53 CONF_FILES+= ${EGDIR}/delegates.xml ${PKG_SYSCONFDIR}/delegates.xml
54 CONF_FILES+= ${EGDIR}/log.xml ${PKG_SYSCONFDIR}/log.xml
55 CONF_FILES+= ${EGDIR}/magic.xml ${PKG_SYSCONFDIR}/magic.xml
56 CONF_FILES+= ${EGDIR}/mime.xml ${PKG_SYSCONFDIR}/mime.xml
57 CONF_FILES+= ${EGDIR}/policy.xml ${PKG_SYSCONFDIR}/policy.xml
58 CONF_FILES+= ${EGDIR}/thresholds.xml ${PKG_SYSCONFDIR}/thresholds.xml
59 CONF_FILES+= ${EGDIR}/type-dejavu.xml ${PKG_SYSCONFDIR}/type-dejavu.xml
60 CONF_FILES+= ${EGDIR}/type-ghostscript.xml ${PKG_SYSCONFDIR}/type-ghostscript.xml
61 CONF_FILES+= ${EGDIR}/type-windows.xml ${PKG_SYSCONFDIR}/type-windows.xml
62 CONF_FILES+= ${EGDIR}/type.xml ${PKG_SYSCONFDIR}/type.xml
64 SUBST_CLASSES+= fix-cfg
65 SUBST_STAGE.fix-cfg= pre-configure
66 SUBST_MESSAGE.fix-cfg= Fixing configure.xml.
67 SUBST_FILES.fix-cfg= config/configure.xml.in
68 SUBST_VARS.fix-cfg= CONFIGURE_ARGS
70 SUBST_CLASSES+= fix-etc
71 SUBST_STAGE.fix-etc= pre-configure
72 SUBST_MESSAGE.fix-etc= Handle configuration files.
73 SUBST_FILES.fix-etc= Makefile.in
74 SUBST_SED.fix-etc= -e 's,^configlibdir =.*,configlibdir = $$(DATA_DIR)/examples/ImageMagick,'
76 .include "../../archivers/bzip2/buildlink3.mk"
77 .include "../../archivers/xz/buildlink3.mk"
78 .include "../../devel/libltdl/buildlink3.mk"
79 .include "../../fonts/fontconfig/buildlink3.mk"
80 .include "../../graphics/freetype2/buildlink3.mk"
81 .include "../../graphics/lcms2/buildlink3.mk"
82 .include "../../graphics/openexr/buildlink3.mk"
83 .include "../../graphics/libwebp/buildlink3.mk"
84 .include "../../graphics/png/buildlink3.mk"
85 .include "../../graphics/tiff/buildlink3.mk"
86 .include "../../math/fftw/buildlink3.mk"
87 .include "../../textproc/libxml2/buildlink3.mk"
88 .include "../../mk/bsd.pkg.mk"