pkgsrc/graphics/ImageMagick6/Makefile
ryoon 723f930d24 Import ImageMagick6-6.9.4.4 as graphics/ImageMagick6.
ImageMagick TM, is a package for display and interactive manipulation
of images for the X Window System.  It is written in C and interfaces
to the X library, and therefore does not require any proprietary
toolkit in order to compile.  Although the software is copyrighted, it
is available for free and can be redistributed without fee.

The ImageMagick image display program can display an image on any
workstation screen running an X server.  It can read and write many of
the more popular image formats including JPEG, TIFF, PNM, GIF, and
Photo CD.  In addition you can interactively resize, rotate, sharpen,
color reduce, or add special effects to an image and save your
completed work in the same or differing image format.

This package tracks 6 release branch for backward compatibility.
2016-05-25 12:41:17 +00:00

93 lines
3.5 KiB
Makefile

# $NetBSD: Makefile,v 1.1 2016/05/25 12:41:17 ryoon Exp $
.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-ltdl-include=${BUILDLINK_PREFIX.libltdl}/include
CONFIGURE_ARGS+= --with-ltdl-lib=${BUILDLINK_PREFIX.libltdl}/lib
CONFIGURE_ARGS+= --with-xml=yes
CONFIGURE_ARGS+= --disable-openmp
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
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
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'
.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"