2013-09-20 20:35:44 +02:00
|
|
|
# Created by: Ron van Daal
|
2005-07-27 04:09:05 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= GraphicsMagick
|
2010-02-17 23:02:43 +01:00
|
|
|
PORTVERSION= 1.2.10
|
2012-09-25 22:38:03 +02:00
|
|
|
PORTREVISION= 3
|
2005-07-27 04:09:05 +02:00
|
|
|
CATEGORIES= graphics
|
2008-11-20 23:38:40 +01:00
|
|
|
MASTER_SITES= SF \
|
2009-08-10 23:06:42 +02:00
|
|
|
ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/1.2/
|
2009-12-30 23:31:28 +01:00
|
|
|
PORTSCOUT= limit:^1\.2\.
|
2013-10-31 12:06:16 +01:00
|
|
|
PKGNAMESUFFIX= 12
|
2009-08-22 02:23:13 +02:00
|
|
|
|
2008-07-18 23:05:20 +02:00
|
|
|
MAINTAINER= glarkin@FreeBSD.org
|
2005-07-27 04:09:05 +02:00
|
|
|
COMMENT= Fast image processing tools based on ImageMagick
|
|
|
|
|
2013-10-31 12:06:16 +01:00
|
|
|
CONFLICTS= GraphicsMagick-1.[13].* GraphicsMagick13-*
|
2008-09-02 19:16:41 +02:00
|
|
|
|
2005-07-27 04:09:05 +02:00
|
|
|
LIB_DEPENDS= freetype:${PORTSDIR}/print/freetype2 \
|
2012-06-01 07:26:28 +02:00
|
|
|
png15:${PORTSDIR}/graphics/png \
|
2005-07-27 04:09:05 +02:00
|
|
|
jbig:${PORTSDIR}/graphics/jbigkit \
|
2010-12-08 20:58:49 +01:00
|
|
|
xml2:${PORTSDIR}/textproc/libxml2
|
2012-06-01 07:26:28 +02:00
|
|
|
OTHERGRAPHICS= jasper jpeg lcms tiff
|
2005-07-27 04:09:05 +02:00
|
|
|
LIB_DEPENDS+= ${OTHERGRAPHICS:C|(.+)|\1:${PORTSDIR}/graphics/\1|}
|
2012-09-25 22:38:03 +02:00
|
|
|
|
|
|
|
OPTIONS_DEFINE= Q8BIT FPX OPENMP SSE TESTS X11 DOCS
|
|
|
|
|
|
|
|
Q8BIT_DESC= Use 8-bit pixels (speed) instead of 16 (quality)
|
|
|
|
DPS_DESC= Enable Display Ghostscript support
|
|
|
|
NODPS_DESC= Disable Display Ghostscript support
|
|
|
|
TESTS_DESC= Run bundled self-tests after build
|
|
|
|
|
|
|
|
OPTIONS_DEFAULT=FPX DPS OPENMP X11 TESTS DOCS
|
|
|
|
OPTIONS_SINGLE= X11
|
|
|
|
OPTIONS_SINGLE_X11= DPS NODPS
|
2005-07-27 04:09:05 +02:00
|
|
|
|
2013-04-27 13:59:28 +02:00
|
|
|
USES= iconv
|
2010-12-08 20:58:49 +01:00
|
|
|
USE_AUTOTOOLS= libtool libltdl
|
2005-07-27 04:09:05 +02:00
|
|
|
USE_BZIP2= yes
|
2005-07-29 15:57:33 +02:00
|
|
|
USE_GHOSTSCRIPT=yes
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2005-07-27 04:09:05 +02:00
|
|
|
|
|
|
|
MAN1= GraphicsMagick++-config.1 \
|
|
|
|
GraphicsMagick-config.1 \
|
|
|
|
GraphicsMagickWand-config.1 \
|
|
|
|
gm.1
|
|
|
|
MAN4= miff.4
|
|
|
|
MAN5= quantize.5
|
|
|
|
|
2008-11-20 23:38:40 +01:00
|
|
|
CONFIGURE_ARGS= --without-perl --enable-shared --enable-static \
|
|
|
|
--with-ltdl-include=${LOCALBASE}/include \
|
|
|
|
--with-ltdl-lib=${LOCALBASE}/lib
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
|
|
|
ALL_TARGET= -j`${SYSCTL} -n hw.ncpu`
|
|
|
|
|
2010-03-28 17:30:42 +02:00
|
|
|
CFLAGS+= -DPNG_DEPSTRUCT=
|
2012-06-01 07:26:28 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/libpng15
|
2011-09-24 00:26:39 +02:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2008-11-20 23:38:40 +01:00
|
|
|
|
2013-09-20 20:35:44 +02:00
|
|
|
NO_STAGE= yes
|
2008-11-20 23:38:40 +01:00
|
|
|
test check:
|
|
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check
|
|
|
|
|
2012-09-25 22:38:03 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2008-11-20 23:38:40 +01:00
|
|
|
|
2012-09-25 22:38:03 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS} == ""
|
2008-11-20 23:38:40 +01:00
|
|
|
# Get rid of the Makefile targets that install the documentation
|
|
|
|
# and HTML files into DOCSDIR
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-Makefile.in
|
|
|
|
.endif
|
|
|
|
|
2012-09-25 22:38:03 +02:00
|
|
|
.if ${PORT_OPTIONS:MSSE}
|
2008-09-02 19:16:41 +02:00
|
|
|
.if ${MACHINE_CPU:Msse}
|
|
|
|
CFLAGS+= -msse
|
|
|
|
.endif
|
|
|
|
.if ${MACHINE_CPU:Msse2}
|
|
|
|
CFLAGS+= -msse2
|
|
|
|
.endif
|
|
|
|
.if ${MACHINE_CPU:Msse3}
|
|
|
|
CFLAGS+= -msse3
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2012-09-25 22:38:03 +02:00
|
|
|
.if ${PORT_OPTIONS:MFPX}
|
2008-11-20 23:38:40 +01:00
|
|
|
LIB_DEPENDS+= fpx.[2-9]:${PORTSDIR}/graphics/libfpx
|
|
|
|
CONFIGURE_ARGS+= --with-fpx
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-fpx
|
|
|
|
.endif
|
|
|
|
|
2012-09-25 22:38:03 +02:00
|
|
|
.if ${PORT_OPTIONS:MDPS}
|
2008-11-20 23:38:40 +01:00
|
|
|
LIB_DEPENDS+= dps:${PORTSDIR}/x11/dgs
|
|
|
|
CONFIGURE_ARGS+= --with-dps
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-dps
|
|
|
|
.endif
|
|
|
|
|
2012-09-25 22:38:03 +02:00
|
|
|
.if ${PORT_OPTIONS:MOPENMP}
|
2008-09-02 19:16:41 +02:00
|
|
|
.if ${OSVERSION} < 700042
|
2008-11-20 23:38:40 +01:00
|
|
|
IGNORE= does not support OpenMP on FreeBSD version ${OSVERSION}
|
2008-09-02 19:16:41 +02:00
|
|
|
.endif
|
|
|
|
|
2011-09-24 00:26:39 +02:00
|
|
|
LDFLAGS+= ${PTHREAD_LIBS}
|
2008-11-20 23:38:40 +01:00
|
|
|
CONFIGURE_ARGS+= --with-threads --enable-openmp
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-threads --disable-openmp
|
2008-09-02 19:16:41 +02:00
|
|
|
.endif
|
|
|
|
|
2005-07-27 04:09:05 +02:00
|
|
|
.ifndef WINDOWS_FONT_DIR
|
|
|
|
# Use fonts installed by x11-fonts/webfonts by default
|
- 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
|
|
|
WINDOWS_FONT_DIR=${LOCALBASE}/lib/X11/fonts/webfonts
|
2005-07-27 04:09:05 +02:00
|
|
|
.endif
|
|
|
|
|
2008-09-02 19:16:41 +02:00
|
|
|
.if defined(WITH_WINDOWS_FONT_DIR)
|
|
|
|
CONFIGURE_ARGS+= --with-windows-font-dir="${WINDOWS_FONT_DIR}"
|
|
|
|
.endif
|
2005-07-27 04:09:05 +02:00
|
|
|
|
2012-09-25 22:38:03 +02:00
|
|
|
.if ${PORT_OPTIONS:MX11} == ""
|
2005-07-27 04:09:05 +02:00
|
|
|
CONFIGURE_ARGS+=--without-x
|
2012-09-25 22:38:03 +02:00
|
|
|
LIB_DEPENDS+= wmflite:${PORTSDIR}/graphics/libwmf-nox11
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= wmflite:${PORTSDIR}/graphics/libwmf
|
2005-07-27 04:09:05 +02:00
|
|
|
.endif
|
|
|
|
|
2012-09-25 22:38:03 +02:00
|
|
|
.if ${PORT_OPTIONS:MQ8BIT}
|
2005-07-27 04:09:05 +02:00
|
|
|
CONFIGURE_ARGS+= --with-quantum-depth=8
|
|
|
|
PLIST_SUB+= Q=8
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-quantum-depth=16
|
|
|
|
PLIST_SUB+= Q=16
|
|
|
|
.endif
|
|
|
|
|
2012-09-25 22:38:03 +02:00
|
|
|
.if ${PORT_OPTIONS:MTESTS}
|
2007-11-02 15:50:52 +01:00
|
|
|
post-build:: test
|
|
|
|
.else
|
|
|
|
post-build::
|
|
|
|
#
|
|
|
|
# You are strongly advised to run ``make test'' now
|
|
|
|
# and report any failures to ${MAINTAINER}.
|
|
|
|
#
|
|
|
|
.endif
|
|
|
|
|
2012-09-25 22:38:03 +02:00
|
|
|
.include <bsd.port.mk>
|