2005-07-27 02:09:05 +00:00
|
|
|
# New ports collection makefile for: GraphicsMagick
|
|
|
|
# Date created: 25 july 2005
|
|
|
|
# Whom: Ron van Daal
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= GraphicsMagick
|
2010-03-12 15:41:52 +00:00
|
|
|
PORTVERSION= 1.3.12
|
2010-03-28 06:47:48 +00:00
|
|
|
PORTREVISION= 1
|
2005-07-27 02:09:05 +00:00
|
|
|
CATEGORIES= graphics
|
2009-09-25 23:17:26 +00:00
|
|
|
MASTER_SITES= SF \
|
2009-08-11 15:25:18 +00:00
|
|
|
ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/1.3/
|
2009-08-12 23:56:40 +00:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME:L}/${PORTNAME:L}/${PORTVERSION}
|
2009-12-30 22:31:28 +00:00
|
|
|
PORTSCOUT= limit:^1\.3\.
|
2005-07-27 02:09:05 +00:00
|
|
|
|
2008-07-18 21:05:20 +00:00
|
|
|
MAINTAINER= glarkin@FreeBSD.org
|
2005-07-27 02:09:05 +00:00
|
|
|
COMMENT= Fast image processing tools based on ImageMagick
|
|
|
|
|
2008-11-20 22:41:04 +00:00
|
|
|
CONFLICTS= GraphicsMagick-1.[12].*
|
2008-09-02 17:16:41 +00:00
|
|
|
|
2005-07-27 02:09:05 +00:00
|
|
|
LIB_DEPENDS= freetype:${PORTSDIR}/print/freetype2 \
|
|
|
|
jbig:${PORTSDIR}/graphics/jbigkit \
|
2007-11-02 14:50:52 +00:00
|
|
|
wmflite:${PORTSDIR}/graphics/libwmf \
|
2010-12-08 19:58:49 +00:00
|
|
|
xml2:${PORTSDIR}/textproc/libxml2
|
2005-07-27 02:09:05 +00:00
|
|
|
OTHERGRAPHICS= jasper jpeg lcms png tiff
|
|
|
|
LIB_DEPENDS+= ${OTHERGRAPHICS:C|(.+)|\1:${PORTSDIR}/graphics/\1|}
|
2008-11-20 22:41:04 +00:00
|
|
|
|
2008-09-02 17:16:41 +00:00
|
|
|
OPTIONS= Q8BIT "Use 8-bit pixels (speed) instead of 16 (quality)" off \
|
2008-11-20 22:41:04 +00:00
|
|
|
FPX "Enable FlashPIX support" on \
|
|
|
|
DPS "Enable Display Ghostscript support" on \
|
|
|
|
OPENMP "Enable OpenMP support" on \
|
2008-09-02 17:16:41 +00:00
|
|
|
SSE "Enable SSE opcodes on supported CPUs" off \
|
2009-11-15 18:54:23 +00:00
|
|
|
X11 "Enable X11 support" on \
|
2008-09-02 17:16:41 +00:00
|
|
|
TESTS "Run bundled self-tests after build" on
|
2005-07-27 02:09:05 +00:00
|
|
|
|
2007-11-02 14:50:52 +00:00
|
|
|
USE_ICONV= yes
|
2010-12-08 19:58:49 +00:00
|
|
|
USE_AUTOTOOLS= libtool libltdl
|
2005-07-27 02:09:05 +00:00
|
|
|
USE_BZIP2= yes
|
2005-07-29 13:57:33 +00:00
|
|
|
USE_GHOSTSCRIPT=yes
|
2006-02-23 10:40:44 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2008-11-20 22:41:04 +00:00
|
|
|
LATEST_LINK= GraphicsMagick13
|
2005-07-27 02:09:05 +00:00
|
|
|
|
|
|
|
MAN1= GraphicsMagick++-config.1 \
|
|
|
|
GraphicsMagick-config.1 \
|
|
|
|
GraphicsMagickWand-config.1 \
|
|
|
|
gm.1
|
|
|
|
MAN4= miff.4
|
|
|
|
MAN5= quantize.5
|
|
|
|
|
2008-11-20 22:41:04 +00: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`
|
|
|
|
|
2011-09-23 22:26:39 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2008-11-20 22:41:04 +00:00
|
|
|
|
|
|
|
test check:
|
|
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
# Get rid of the Makefile targets that install the documentation
|
|
|
|
# and HTML files into DOCSDIR
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-Makefile.in
|
|
|
|
.endif
|
|
|
|
|
2008-09-02 17:16:41 +00:00
|
|
|
.if defined(WITH_SSE)
|
|
|
|
.if ${MACHINE_CPU:Msse}
|
|
|
|
CFLAGS+= -msse
|
|
|
|
.endif
|
|
|
|
.if ${MACHINE_CPU:Msse2}
|
|
|
|
CFLAGS+= -msse2
|
|
|
|
.endif
|
|
|
|
.if ${MACHINE_CPU:Msse3}
|
|
|
|
CFLAGS+= -msse3
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2008-11-20 22:41:04 +00:00
|
|
|
.if defined(WITH_FPX)
|
|
|
|
LIB_DEPENDS+= fpx.[2-9]:${PORTSDIR}/graphics/libfpx
|
|
|
|
CONFIGURE_ARGS+= --with-fpx
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-fpx
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_DPS)
|
|
|
|
LIB_DEPENDS+= dps:${PORTSDIR}/x11/dgs
|
|
|
|
CONFIGURE_ARGS+= --with-dps
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-dps
|
|
|
|
.endif
|
|
|
|
|
2008-09-02 17:16:41 +00:00
|
|
|
.if defined(WITH_OPENMP)
|
|
|
|
.if ${OSVERSION} < 700042
|
2008-11-20 22:41:04 +00:00
|
|
|
IGNORE= does not support OpenMP on FreeBSD version ${OSVERSION}
|
2008-09-02 17:16:41 +00:00
|
|
|
.endif
|
|
|
|
|
2011-09-23 22:26:39 +00:00
|
|
|
LDFLAGS+= ${PTHREAD_LIBS}
|
2008-11-20 22:41:04 +00:00
|
|
|
CONFIGURE_ARGS+= --with-threads --enable-openmp --disable-openmp-slow
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-threads --disable-openmp
|
2008-09-02 17:16:41 +00:00
|
|
|
.endif
|
|
|
|
|
2005-07-27 02:09:05 +00: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 17:56:05 +00:00
|
|
|
WINDOWS_FONT_DIR=${LOCALBASE}/lib/X11/fonts/webfonts
|
2005-07-27 02:09:05 +00:00
|
|
|
.endif
|
|
|
|
|
2008-09-02 17:16:41 +00:00
|
|
|
.if defined(WITH_WINDOWS_FONT_DIR)
|
|
|
|
CONFIGURE_ARGS+= --with-windows-font-dir="${WINDOWS_FONT_DIR}"
|
|
|
|
.endif
|
2005-07-27 02:09:05 +00:00
|
|
|
|
2009-11-15 18:54:23 +00:00
|
|
|
.if !defined(WITH_X11)
|
2005-07-27 02:09:05 +00:00
|
|
|
PKGNAMESUFFIX+= -nox11
|
|
|
|
CONFIGURE_ARGS+=--without-x
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_Q8BIT) || defined(WITHOUT_GRAPHICSMAGICK_16BIT_PIXEL)
|
|
|
|
CONFIGURE_ARGS+= --with-quantum-depth=8
|
|
|
|
PLIST_SUB+= Q=8
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-quantum-depth=16
|
|
|
|
PLIST_SUB+= Q=16
|
|
|
|
.endif
|
|
|
|
|
2007-11-02 14:50:52 +00:00
|
|
|
.if !defined(WITHOUT_TESTS)
|
|
|
|
post-build:: test
|
|
|
|
.else
|
|
|
|
post-build::
|
|
|
|
#
|
|
|
|
# You are strongly advised to run ``make test'' now
|
|
|
|
# and report any failures to ${MAINTAINER}.
|
|
|
|
#
|
|
|
|
.endif
|
|
|
|
|
2005-07-27 02:09:05 +00:00
|
|
|
.include <bsd.port.post.mk>
|