2017-03-05 16:06:29 +01:00
|
|
|
# $NetBSD: Makefile,v 1.229 2017/03/05 15:06:29 wiz Exp $
|
2003-04-16 15:27:21 +02:00
|
|
|
|
2003-06-30 08:45:01 +02:00
|
|
|
.include "Makefile.common"
|
2003-04-16 15:27:21 +02:00
|
|
|
|
2004-03-02 11:31:48 +01:00
|
|
|
PKGNAME= ImageMagick-${DISTVERSION}
|
1997-12-14 02:39:37 +01:00
|
|
|
|
2004-05-19 16:11:28 +02:00
|
|
|
MAINTAINER= adam@NetBSD.org
|
2004-03-02 11:31:48 +01:00
|
|
|
COMMENT= Package for display and interactive manipulation of images
|
1998-01-24 21:15:23 +01:00
|
|
|
|
2004-03-02 11:31:48 +01:00
|
|
|
CONFLICTS= geomview<1.8.1nb2 # used to have a program named 'animate'
|
2001-04-09 13:59:43 +02:00
|
|
|
|
2006-12-02 23:32:59 +01:00
|
|
|
USE_LANGUAGES= c c++ c99
|
2015-03-05 12:09:36 +01:00
|
|
|
USE_TOOLS+= gmake pkg-config:run
|
2010-12-14 11:08:40 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-assert
|
|
|
|
CONFIGURE_ARGS+= --with-fontconfig
|
2011-05-11 13:38:48 +02:00
|
|
|
CONFIGURE_ARGS+= --with-ltdl-include=${BUILDLINK_PREFIX.libltdl}/include
|
|
|
|
CONFIGURE_ARGS+= --with-ltdl-lib=${BUILDLINK_PREFIX.libltdl}/lib
|
2012-03-09 15:49:15 +01:00
|
|
|
CONFIGURE_ARGS+= --with-xml=yes
|
2014-06-17 13:02:42 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-openmp
|
2011-05-11 13:38:48 +02:00
|
|
|
CONFIGURE_ARGS+= --without-perl
|
2012-05-23 23:03:08 +02:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR}
|
2014-10-12 20:55:14 +02:00
|
|
|
# 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
|
2016-06-06 14:24:27 +02:00
|
|
|
PKGCONFIG_OVERRIDE+= MagickWand/MagickWand.pc.in
|
|
|
|
PKGCONFIG_OVERRIDE+= MagickCore/MagickCore.pc.in
|
|
|
|
PKGCONFIG_OVERRIDE+= MagickCore/ImageMagick.pc.in
|
2012-04-20 17:22:37 +02:00
|
|
|
PKGCONFIG_OVERRIDE+= Magick++/lib/Magick++.pc.in
|
2002-08-22 10:06:11 +02:00
|
|
|
|
2004-02-01 02:43:28 +01:00
|
|
|
GCC_REQD+= 2.95.3
|
2003-09-17 21:49:24 +02:00
|
|
|
|
2006-04-14 20:14:34 +02:00
|
|
|
TEST_TARGET= check
|
|
|
|
|
2004-12-25 00:42:49 +01:00
|
|
|
.include "options.mk"
|
2003-01-25 07:45:48 +01:00
|
|
|
|
2003-09-17 21:51:09 +02:00
|
|
|
.if !empty(MACHINE_PLATFORM:MNetBSD-*-sparc64)
|
2004-02-01 02:43:28 +01:00
|
|
|
GCC_REQD+= 3.0
|
2003-09-17 21:51:09 +02:00
|
|
|
.endif
|
2002-02-10 13:50:59 +01:00
|
|
|
|
2003-01-26 18:45:28 +01:00
|
|
|
# Avoid compiler bug on "mipsel" (cobalt?)
|
2003-09-17 21:51:35 +02:00
|
|
|
.if ${MACHINE_ARCH} == "mipsel"
|
2005-11-29 09:51:17 +01:00
|
|
|
CFLAGS+= -O
|
1999-09-11 16:25:44 +02:00
|
|
|
.endif
|
|
|
|
|
2013-08-27 10:13:20 +02:00
|
|
|
PKG_SYSCONFSUBDIR= ImageMagick-${IM_MAJOR_LIB_VER}
|
2011-05-11 13:38:48 +02:00
|
|
|
EGDIR= ${PREFIX}/share/examples/ImageMagick
|
|
|
|
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
|
2006-05-15 23:32:08 +02:00
|
|
|
|
2010-12-14 11:08:40 +01:00
|
|
|
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
|
|
|
|
|
2011-05-11 13:38:48 +02:00
|
|
|
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/ImageMagick,'
|
|
|
|
|
2016-05-10 18:40:45 +02:00
|
|
|
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'
|
|
|
|
|
2004-02-11 09:55:58 +01:00
|
|
|
.include "../../archivers/bzip2/buildlink3.mk"
|
2011-11-20 23:09:37 +01:00
|
|
|
.include "../../archivers/xz/buildlink3.mk"
|
2008-10-28 11:42:02 +01:00
|
|
|
.include "../../devel/libltdl/buildlink3.mk"
|
2009-01-07 09:58:07 +01:00
|
|
|
.include "../../fonts/fontconfig/buildlink3.mk"
|
|
|
|
.include "../../graphics/freetype2/buildlink3.mk"
|
2012-10-10 13:48:39 +02:00
|
|
|
.include "../../graphics/lcms2/buildlink3.mk"
|
2012-01-29 00:49:41 +01:00
|
|
|
.include "../../graphics/libwebp/buildlink3.mk"
|
2007-12-26 20:00:02 +01:00
|
|
|
.include "../../graphics/png/buildlink3.mk"
|
2004-02-11 09:55:58 +01:00
|
|
|
.include "../../graphics/tiff/buildlink3.mk"
|
2010-12-14 11:08:40 +01:00
|
|
|
.include "../../math/fftw/buildlink3.mk"
|
2014-10-12 20:55:14 +02:00
|
|
|
.include "../../print/ghostscript/buildlink3.mk"
|
2009-01-07 09:58:07 +01:00
|
|
|
.include "../../textproc/libxml2/buildlink3.mk"
|
1998-04-15 12:38:15 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|