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