summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2009-10-26 01:01:02 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2009-10-26 01:01:02 +0800
commitced0eb9498d89828e8da227ae32ed506fcae0351 (patch)
treea417ef3f450fb8ecc614e2c257b00488dc3e06b6 /graphics
parentbe1426a8ec25ef3e570f3e055be1e00e778dde54 (diff)
downloadmarcuscom-ports-ced0eb9498d89828e8da227ae32ed506fcae0351.tar
marcuscom-ports-ced0eb9498d89828e8da227ae32ed506fcae0351.tar.gz
marcuscom-ports-ced0eb9498d89828e8da227ae32ed506fcae0351.tar.bz2
marcuscom-ports-ced0eb9498d89828e8da227ae32ed506fcae0351.tar.lz
marcuscom-ports-ced0eb9498d89828e8da227ae32ed506fcae0351.tar.xz
marcuscom-ports-ced0eb9498d89828e8da227ae32ed506fcae0351.tar.zst
marcuscom-ports-ced0eb9498d89828e8da227ae32ed506fcae0351.zip
Add support for JPEG 2000 support via OpenJPEG.
PR: 139941 git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@13190 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'graphics')
-rw-r--r--graphics/poppler/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/graphics/poppler/Makefile b/graphics/poppler/Makefile
index 859b2aa9f..89ff48246 100644
--- a/graphics/poppler/Makefile
+++ b/graphics/poppler/Makefile
@@ -3,12 +3,12 @@
# Whom: marcus@FreeBSD.org
#
# $FreeBSD$
-# $MCom: ports/graphics/poppler/Makefile,v 1.53 2009/09/10 13:16:23 kwm Exp $
+# $MCom: ports/graphics/poppler/Makefile,v 1.54 2009/10/20 04:03:58 marcus Exp $
#
PORTNAME= poppler
PORTVERSION= 0.12.1
-PORTREVISION?= 0
+PORTREVISION?= 1
CATEGORIES= graphics print
MASTER_SITES= http://poppler.freedesktop.org/
@@ -31,7 +31,8 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2
LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
.if !defined(SLAVEPORT)
-OPTIONS= CAIRO "Enable cairo output backend" on
+OPTIONS= CAIRO "Enable cairo output backend" on \
+ OPENJPEG "Enable JPEG 2000 support" on
.endif
.include <bsd.port.pre.mk>
@@ -96,6 +97,13 @@ PLIST_SUB+= CAIRO="@comment "
LIB_DEPENDS+= cairo.2:${PORTSDIR}/graphics/cairo
PLIST_SUB+= CAIRO=""
.endif
+
+.if defined(WITHOUT_OPENJPEG)
+CONFIGURE_ARGS+=--disable-libopenjpeg
+.else
+CONFIGURE_ARGS+=--enable-libopenjpeg
+LIB_DEPENDS+= openjpeg.2:${PORTSDIR}/graphics/openjpeg
+.endif
.endif
post-patch: