View | Details | Raw Unified | Return to bug 154196
Collapse All | Expand All

(-)Makefile (-24 / +7 lines)
Lines 15-22 Link Here
15
MAINTAINER=	mm@FreeBSD.org
15
MAINTAINER=	mm@FreeBSD.org
16
COMMENT=	Image processing tools
16
COMMENT=	Image processing tools
17
17
18
WRKSRC=		${WRKDIR}/${PORTNAME}-${DISTVERSION}
19
20
USE_XZ=		yes
18
USE_XZ=		yes
21
USE_PERL5=	yes
19
USE_PERL5=	yes
22
USE_GNOME=	gnomehack gnometarget pkgconfig
20
USE_GNOME=	gnomehack gnometarget pkgconfig
Lines 38-44 Link Here
38
CPPFLAGS=	-I${LOCALBASE}/include
36
CPPFLAGS=	-I${LOCALBASE}/include
39
LDFLAGS=	-L${LOCALBASE}/lib
37
LDFLAGS=	-L${LOCALBASE}/lib
40
38
41
PLIST_SUB+=	PORTVERSION=${PORTVERSION:R}
39
PLIST_SUB=	PORTVERSION=${PORTVERSION:R}
42
40
43
OPTIONS=\
41
OPTIONS=\
44
	IMAGEMAGICK_16BIT_PIXEL	"16bit pixel support" on \
42
	IMAGEMAGICK_16BIT_PIXEL	"16bit pixel support" on \
Lines 84-90 Link Here
84
.if defined(WITH_THREADS)
82
.if defined(WITH_THREADS)
85
_IMAGEMAGICK_THREADS=yes
83
_IMAGEMAGICK_THREADS=yes
86
_IMAGEMAGICK_THREADS_MSG=with threads
84
_IMAGEMAGICK_THREADS_MSG=with threads
87
PERL_THREADED!=	/bin/sh -c 'case `perl --version` in *freebsd-thread*) echo yes ;; esac'
85
PERL_THREADED!=	${SH} -c 'case `perl --version` in *freebsd-thread*) ${ECHO_CMD} yes ;; esac'
88
.else
86
.else
89
_IMAGEMAGICK_THREADS=no
87
_IMAGEMAGICK_THREADS=no
90
_IMAGEMAGICK_THREADS_MSG=without threads
88
_IMAGEMAGICK_THREADS_MSG=without threads
Lines 309-335 Link Here
309
PLIST_SUB+=		WMF="@comment "
307
PLIST_SUB+=		WMF="@comment "
310
.endif
308
.endif
311
309
312
# SVG (Scalable Vector Graphics) images and MSL (Magick Scripting Language)
310
# SVG (Scalable Vector Graphics) requires both libxml2 and X11
313
# both require XML
314
.if defined(WITH_IMAGEMAGICK_SVG) || !defined(WITHOUT_IMAGEMAGICK_MSL)
315
USE_GNOME+=		libxml2
316
CONFIGURE_ARGS+=	--with-xml
317
.else
318
CONFIGURE_ARGS+=	--without-xml
319
.endif
320
321
# SVG (Scalable Vector Graphics) requires X11
322
.if defined(WITH_IMAGEMAGICK_SVG)
311
.if defined(WITH_IMAGEMAGICK_SVG)
323
. if defined(WITHOUT_X11)
312
. if defined(WITHOUT_X11)
324
IGNORE=			svg support requires X11
313
IGNORE=			svg support requires X11
325
. else
314
. else
315
USE_GNOME+=		libxml2
326
LIB_DEPENDS+=		rsvg-2:${PORTSDIR}/graphics/librsvg2
316
LIB_DEPENDS+=		rsvg-2:${PORTSDIR}/graphics/librsvg2
327
CONFIGURE_ARGS+=	--with-rsvg
317
CONFIGURE_ARGS+=	--with-rsvg --with-xml
328
CONFIGURE_ENV+=		RSVG_CFLAGS="-I${LOCALBASE}/include/librsvg-2" \
318
CONFIGURE_ENV+=		RSVG_CFLAGS="-I${LOCALBASE}/include/librsvg-2" \
329
			RSVG_LIBS="-L${LOCALBASE}/lib"
319
			RSVG_LIBS="-L${LOCALBASE}/lib"
330
. endif
320
. endif
331
.else
321
.else
332
CONFIGURE_ARGS+=	--without-rsvg
322
CONFIGURE_ARGS+=	--without-rsvg --without-xml
333
.endif
323
.endif
334
324
335
# PDF (Adobe Portable Document Format) support
325
# PDF (Adobe Portable Document Format) support
Lines 358-367 Link Here
358
INSTALL_TARGET=	install install-data-html
348
INSTALL_TARGET=	install install-data-html
359
.endif
349
.endif
360
350
361
#.if ${OSVERSION} >= 800000
362
#WITHOUT_IMAGEMAGICK_TESTS=yes
363
#.endif
364
365
.if ${ARCH} == sparc64
351
.if ${ARCH} == sparc64
366
WITHOUT_IMAGEMAGICK_TESTS=yes
352
WITHOUT_IMAGEMAGICK_TESTS=yes
367
.endif
353
.endif
Lines 435-445 Link Here
435
.	endfor
421
.	endfor
436
.endif
422
.endif
437
423
438
.if defined(WITH_IMAGEMAGICK_TESTS) && !defined(WITHOUT_IMAGEMAGICK_TESTS)
424
.if !defined(WITHOUT_IMAGEMAGICK_TESTS)
439
# jpeg-7 fails in ValidateImageFormatsOnDisk
440
.if defined(WITH_IMAGEMAGICK_TEST_JPEG7)
441
post-build:	test
425
post-build:	test
442
.endif
426
.endif
443
.endif
444
427
445
.include <bsd.port.post.mk>
428
.include <bsd.port.post.mk>

Return to bug 154196