blob: 97c356e5c49a128240e3c91705490f24fb2af881 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
|
# $NetBSD: Makefile,v 1.46 2022/04/18 19:09:52 adam Exp $
PKGREVISION= 13
.include "Makefile.common"
PKGNAME= ImageMagick6-${DISTVERSION}
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Package for display and interactive manipulation of images
CONFLICTS= geomview<1.8.1nb2 # used to have a program named 'animate'
USE_LANGUAGES= c c++ c99
USE_TOOLS+= gmake pkg-config:run
CONFIGURE_ARGS+= --disable-assert
CONFIGURE_ARGS+= --with-fontconfig
CONFIGURE_ARGS+= --with-xml=yes
CONFIGURE_ARGS+= --without-perl
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR}
CONFIGURE_ARGS+= --program-suffix=6
# This one used to be optional, but it depends on ghostscript even if it's
# disabled so having a way to disable it seems pointless.
CONFIGURE_ARGS+= --with-gslib
# http://www.imagemagick.org/discourse-server/viewtopic.php?f=2&t=25475
CONFIGURE_ARGS.NetBSD+= --disable-openmp
PKGCONFIG_OVERRIDE= Magick++/lib/ImageMagick++.pc.in
PKGCONFIG_OVERRIDE+= Magick++/lib/Magick++.pc.in
PKGCONFIG_OVERRIDE+= magick/ImageMagick.pc.in
PKGCONFIG_OVERRIDE+= magick/MagickCore.pc.in
PKGCONFIG_OVERRIDE+= wand/MagickWand.pc.in
PKGCONFIG_OVERRIDE+= wand/Wand.pc.in
SUBST_CLASSES+= pkgcfg
SUBST_FILES.pkgcfg= ${PKGCONFIG_OVERRIDE} Magick++/bin/Magick++-config.in
SUBST_FILES.pkgcfg+= magick/Magick-config.in magick/MagickCore-config.in
SUBST_FILES.pkgcfg+= wand/MagickWand-config.in wand/Wand-config.in
SUBST_MESSAGE.pkgcfg= Fixing pkg-config requirements.
SUBST_SED.pkgcfg= -e 's|MagickCore-config |MagickCore-config6 |g'
SUBST_SED.pkgcfg+= -e 's|Wand-config|Wand-config6|g'
SUBST_SED.pkgcfg+= -e 's|s MagickWand|s MagickWand-6.Q16|g'
SUBST_SED.pkgcfg+= -e 's|s: MagickWand|s: MagickWand-6.Q16|g'
SUBST_SED.pkgcfg+= -e 's|s MagickCore|s MagickCore-6.Q16|g'
SUBST_SED.pkgcfg+= -e 's|s: MagickCore|s: MagickCore-6.Q16|g'
SUBST_SED.pkgcfg+= -e 's|Magick++-config|Magick++-config6|g'
SUBST_SED.pkgcfg+= -e 's|Magick-config |Magick-config6 |g'
SUBST_SED.pkgcfg+= -e 's|s Magick++|s Magick++-6.Q16|g'
SUBST_SED.pkgcfg+= -e 's|@PKG_CONFIG@|${PREFIX}/bin/pkg-config|g'
SUBST_STAGE.pkgcfg= pre-configure
SUBST_NOOP_OK.pkgcfg= yes
# The files magick/ImageMagick.pc.in and magick/MagickCore.pc.in are not
# modified, and they don't need to since their names don't appear in any
# "Requires:" line.
GCC_REQD+= 2.95.3
TEST_TARGET= check
.include "options.mk"
.if !empty(MACHINE_PLATFORM:MNetBSD-*-sparc64)
GCC_REQD+= 3.0
.endif
# Avoid compiler bug on "mipsel" (cobalt?)
.if ${MACHINE_ARCH} == "mipsel"
CFLAGS+= -O
.endif
PKG_SYSCONFSUBDIR= ImageMagick-${IM_MAJOR_LIB_VER}
EGDIR= ${PREFIX}/share/examples/ImageMagick6
CONF_FILES= ${EGDIR}/coder.xml ${PKG_SYSCONFDIR}/coder.xml
CONF_FILES+= ${EGDIR}/colors.xml ${PKG_SYSCONFDIR}/colors.xml
CONF_FILES+= ${EGDIR}/delegates.xml ${PKG_SYSCONFDIR}/delegates.xml
CONF_FILES+= ${EGDIR}/log.xml ${PKG_SYSCONFDIR}/log.xml
CONF_FILES+= ${EGDIR}/magic.xml ${PKG_SYSCONFDIR}/magic.xml
CONF_FILES+= ${EGDIR}/mime.xml ${PKG_SYSCONFDIR}/mime.xml
CONF_FILES+= ${EGDIR}/policy.xml ${PKG_SYSCONFDIR}/policy.xml
CONF_FILES+= ${EGDIR}/thresholds.xml ${PKG_SYSCONFDIR}/thresholds.xml
CONF_FILES+= ${EGDIR}/type-dejavu.xml ${PKG_SYSCONFDIR}/type-dejavu.xml
CONF_FILES+= ${EGDIR}/type-ghostscript.xml ${PKG_SYSCONFDIR}/type-ghostscript.xml
CONF_FILES+= ${EGDIR}/type-windows.xml ${PKG_SYSCONFDIR}/type-windows.xml
CONF_FILES+= ${EGDIR}/type.xml ${PKG_SYSCONFDIR}/type.xml
SUBST_CLASSES+= fix-cfg
SUBST_STAGE.fix-cfg= pre-configure
SUBST_MESSAGE.fix-cfg= Fixing configure.xml.
SUBST_FILES.fix-cfg= config/configure.xml.in
SUBST_VARS.fix-cfg= CONFIGURE_ARGS
SUBST_CLASSES+= fix-etc
SUBST_STAGE.fix-etc= pre-configure
SUBST_MESSAGE.fix-etc= Handle configuration files.
SUBST_FILES.fix-etc= Makefile.in
SUBST_SED.fix-etc= -e 's,^configlibdir =.*,configlibdir = $$(DATA_DIR)/examples/ImageMagick6,'
SUBST_CLASSES+= fix-tools
SUBST_STAGE.fix-tools= pre-install
SUBST_MESSAGE.fix-tools= Unwrapping tools path in delegate paths.
SUBST_FILES.fix-tools= config/delegates.xml
SUBST_SED.fix-tools= -e 's,${TOOLS_DIR},,g'
# failed to convert strong functions and variables: Invalid type identifier
CTF_FILES_SKIP+= lib/libMagickCore-6.Q16.so.5.0.0
CTF_FILES_SKIP+= lib/libMagickWand-6.Q16.so.5.0.0
CTF_FILES_SKIP+= lib/libMagickCore-6.Q16.so.* # CPU limit exceeded
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../archivers/xz/buildlink3.mk"
.include "../../devel/libltdl/buildlink3.mk"
.include "../../fonts/fontconfig/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/lcms2/buildlink3.mk"
.include "../../graphics/libwebp/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
.include "../../math/fftw/buildlink3.mk"
.include "../../print/ghostscript/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|