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
|
2008-09-02 17:16:41 +00:00
|
|
|
PORTVERSION= 1.2.5
|
2005-07-27 02:09:05 +00:00
|
|
|
CATEGORIES= graphics
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
|
|
|
|
ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME:L}
|
|
|
|
|
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-09-02 17:16:41 +00:00
|
|
|
CONFLICTS= GraphicsMagick-1.1.*
|
|
|
|
|
2005-07-27 02:09:05 +00:00
|
|
|
LIB_DEPENDS= freetype:${PORTSDIR}/print/freetype2 \
|
2007-11-02 14:50:52 +00:00
|
|
|
fpx.[2-9]:${PORTSDIR}/graphics/libfpx \
|
2005-07-27 02:09:05 +00:00
|
|
|
jbig:${PORTSDIR}/graphics/jbigkit \
|
2007-11-02 14:50:52 +00:00
|
|
|
wmflite:${PORTSDIR}/graphics/libwmf \
|
2008-09-02 17:16:41 +00:00
|
|
|
xml2:${PORTSDIR}/textproc/libxml2 \
|
|
|
|
ltdl:${PORTSDIR}/devel/libltdl15
|
2005-07-27 02:09:05 +00:00
|
|
|
OTHERGRAPHICS= jasper jpeg lcms png tiff
|
|
|
|
LIB_DEPENDS+= ${OTHERGRAPHICS:C|(.+)|\1:${PORTSDIR}/graphics/\1|}
|
2008-09-02 17:16:41 +00:00
|
|
|
OPTIONS= Q8BIT "Use 8-bit pixels (speed) instead of 16 (quality)" off \
|
|
|
|
OPENMP "Enable OpenMP support (requires GCC 4.2+)" off \
|
|
|
|
SSE "Enable SSE opcodes on supported CPUs" off \
|
|
|
|
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
|
2007-02-10 06:05:06 +00:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
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-09-02 17:16:41 +00:00
|
|
|
LATEST_LINK= GraphicsMagick12
|
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-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
|
|
|
|
|
|
|
|
.if defined(WITH_OPENMP)
|
|
|
|
# Later versions of FreeBSD 7.0 already have GCC 4.2
|
|
|
|
.if ${OSVERSION} < 700042
|
|
|
|
USE_GCC= 4.2+
|
|
|
|
.endif
|
|
|
|
|
|
|
|
CONFIGURE_ENV+= LDFLAGS=${PTHREAD_LIBS}
|
|
|
|
CONFIGURE_ARGS+= --enable-openmp
|
|
|
|
.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
|
|
|
|
|
2007-07-16 18:30:28 +00:00
|
|
|
CONFIGURE_ARGS= --without-perl --enable-shared --enable-static \
|
2008-09-02 17:16:41 +00:00
|
|
|
--without-threads --with-ltdl-include=${LOCALBASE}/include \
|
|
|
|
--with-ltdl-lib=${LOCALBASE}/lib
|
2006-08-14 23:06:39 +00:00
|
|
|
USE_LDCONFIG= yes
|
2005-07-27 02:09:05 +00:00
|
|
|
|
2008-04-29 00:52:06 +00:00
|
|
|
ALL_TARGET= -j`${SYSCTL} -n hw.ncpu`
|
2007-11-02 14:50:52 +00:00
|
|
|
|
2005-07-27 02:09:05 +00:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
|
2007-11-02 14:50:52 +00:00
|
|
|
test check:
|
|
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check
|
|
|
|
|
2005-07-27 02:09:05 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
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
|
|
|
|
|
|
|
.if defined(WITHOUT_X11)
|
|
|
|
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>
|