2017-11-23 18:19:40 +01:00
|
|
|
# $NetBSD: Makefile,v 1.10 2017/11/23 17:19:42 wiz Exp $
|
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 14:41:17 +02:00
|
|
|
|
2017-11-23 18:19:40 +01:00
|
|
|
PKGREVISION= 1
|
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 14:41:17 +02:00
|
|
|
.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
|
|
|
|
|
2016-12-17 01:39:17 +01:00
|
|
|
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'
|
Update to 6.9.9.11
Changelog:
2017-09-03 6.9.9-11 Cristy <quetzlzacatenango@image...>
* Release ImageMagick version 6.9.9-11, GIT revision 11969:a12fbb873:20170903.
2017-08-28 6.9.9-11 Cristy <quetzlzacatenango@image...>
* Fixed numerous memory leaks (reference
https://github.com/ImageMagick/ImageMagick/issues).
* Don't overwrite symbolic links when the shred policy is enabled.
2017-08-27 6.9.9-10 Cristy <quetzlzacatenango@image...>
* Release ImageMagick version 6.9.9-10, GIT revision 11936:a8112a821:20170827.
2017-08-26 6.9.9-10 Dirk Lemstra <dirk@lem.....org>
* Fixed thread safety issue inside the pango and librsvg decoder
(reference: https://github.com/dlemstra/Magick.NET/issues/91).
2017-08-20 6.9.9-9 Cristy <quetzlzacatenango@image...>
* Release ImageMagick version 6.9.9-9, GIT revision 11915:5205bda17:20170820.
2017-08-18 6.6.9-9 Glenn Randers-Pehrson <glennrp@image...>
* Fixed bug with writing tIME chunk when timezone has a negative offset
(reference: https://github.com/ImageMagick/ImageMagick/issues/685).
2017-08-18 6.9.9-8 Cristy <quetzlzacatenango@image...>
* Release ImageMagick version 6.9.9-8, GIT revision 11906:26078285f:20170818.
2017-08-18 6.9.9-8 Cristy <quetzlzacatenango@image...>
* Fixed numerous memory leaks (reference
https://github.com/ImageMagick/ImageMagick/issues).
2017-08-12 6.9.9-7 Cristy <quetzlzacatenango@image...>
* Release ImageMagick version 6.9.9-7, GIT revision 11893:8c4c56a0e:20170812
(Windows binaries out of sync).
2017-08-10 6.9.9-6 Cristy <quetzlzacatenango@image...>
* Release ImageMagick version 6.9.9-6, GIT revision 11886:af2b102db:20170810.
2017-08-10 6.9.9-6 Cristy <quetzlzacatenango@image...>
* Fixed numerous memory leaks (reference
https://github.com/ImageMagick/ImageMagick/issues).
2017-08-10 6.9.9-6 Glenn Randers-Pehrson <glennrp@image...>
* tests/validate.c: Show the reason for failures in the test logs,
if available.
2017-08-03 6.9.9-6 Glenn Randers-Pehrson <glennrp@image...>
* Put UTC time in the PNG tIME chunk instead of local time (reference
https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=32447).
2017-08-02 6.9.9-5 Cristy <quetzlzacatenango@image...>
* Release ImageMagick version 6.9.9-5, GIT revision 11858:7a555e53f:20170802.
2017-08-01 6.9.9-5 Cristy <quetzlzacatenango@image...>
* Fixed numerous memory leaks (reference
https://github.com/ImageMagick/ImageMagick/issues).
2017-07-29 6.9.9-5 Glenn Randers-Pehrson <glennrp@image...>
* Properly set image->colorspace in the PNG decoder (previously
it was setting image->gamma, but only setting image->colorspace
for grayscale and gray-alpha images. Reference
https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=32418).
* Fix improper use of NULL in the JNG decoder (CVE-2017-11750, Reference
https://github.com/ImageMagick/ImageMagick/issues/632).
2017-07-29 6.9.9-5 Cristy <quetzlzacatenango@image...>
* Off by one error for gradient coder (reference
https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=32416).
2017-07-28 6.9.9-4 Cristy <quetzlzacatenango@image...>
* Release ImageMagick version 6.9.9-4, GIT revision 11833:4e81160d6:20170728.
2017-07-25 6.9.9-4 Cristy <quetzlzacatenango@image...>
* Fixed numerous memory leaks (reference
https://github.com/ImageMagick/ImageMagick/issues).
* coders/png.c: Initialized quantum_scanline to prevent a bad free
(reference https://github.com/ImageMagick/ImageMagick/issues/621).
2017-07-24 6.9.9-4 Glenn Randers-Pehrson <glennrp@image...>
* Removed write_chunk_from_profile() from coders/png.c because it
has not worked at least since version 6.7.6.
* Removed many redundant checks before RelinquishMagickMemory(),
which is safe to call with a NULL argument.
* Removed vpAg chunk write support (we are now writing caNv instead).
* coders/png.c: Initialized quantum_info to prevent memory leakage
(reference https://github.com/ImageMagick/ImageMagick/issues/582,
CVE-2017-11539).
* coders/png.c: fixed NULL dereference when trying to write an empty MNG
(CVE-2017-11522, reference
https://github.com/ImageMagick/ImageMagick/issues/586).
2017-07-24 6.9.9-3 Cristy <quetzlzacatenango@image...>
* Release ImageMagick version 6.9.9-3, GIT revision 11809:2bd88257b:20170724.
2017-07-23 6.9.9-3 Cristy <quetzlzacatenango@image...>
* Fixed numerous memory leaks (reference
https://github.com/ImageMagick/ImageMagick/issues).
2017-07-23 6.9.9-3 Glenn Randers-Pehrson <glennrp@image...>
* Fix memory leaks when reading a malformed JNG image:
https://github.com/ImageMagick/ImageMagick/issues/600).
https://github.com/ImageMagick/ImageMagick/issues/602).
2017-07-22 6.9.9-2 Cristy <quetzlzacatenango@image...>
* Release ImageMagick version 6.9.9-2, GIT revision 11786:21b23bf09:20170722.
2017-07-22 6.9.9-2 Cristy <quetzlzacatenango@image...>
* composite -dissolve works again reference
https://github.com/ImageMagick/ImageMagick/issues/597).
2017-07-21 6.9.9-1 Cristy <quetzlzacatenango@image...>
* Release ImageMagick version 6.9.9-1, GIT revision 11782:75f7e994e:20170721.
2017-07-19 6.9.9-1 Cristy <quetzlzacatenango@image...>
* Fixed numerous memory leaks (reference
https://github.com/ImageMagick/ImageMagick/issues).
2017-07-15 6.9.9-1 Glenn Randers-Pehrson <glennrp@image...>
* Don't write a hex-encoded Exif profile when writing the eXIf chunk.
* Added caNv, eXIf, and pHYs to the list of PNG chunks to be removed
by the "-strip" option.
2017-07-15 6.9.9-0 Cristy <quetzlzacatenango@image...>
* Release ImageMagick version 6.9.9-0, GIT revision 11738:8903861b2:20170715.
2017-07-13 6.9.9-0 Glenn Randers-Pehrson <glennrp@image...>
* Implemented PNG eXIf chunk support.
2017-07-08 6.9.9-0 Cristy <quetzlzacatenango@image...>
* Fixed numerous memory leaks (reference
https://github.com/ImageMagick/ImageMagick/issues).
* Don't use variable float_t / double_t, bump SO (reference
https://github.com/ImageMagick/ImageMagick/issues/510).
* Support DNG images with libraw delegate library.
2017-09-09 14:09:37 +02:00
|
|
|
SUBST_SED.pkgcfg+= -e 's|@PKG_CONFIG@|${PREFIX}/bin/pkg-config|g'
|
2016-12-17 01:39:17 +01:00
|
|
|
SUBST_STAGE.pkgcfg= pre-configure
|
|
|
|
|
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 14:41:17 +02:00
|
|
|
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"
|