1999-08-25 08:16:32 +02:00
|
|
|
# $FreeBSD$
|
1995-02-27 22:43:12 +01:00
|
|
|
|
2000-04-13 08:28:28 +02:00
|
|
|
PORTNAME= ImageMagick
|
2014-01-07 01:23:34 +01:00
|
|
|
DISTVERSION= 6.8.0-7
|
The FreeBSD x11@ and graphics team proudly presents
a zeising, kwm production, with help from dumbbell, bdrewery:
NEW XORG ON FREEBSD 9-STABLE AND 10-STABLE
This update switches over to use the new xorg stack by default on FreeBSD 9
and 10 stable, on osversions where vt(9) is available.
It is still possible to use the old stack by specifying WITHOUT_NEW_XORG in
/etc/make.conf .
FreeBSD 8-STABLE and released versions of FreeBSD still use
the old version.
A package repository with binary packages for new xorg will
be available soon.
This patch also contains updates of libxcb and related ports, pixman, as well
as some drivers and utilities.
Bump portrevisions for xf86-* ports, as well as virtualbox-ose-additions due
to xserver version change.
Apart from these updates, the way shared libraries are handled has been
changed for all xorg ports, as well as libxml2 and freetype, which means
ltverhack is gone and as a consequence shared libraries have been bumped.
The plan is that this change will make library bumps less likely in the
future.
All affected ports have had their portrevisions bumped as a consequence of
this.
Fix some issues where WITH_NEW_XORG weren't detected properly on CURRENT.
Update instructions, hardware support, and more notes can be found on
https://wiki.freebsd.org/Graphics
Thanks to: all testers, bdrewery and the FreeBSD x11@ team
exp-run by: bdrewery [1]
PR: ports/187602 [1]
Approved by: portmgr (bdrewery), core (jhb)
2014-04-16 20:28:47 +02:00
|
|
|
PORTREVISION= 7
|
2014-01-07 01:23:34 +01:00
|
|
|
PORTEPOCH= 1
|
1998-08-21 14:00:41 +02:00
|
|
|
CATEGORIES= graphics perl5
|
2012-09-11 03:14:52 +02:00
|
|
|
MASTER_SITES= http://www.imagemagick.org/download/ \
|
|
|
|
http://servingzone.com/mirrors/ImageMagick/ \
|
|
|
|
http://mirror.checkdomain.de/imagemagick/ \
|
2011-10-11 21:34:04 +02:00
|
|
|
http://image_magick.veidrodis.com/image_magick/ \
|
2012-09-11 03:14:52 +02:00
|
|
|
http://imagemagick.spd.co.il/ \
|
|
|
|
http://www.champground.com/imagemagick/ \
|
|
|
|
http://ftp.surfnet.nl/pub/ImageMagick/ \
|
|
|
|
http://mirror.searchdaimon.com/ImageMagick/ \
|
|
|
|
http://mirror.is.co.za/pub/imagemagick/ \
|
|
|
|
http://imagemagick.mirrorcatalogs.com/ \
|
|
|
|
ftp://ftp.imagemagick.org/pub/ImageMagick/ \
|
|
|
|
ftp://mirror.aarnet.edu.au/pub/imagemagick/ \
|
|
|
|
ftp://mirror.checkdomain.de/imagemagick/ \
|
|
|
|
ftp://ftp.kddlabs.co.jp/graphics/ImageMagick/ \
|
|
|
|
ftp://ftp.u-aizu.ac.jp/pub/graphics/image/ImageMagick/imagemagick.org/ \
|
|
|
|
ftp://ftp.nluug.nl/pub/ImageMagick/ \
|
|
|
|
ftp://mirror.searchdaimon.com/ImageMagick/ \
|
|
|
|
ftp://sunsite.icm.edu.pl/packages/ImageMagick/ \
|
|
|
|
ftp://ftp.tpnet.pl/pub/graphics/ImageMagick/ \
|
2011-10-11 21:34:04 +02:00
|
|
|
ftp://ftp.sunet.se/pub/multimedia/graphics/ImageMagick/ \
|
2012-09-11 03:14:52 +02:00
|
|
|
ftp://ftp.is.co.za/pub/imagemagick/ \
|
|
|
|
ftp://ftp.fifi.org/pub/ImageMagick/
|
2009-08-22 02:23:13 +02:00
|
|
|
|
2014-02-06 10:39:13 +01:00
|
|
|
MAINTAINER= kwm@FreeBSD.org
|
2003-10-05 13:21:58 +02:00
|
|
|
COMMENT= Image processing tools
|
1996-11-06 08:53:24 +01:00
|
|
|
|
2014-01-07 00:08:14 +01:00
|
|
|
LICENSE= APACHE20
|
2012-09-11 03:14:52 +02:00
|
|
|
|
2014-01-14 04:23:01 +01:00
|
|
|
USES= gmake pkgconfig:both pathfix perl5 shebangfix
|
|
|
|
SHEBANG_FILES= www/source/examples.pl
|
2010-06-04 10:09:20 +02:00
|
|
|
USE_XZ= yes
|
2014-01-07 01:23:34 +01:00
|
|
|
USE_PERL5= run build patch
|
2013-04-23 12:53:21 +02:00
|
|
|
WANT_GNOME= yes
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libltdl
|
2008-04-19 17:01:02 +02:00
|
|
|
# For some reason, using our libtool breaks the build into pieces:
|
2010-12-04 08:34:27 +01:00
|
|
|
#USE_AUTOTOOLS+= libtool
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2014-01-07 01:23:34 +01:00
|
|
|
CONFIGURE_ARGS= --enable-shared --without-dps --without-lcms
|
2006-09-04 20:36:59 +02:00
|
|
|
USE_LDCONFIG= yes
|
2001-01-25 12:05:14 +01:00
|
|
|
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2001-12-08 20:57:27 +01:00
|
|
|
|
2011-01-22 00:51:11 +01:00
|
|
|
PLIST_SUB= PORTVERSION=${PORTVERSION:R}
|
2004-06-06 17:22:29 +02:00
|
|
|
|
2012-08-27 16:34:22 +02:00
|
|
|
OPTIONS_DEFINE= 16BIT_PIXEL BZIP2 DOCS DJVU FFTW FONTCONFIG FPX FREETYPE \
|
|
|
|
GRAPHVIZ GSLIB HDRI JASPER JBIG JPEG LCMS2 LZMA LQR MODULES \
|
2012-07-23 14:56:15 +02:00
|
|
|
OPENEXR OPENMP PANGO PDF PERL PNG SVG TESTS TIFF WEBP WMF \
|
|
|
|
THREADS
|
2012-08-27 21:16:55 +02:00
|
|
|
OPTIONS_DEFAULT= 16BIT_PIXEL BZIP2 FFTW FONTCONFIG FPX FREETYPE \
|
2014-01-07 01:23:34 +01:00
|
|
|
JASPER JBIG JPEG LCMS2 LZMA LQR MODULES PDF PERL PNG SVG \
|
|
|
|
TIFF WEBP WMF
|
2012-07-23 14:56:15 +02:00
|
|
|
16BIT_PIXEL_DESC= 16bit pixel support
|
|
|
|
DJVU_DESC= DJVU format support (needs THREADS)
|
|
|
|
GSLIB_DESC= libgs (Postscript SHLIB) support
|
|
|
|
HDRI_DESC= High dynamic range images support
|
|
|
|
MODULES_DESC= Modules support
|
|
|
|
TESTS_DESC= Run bundled self-tests after build
|
2006-11-28 19:30:40 +01:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2012-07-23 14:56:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MHDRI}
|
2012-06-09 20:06:28 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-hdri
|
|
|
|
.else
|
2007-11-07 06:46:29 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-hdri
|
2012-06-09 20:06:28 +02:00
|
|
|
.endif
|
2007-11-07 06:46:29 +01:00
|
|
|
|
2012-07-23 14:56:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MTHREADS}
|
2010-11-22 14:47:12 +01:00
|
|
|
_IMAGEMAGICK_THREADS=yes
|
|
|
|
_IMAGEMAGICK_THREADS_MSG=with threads
|
2011-01-22 00:51:11 +01:00
|
|
|
PERL_THREADED!= ${SH} -c 'case `perl --version` in *freebsd-thread*) ${ECHO_CMD} yes ;; esac'
|
2008-05-23 13:45:52 +02:00
|
|
|
.else
|
2010-11-22 14:47:12 +01:00
|
|
|
_IMAGEMAGICK_THREADS=no
|
|
|
|
_IMAGEMAGICK_THREADS_MSG=without threads
|
|
|
|
_IMAGEMAGICK_THREADS_IGNORE_MSG=. Define WITH_THREADS
|
2008-05-23 13:45:52 +02:00
|
|
|
.endif
|
|
|
|
|
2012-07-23 14:56:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MPERL}
|
2003-07-22 15:58:59 +02:00
|
|
|
CONFIGURE_ARGS+= --with-perl=${PERL5}
|
2003-10-04 18:36:09 +02:00
|
|
|
PLIST_SUB+= WITH_PERL=''
|
|
|
|
MAN3= Image::Magick.3
|
2013-06-12 19:09:49 +02:00
|
|
|
MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VER}
|
2014-01-06 19:32:16 +01:00
|
|
|
# PerlMagick does not work with threads, if perl is not threaded, and vice versa
|
2010-11-24 01:40:22 +01:00
|
|
|
. if defined(PERL_THREADED)
|
2010-11-22 14:47:12 +01:00
|
|
|
_IMAGEMAGICK_THREADS_PERL_MSG=Perl is threaded
|
|
|
|
_IMAGEMAGICK_THREADS=yes
|
|
|
|
. else
|
|
|
|
_IMAGEMAGICK_THREADS_PERL_MSG=Perl is non-threaded
|
|
|
|
_IMAGEMAGICK_THREADS_IGNORE_MSG=. ${_IMAGEMAGICK_THREADS_PERL_MSG}. Reinstall Perl with threads or undefine WITH_IMAGEMAGICK_PERL
|
|
|
|
. if ${_IMAGEMAGICK_THREADS} == "yes"
|
|
|
|
IGNORE=${_IMAGEMAGICK_THREADS_IGNORE_MSG} or undefine WITH_THREADS
|
|
|
|
. endif
|
|
|
|
_IMAGEMAGICK_THREADS=no
|
|
|
|
. endif
|
2003-07-22 15:58:59 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-perl
|
2003-10-04 18:36:09 +02:00
|
|
|
PLIST_SUB+= WITH_PERL='@comment '
|
2003-07-22 15:58:59 +02:00
|
|
|
.endif
|
|
|
|
|
2010-11-22 14:47:12 +01:00
|
|
|
.if ${_IMAGEMAGICK_THREADS} == "yes"
|
2001-01-25 12:05:14 +01:00
|
|
|
CONFIGURE_ARGS+= --with-threads
|
2010-11-22 14:47:12 +01:00
|
|
|
CONFIGURE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
|
|
|
PTHREAD_LIBS="${PTHREAD_LIBS}"
|
2006-04-15 04:37:50 +02:00
|
|
|
LDFLAGS+= ${PTHREAD_LIBS}
|
2001-03-06 18:19:53 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-threads
|
2010-11-22 14:47:12 +01:00
|
|
|
_IMAGEMAGICK_THREADS=no
|
Explicitly disable support for OpenEXR and DjVu by default. These were
never dependencies before, so official packages never contained the
support, but if a local system had them installed, ImageMagick would try
to use them -- and sometimes fail.
Also add a patch, that modifies the module-searching algorithm from
/always/ checking the compiled-in constant path, to only checking it, if
an environment variable is not set. This fixes a problem with testing,
where a module installed by an earlier version of the software could be
used by the newly built version, that's being tested.
This port has too many options -- perhaps, support for the most common
things (like PNG, JPEG, and GIF) should be permanent...
2007-10-05 07:32:09 +02:00
|
|
|
.endif
|
2010-11-22 14:47:12 +01:00
|
|
|
|
|
|
|
# OpenMP
|
2012-07-23 14:56:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MOPENMP}
|
2010-11-22 14:47:12 +01:00
|
|
|
. if ${_IMAGEMAGICK_THREADS} == "no"
|
|
|
|
IGNORE=OpenMP requires threads${_IMAGEMAGICK_THREADS_IGNORE_MSG}
|
|
|
|
. else
|
|
|
|
CONFIGURE_ARGS+= --enable-openmp
|
|
|
|
. endif
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-openmp
|
2001-01-24 00:00:25 +01:00
|
|
|
.endif
|
2000-04-24 19:58:37 +02:00
|
|
|
|
2012-07-23 14:56:15 +02:00
|
|
|
.if ${PORT_OPTIONS:M16BIT_PIXEL}
|
|
|
|
PLIST_SUB+= QBIT='Q16'
|
|
|
|
.else
|
2014-01-07 00:17:04 +01:00
|
|
|
# Faster, but poor quality
|
2002-09-19 23:11:48 +02:00
|
|
|
CONFIGURE_ARGS+= --with-quantum-depth=8
|
2004-06-12 16:52:07 +02:00
|
|
|
PLIST_SUB+= QBIT='Q8'
|
2001-01-11 06:19:46 +01:00
|
|
|
.endif
|
|
|
|
|
2004-03-15 03:54:00 +01:00
|
|
|
.if defined(WITH_WINDOWS_FONT_DIR)
|
|
|
|
CONFIGURE_ARGS+= --with-windows-font-dir=${WITH_WINDOWS_FONT_DIR}
|
|
|
|
.endif
|
|
|
|
|
2001-08-09 03:22:17 +02:00
|
|
|
# Loadable coders, smaller executable, but PerlMagick not really works
|
|
|
|
# ('make test' there works)
|
2012-07-23 14:56:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MMODULES}
|
2001-03-13 23:36:26 +01:00
|
|
|
CONFIGURE_ARGS+= --with-modules
|
2003-07-22 15:58:59 +02:00
|
|
|
PLIST_SUB+= MODULES=''
|
|
|
|
.else
|
2006-07-26 17:44:03 +02:00
|
|
|
CONFIGURE_ARGS+= --without-modules
|
2003-07-22 15:58:59 +02:00
|
|
|
PLIST_SUB+= MODULES='@comment '
|
|
|
|
.endif
|
|
|
|
|
2012-07-23 14:56:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MOPENEXR}
|
2010-11-22 14:47:12 +01:00
|
|
|
. if ${_IMAGEMAGICK_THREADS} == "no"
|
|
|
|
IGNORE=OpenEXR requires threads. ${_IMAGEMAGICK_THREADS_IGNORE_MSG}
|
|
|
|
. else
|
Explicitly disable support for OpenEXR and DjVu by default. These were
never dependencies before, so official packages never contained the
support, but if a local system had them installed, ImageMagick would try
to use them -- and sometimes fail.
Also add a patch, that modifies the module-searching algorithm from
/always/ checking the compiled-in constant path, to only checking it, if
an environment variable is not set. This fixes a problem with testing,
where a module installed by an earlier version of the software could be
used by the newly built version, that's being tested.
This port has too many options -- perhaps, support for the most common
things (like PNG, JPEG, and GIF) should be permanent...
2007-10-05 07:32:09 +02:00
|
|
|
LIB_DEPENDS+= IlmImf:${PORTSDIR}/graphics/OpenEXR
|
|
|
|
PLIST_SUB+= OPENEXR=""
|
2010-11-22 14:47:12 +01:00
|
|
|
. endif
|
Explicitly disable support for OpenEXR and DjVu by default. These were
never dependencies before, so official packages never contained the
support, but if a local system had them installed, ImageMagick would try
to use them -- and sometimes fail.
Also add a patch, that modifies the module-searching algorithm from
/always/ checking the compiled-in constant path, to only checking it, if
an environment variable is not set. This fixes a problem with testing,
where a module installed by an earlier version of the software could be
used by the newly built version, that's being tested.
This port has too many options -- perhaps, support for the most common
things (like PNG, JPEG, and GIF) should be permanent...
2007-10-05 07:32:09 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-openexr
|
|
|
|
PLIST_SUB+= OPENEXR="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-07-23 14:56:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MDJVU}
|
2010-11-22 14:47:12 +01:00
|
|
|
. if ${_IMAGEMAGICK_THREADS} == "no"
|
|
|
|
IGNORE=DjVu requires threads${_IMAGEMAGICK_THREADS_IGNORE_MSG}
|
2011-07-25 16:04:37 +02:00
|
|
|
. endif
|
2012-06-13 06:49:48 +02:00
|
|
|
LIB_DEPENDS+= djvulibre:${PORTSDIR}/graphics/djvulibre
|
Explicitly disable support for OpenEXR and DjVu by default. These were
never dependencies before, so official packages never contained the
support, but if a local system had them installed, ImageMagick would try
to use them -- and sometimes fail.
Also add a patch, that modifies the module-searching algorithm from
/always/ checking the compiled-in constant path, to only checking it, if
an environment variable is not set. This fixes a problem with testing,
where a module installed by an earlier version of the software could be
used by the newly built version, that's being tested.
This port has too many options -- perhaps, support for the most common
things (like PNG, JPEG, and GIF) should be permanent...
2007-10-05 07:32:09 +02:00
|
|
|
PLIST_SUB+= DJVU=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-djvu
|
|
|
|
PLIST_SUB+= DJVU="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-07-23 14:56:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MJPEG}
|
2007-09-25 21:41:11 +02:00
|
|
|
LIB_DEPENDS+= jpeg:${PORTSDIR}/graphics/jpeg
|
2006-05-26 03:41:08 +02:00
|
|
|
PLIST_SUB+= JPEG=""
|
2003-08-16 16:56:26 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-jpeg
|
2006-05-26 03:41:08 +02:00
|
|
|
PLIST_SUB+= JPEG="@comment "
|
2003-07-22 15:58:59 +02:00
|
|
|
.endif
|
|
|
|
|
2012-07-23 14:56:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MPNG}
|
2012-06-01 07:26:28 +02:00
|
|
|
LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png
|
2006-05-26 03:41:08 +02:00
|
|
|
PLIST_SUB+= PNG=""
|
2003-07-22 15:58:59 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-png
|
2006-05-26 03:41:08 +02:00
|
|
|
PLIST_SUB+= PNG="@comment "
|
2003-07-22 15:58:59 +02:00
|
|
|
.endif
|
|
|
|
|
2012-07-23 14:56:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MTIFF}
|
2007-09-25 21:41:11 +02:00
|
|
|
LIB_DEPENDS+= tiff:${PORTSDIR}/graphics/tiff
|
2006-05-26 03:41:08 +02:00
|
|
|
PLIST_SUB+= TIFF=""
|
2001-03-13 23:36:26 +01:00
|
|
|
.else
|
2003-07-22 15:58:59 +02:00
|
|
|
CONFIGURE_ARGS+= --without-tiff
|
2006-05-26 03:41:08 +02:00
|
|
|
PLIST_SUB+= TIFF="@comment "
|
2001-03-13 23:36:26 +01:00
|
|
|
.endif
|
2000-03-10 00:36:52 +01:00
|
|
|
|
2012-07-23 14:56:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MGSLIB}
|
2007-02-23 04:48:43 +01:00
|
|
|
CONFIGURE_ARGS+= --with-gslib
|
|
|
|
USE_GHOSTSCRIPT= yes
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-gslib
|
|
|
|
.endif
|
|
|
|
|
2012-07-23 14:56:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MLQR}
|
2009-06-01 23:27:13 +02:00
|
|
|
CONFIGURE_ARGS+= --with-lqr
|
2012-12-10 09:18:07 +01:00
|
|
|
LIB_DEPENDS+= lqr-1:${PORTSDIR}/graphics/liblqr-1
|
2009-06-01 23:27:13 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-lqr
|
|
|
|
.endif
|
|
|
|
|
2012-07-23 14:56:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MFFTW}
|
2010-10-16 17:26:51 +02:00
|
|
|
CONFIGURE_ARGS+= --with-fftw
|
2011-10-17 12:08:33 +02:00
|
|
|
LIB_DEPENDS+= fftw3:${PORTSDIR}/math/fftw3
|
2010-05-12 17:07:14 +02:00
|
|
|
.else
|
2010-10-16 17:26:51 +02:00
|
|
|
CONFIGURE_ARGS+= --without-fftw
|
2010-05-12 17:07:14 +02:00
|
|
|
.endif
|
|
|
|
|
2003-07-22 15:58:59 +02:00
|
|
|
# Produce BZip compressed MIFF images
|
2012-07-23 14:56:15 +02:00
|
|
|
.if empty(PORT_OPTIONS:MBZIP2)
|
2003-07-22 15:58:59 +02:00
|
|
|
CONFIGURE_ARGS+= --without-bzlib
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# FPX (FlashPIX) images
|
2012-07-23 14:56:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MFPX}
|
2007-11-07 06:46:29 +01:00
|
|
|
LIB_DEPENDS+= fpx.[2-9]:${PORTSDIR}/graphics/libfpx
|
2005-02-17 16:39:00 +01:00
|
|
|
CONFIGURE_ARGS+= --with-fpx
|
2006-05-26 03:41:08 +02:00
|
|
|
PLIST_SUB+= FPX=""
|
|
|
|
.else
|
2007-09-25 21:41:11 +02:00
|
|
|
CONFIGURE_ARGS+= --without-fpx
|
2006-05-26 03:41:08 +02:00
|
|
|
PLIST_SUB+= FPX="@comment "
|
2003-07-22 15:58:59 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# JBIG images (lossless compression for bi-level images)
|
2012-07-23 14:56:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MJBIG}
|
2007-09-25 21:41:11 +02:00
|
|
|
LIB_DEPENDS+= jbig:${PORTSDIR}/graphics/jbigkit
|
2006-05-26 03:41:08 +02:00
|
|
|
PLIST_SUB+= JBIG=""
|
2003-07-22 15:58:59 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-jbig
|
2006-05-26 03:41:08 +02:00
|
|
|
PLIST_SUB+= JBIG="@comment "
|
2003-07-22 15:58:59 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# JPEG2000 images (wavelet-based lossy compression)
|
2012-07-23 14:56:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MJASPER}
|
2007-09-25 21:41:11 +02:00
|
|
|
LIB_DEPENDS+= jasper:${PORTSDIR}/graphics/jasper
|
2006-05-26 03:41:08 +02:00
|
|
|
PLIST_SUB+= JPEG2000=""
|
2003-07-22 15:58:59 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-jp2
|
2006-05-26 03:41:08 +02:00
|
|
|
PLIST_SUB+= JPEG2000="@comment "
|
2003-07-22 15:58:59 +02:00
|
|
|
.endif
|
|
|
|
|
2004-05-22 14:09:47 +02:00
|
|
|
# GraphViz dot graphs
|
2012-07-23 14:56:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MGRAPHVIZ}
|
2007-08-07 18:38:36 +02:00
|
|
|
LIB_DEPENDS+= gvc:${PORTSDIR}/graphics/graphviz
|
2007-03-29 22:57:15 +02:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include/graphviz
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib/graphviz
|
2004-05-22 14:09:47 +02:00
|
|
|
.else
|
2008-04-29 17:07:50 +02:00
|
|
|
CONFIGURE_ARGS+= --without-gvc
|
2004-05-22 14:09:47 +02:00
|
|
|
.endif
|
|
|
|
|
2011-03-09 14:58:31 +01:00
|
|
|
# LZMA support
|
2014-01-12 23:53:59 +01:00
|
|
|
.if ! ${PORT_OPTIONS:MLZMA}
|
2011-03-09 14:58:31 +01:00
|
|
|
CONFIGURE_ARGS+= --without-lzma
|
|
|
|
.endif
|
|
|
|
|
2011-10-11 21:34:04 +02:00
|
|
|
# LCMS (Little CMS) color management version 2 and 1 (mutually exclusive)
|
2012-07-23 14:56:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MLCMS2}
|
2011-10-11 21:34:04 +02:00
|
|
|
LIB_DEPENDS+= lcms2:${PORTSDIR}/graphics/lcms2
|
2003-07-22 15:58:59 +02:00
|
|
|
.else
|
2011-10-11 21:34:04 +02:00
|
|
|
CONFIGURE_ARGS+= --without-lcms2
|
2003-07-22 15:58:59 +02:00
|
|
|
.endif
|
|
|
|
|
2006-05-26 03:41:08 +02:00
|
|
|
# Freetype (TrueType Font) support
|
2012-07-23 14:56:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MFREETYPE}
|
2007-09-25 21:41:11 +02:00
|
|
|
LIB_DEPENDS+= freetype:${PORTSDIR}/print/freetype2
|
2004-01-20 17:30:09 +01:00
|
|
|
USE_GHOSTSCRIPT= yes
|
2006-05-26 03:41:08 +02:00
|
|
|
CONFIGURE_ARGS+= --with-freetype
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-freetype
|
|
|
|
.endif
|
|
|
|
|
2011-10-11 21:34:04 +02:00
|
|
|
# Webp support
|
2012-07-23 14:56:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MWEBP}
|
2011-10-11 21:34:04 +02:00
|
|
|
LIB_DEPENDS+= webp:${PORTSDIR}/graphics/webp
|
|
|
|
CONFIGURE_ARGS+= --with-webp
|
|
|
|
PLIST_SUB+= WEBP=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-webp
|
|
|
|
PLIST_SUB+= WEBP="@comment "
|
|
|
|
.endif
|
|
|
|
|
2006-05-26 03:41:08 +02:00
|
|
|
# Fontconfig support
|
2012-07-23 14:56:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MFONTCONFIG}
|
2007-09-25 21:41:11 +02:00
|
|
|
LIB_DEPENDS+= fontconfig:${PORTSDIR}/x11-fonts/fontconfig
|
2006-05-26 03:41:08 +02:00
|
|
|
CONFIGURE_ARGS+= --with-fontconfig
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
CONFIGURE_ENV+= FONTCONFIG_CFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
FONTCONFIG_LIBS="-L${LOCALBASE}/lib"
|
|
|
|
MAKE_ENV+= FONTCONFIG_CFLAGS="-I${LOCALBASE}/include"
|
2003-07-22 15:58:59 +02:00
|
|
|
.else
|
2006-05-26 03:41:08 +02:00
|
|
|
CONFIGURE_ARGS+= --without-fontconfig
|
2003-07-22 15:58:59 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# WMF (Windows Meta File) images
|
2012-07-23 14:56:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MWMF}
|
2011-10-11 21:34:04 +02:00
|
|
|
. if !defined(WITHOUT_X11)
|
2007-09-25 21:41:11 +02:00
|
|
|
LIB_DEPENDS+= wmf:${PORTSDIR}/graphics/libwmf
|
2011-10-11 21:34:04 +02:00
|
|
|
. else
|
|
|
|
LIB_DEPENDS+= wmf:${PORTSDIR}/graphics/libwmf-nox11
|
|
|
|
. endif
|
2005-03-06 23:16:12 +01:00
|
|
|
CONFIGURE_ARGS+= --with-wmf=yes
|
2011-01-10 10:08:07 +01:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include/freetype2
|
2008-12-31 15:02:35 +01:00
|
|
|
PLIST_SUB+= WMF=""
|
2003-07-22 15:58:59 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-wmf
|
2008-12-31 15:02:35 +01:00
|
|
|
PLIST_SUB+= WMF="@comment "
|
2003-07-22 15:58:59 +02:00
|
|
|
.endif
|
|
|
|
|
2011-01-22 00:51:11 +01:00
|
|
|
# SVG (Scalable Vector Graphics) requires both libxml2 and X11
|
2012-07-23 14:56:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MSVG} && !defined(WITHOUT_X11)
|
2011-01-22 00:51:11 +01:00
|
|
|
USE_GNOME+= libxml2
|
2007-09-25 21:41:11 +02:00
|
|
|
LIB_DEPENDS+= rsvg-2:${PORTSDIR}/graphics/librsvg2
|
2011-01-22 00:51:11 +01:00
|
|
|
CONFIGURE_ARGS+= --with-rsvg --with-xml
|
2011-08-31 16:40:49 +02:00
|
|
|
CONFIGURE_ENV+= RSVG_CFLAGS="-I${LOCALBASE}/include/librsvg-2.0" \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
RSVG_LIBS="-L${LOCALBASE}/lib"
|
2006-05-26 03:41:08 +02:00
|
|
|
.else
|
2011-01-22 00:51:11 +01:00
|
|
|
CONFIGURE_ARGS+= --without-rsvg --without-xml
|
2003-07-22 15:58:59 +02:00
|
|
|
.endif
|
|
|
|
|
2011-11-06 19:01:46 +01:00
|
|
|
# Pango support
|
2012-07-23 14:56:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MPANGO} && !defined(WITHOUT_X11)
|
2012-12-10 09:18:07 +01:00
|
|
|
LIB_DEPENDS+= pangocairo-1\.0:${PORTSDIR}/x11-toolkits/pango
|
2012-05-16 10:48:59 +02:00
|
|
|
PLIST_SUB+= PANGO=""
|
2011-11-06 19:01:46 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-pango
|
2012-05-16 10:48:59 +02:00
|
|
|
PLIST_SUB+= PANGO="@comment "
|
2011-11-06 19:01:46 +01:00
|
|
|
.endif
|
|
|
|
|
2003-07-22 15:58:59 +02:00
|
|
|
# PDF (Adobe Portable Document Format) support
|
2012-07-23 14:56:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MPDF}
|
2004-01-20 17:30:09 +01:00
|
|
|
USE_GHOSTSCRIPT= yes
|
2003-07-22 15:58:59 +02:00
|
|
|
.endif
|
|
|
|
|
2001-06-05 13:38:35 +02:00
|
|
|
.if defined(WITHOUT_X11)
|
2008-04-29 17:07:50 +02:00
|
|
|
CONFIGURE_ARGS+= --without-x
|
2011-10-11 21:34:04 +02:00
|
|
|
CONFLICTS+= ImageMagick-6*
|
2003-07-22 15:58:59 +02:00
|
|
|
PLIST_SUB+= X11='@comment '
|
2013-10-04 11:32:54 +02:00
|
|
|
PKGNAMESUFFIX= -nox11
|
2003-07-22 15:58:59 +02:00
|
|
|
.else
|
2011-10-11 21:34:04 +02:00
|
|
|
CONFLICTS+= ImageMagick-nox11-6*
|
2006-09-04 20:36:59 +02:00
|
|
|
CONFLICTS+= display-[0-9]*
|
2003-07-22 15:58:59 +02:00
|
|
|
CONFIGURE_ARGS+= --with-x
|
2007-09-23 13:31:36 +02:00
|
|
|
USE_XORG= xext xt
|
2003-07-22 15:58:59 +02:00
|
|
|
PLIST_SUB+= X11=''
|
2001-03-08 02:06:35 +01:00
|
|
|
.endif
|
|
|
|
|
2012-07-23 14:56:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2012-01-10 10:35:03 +01:00
|
|
|
INSTALL_TARGET= install install-docDATA install-data-html
|
2012-07-23 14:56:15 +02:00
|
|
|
.else
|
|
|
|
INSTALL_TARGET= install
|
2002-03-07 03:40:05 +01:00
|
|
|
.endif
|
|
|
|
|
2011-10-11 21:34:04 +02:00
|
|
|
# Test suite, requires installed ghostscript to pass
|
|
|
|
|
2012-07-23 14:56:15 +02:00
|
|
|
.if defined(PACKAGE_BUILDING) || ${PORT_OPTIONS:MTESTS}
|
2011-10-11 21:34:04 +02:00
|
|
|
USE_GHOSTSCRIPT_BUILD=yes
|
2009-03-18 05:57:45 +01:00
|
|
|
.endif
|
|
|
|
|
2002-06-24 17:17:16 +02:00
|
|
|
post-patch:
|
2007-10-28 21:38:40 +01:00
|
|
|
# prevent perllocal.pod from being written
|
2012-01-10 10:35:03 +01:00
|
|
|
@${REINPLACE_CMD} -e '/PERL/s|install && \\$$|pure_install \&\& \\|' \
|
|
|
|
-e 's/install-docDATA install-filters/install-filters/' \
|
|
|
|
${WRKSRC}/Makefile.in
|
2004-02-17 21:25:11 +01:00
|
|
|
# remove the autogenerated Magick.c so it will be regenerated from
|
|
|
|
# Magick.xs on _this_ system:
|
|
|
|
@${RM} -f ${WRKSRC}/PerlMagick/Magick.c
|
2004-12-17 19:27:58 +01:00
|
|
|
@${PERL} -pi -e 's|^tagnames=|#tagnames=|g ; \
|
2002-08-31 18:53:12 +02:00
|
|
|
s|lcms/lcms.h|lcms.h|g ; \
|
2003-10-05 13:21:58 +02:00
|
|
|
s|lcms_lcms_h|lcms_h|g' ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
2002-10-30 00:05:45 +01:00
|
|
|
# version neither libraries nor directories
|
2002-10-17 20:46:12 +02:00
|
|
|
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${PERL} -pi -e \
|
2002-08-31 18:53:12 +02:00
|
|
|
's|pkgdocdir =.*$$|pkgdocdir = ${DOCSDIR}/|g ; \
|
2002-10-30 00:05:45 +01:00
|
|
|
s|-\$$\(VERSION\)||; \
|
2002-03-07 03:40:05 +01:00
|
|
|
s| install-data-html||g'
|
2002-10-30 00:05:45 +01:00
|
|
|
# do not version lib directories
|
|
|
|
@${PERL} -pi -e 's|^(MagickLibSubdir).*$$|\1="ImageMagick"|' \
|
|
|
|
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
2002-10-17 20:46:12 +02:00
|
|
|
@${PERL} -pi -e 's|lcms/lcms.h|lcms.h|g' ${WRKSRC}/magick/transform.c
|
2012-12-10 09:18:07 +01:00
|
|
|
# @${PERL} -pi -e 's|<malloc.h>|<stdlib.h>|g' ${WRKSRC}/ltdl/ltdl.c
|
2002-10-17 20:46:12 +02:00
|
|
|
@${PERL} -pi -e 's|timestamp: %ld|timestamp: %d|g' \
|
2002-03-03 02:10:06 +01:00
|
|
|
${WRKSRC}/magick/xwindow.c
|
2010-11-22 14:47:12 +01:00
|
|
|
.if ${_IMAGEMAGICK_THREADS} == "yes"
|
2006-04-15 04:37:50 +02:00
|
|
|
. for i in Magick++/lib/ImageMagick++.pc.in wand/Wand.pc.in magick/ImageMagick.pc.in
|
|
|
|
@${PERL} -pi -e 's|^(Libs.+)$$|\1 ${PTHREAD_LIBS}|; \
|
|
|
|
s|^(Cflags.+)$$|\1 ${PTHREAD_CFLAGS}|' \
|
|
|
|
${WRKSRC}/${i}
|
|
|
|
. endfor
|
|
|
|
.endif
|
|
|
|
# deprecated gvCleanup
|
|
|
|
@${REINPLACE_CMD} -e "s|gvCleanup|gvFreeContext|g" \
|
|
|
|
${WRKSRC}/coders/dot.c
|
2014-02-02 23:44:22 +01:00
|
|
|
# freetype headers are in freetype2/ nowadays
|
|
|
|
@${REINPLACE_CMD} -e "s|freetype/|freetype2/|g" \
|
|
|
|
${WRKSRC}/configure \
|
|
|
|
${WRKSRC}/coders/ttf.c \
|
|
|
|
${WRKSRC}/magick/annotate.c \
|
|
|
|
${WRKSRC}/www/api/MagickCore/annotate_8c.html
|
2001-03-06 18:19:53 +01:00
|
|
|
|
2008-10-13 13:42:22 +02:00
|
|
|
pre-configure:
|
2010-11-22 14:47:12 +01:00
|
|
|
.if defined(_IMAGEMAGICK_THREADS_PERL_MSG)
|
|
|
|
@${ECHO_CMD} '###################################################################'
|
|
|
|
@${ECHO_CMD} NOTICE: ${_IMAGEMAGICK_THREADS_PERL_MSG}. Building ImageMagick ${_IMAGEMAGICK_THREADS_MSG}.
|
|
|
|
@${ECHO_CMD} '###################################################################'
|
2008-11-13 13:49:20 +01:00
|
|
|
.endif
|
2011-10-11 21:34:04 +02:00
|
|
|
|
2012-07-23 14:56:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MSVG} && defined(WITHOUT_X11)
|
2011-03-10 23:47:17 +01:00
|
|
|
@${ECHO_CMD} NOTICE: SVG format support disabled, requires X11
|
2011-03-09 14:58:31 +01:00
|
|
|
.endif
|
2008-10-13 13:42:22 +02:00
|
|
|
|
2012-09-11 03:14:52 +02:00
|
|
|
post-install: test
|
2012-07-23 14:56:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MPERL}
|
2014-01-14 04:23:01 +01:00
|
|
|
@${RM} -f ${STAGEDIR}${PREFIX}/lib/perl5/${PERL_VER}/mach/perllocal.pod
|
|
|
|
${REINPLACE_CMD} -i '' -e 's}^${STAGEDIR}}}' ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/auto/Image/Magick/.packlist
|
2010-05-21 17:01:19 +02:00
|
|
|
.endif
|
2012-07-23 14:56:15 +02:00
|
|
|
.if ${PORT_OPTIONS:MMODULES}
|
|
|
|
. if ${PORT_OPTIONS:M16BIT_PIXEL}
|
2014-01-14 04:23:01 +01:00
|
|
|
@${TOUCH} ${STAGEDIR}${PREFIX}/lib/ImageMagick-${PORTVERSION:R}/modules-Q16/coders/.keep
|
|
|
|
@${TOUCH} ${STAGEDIR}${PREFIX}/lib/ImageMagick-${PORTVERSION:R}/modules-Q16/filters/.keep
|
2012-07-23 14:56:15 +02:00
|
|
|
. else
|
2014-01-14 04:23:01 +01:00
|
|
|
@${TOUCH} ${STAGEDIR}${PREFIX}/lib/ImageMagick-${PORTVERSION:R}/modules-Q8/coders/.keep
|
|
|
|
@${TOUCH} ${STAGEDIR}${PREFIX}/lib/ImageMagick-${PORTVERSION:R}/modules-Q8/filters/.keep
|
2012-05-26 00:13:11 +02:00
|
|
|
. endif
|
2004-05-31 23:24:33 +02:00
|
|
|
.endif
|
|
|
|
|
2007-09-25 21:41:11 +02:00
|
|
|
test check:
|
2012-12-10 09:18:07 +01:00
|
|
|
.if (${PORT_OPTIONS:MTESTS} || defined(PACKAGE_BUILDING))
|
2012-09-11 03:14:52 +02:00
|
|
|
-cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} limits -m 20m ${MAKE} check
|
2007-09-25 21:41:11 +02:00
|
|
|
.endif
|
|
|
|
|
2006-11-28 19:30:40 +01:00
|
|
|
.include <bsd.port.post.mk>
|