aboutsummaryrefslogtreecommitdiff
path: root/misc/xiphos
diff options
context:
space:
mode:
authorThomas Abthorpe <tabthorpe@FreeBSD.org>2012-07-01 03:49:28 +0000
committerThomas Abthorpe <tabthorpe@FreeBSD.org>2012-07-01 03:49:28 +0000
commitdc5587764f42c15717a99f81491dce5d1d784b24 (patch)
treefae014250324b90be48c04441eccf58359a60373 /misc/xiphos
parentb214d01a657c9e75339b12b2383bfd56f757e444 (diff)
downloadports-dc5587764f42c15717a99f81491dce5d1d784b24.tar.gz
ports-dc5587764f42c15717a99f81491dce5d1d784b24.zip
- Depend on x11/yelp
- Add options to build rendering engine PR: ports/169514 Submitted by: John Marshall <john.marshall riverwillow.com.au>
Notes
Notes: svn path=/head/; revision=300298
Diffstat (limited to 'misc/xiphos')
-rw-r--r--misc/xiphos/Makefile31
1 files changed, 28 insertions, 3 deletions
diff --git a/misc/xiphos/Makefile b/misc/xiphos/Makefile
index 8e9fbaffcbfa..1fe2f8bce547 100644
--- a/misc/xiphos/Makefile
+++ b/misc/xiphos/Makefile
@@ -7,7 +7,7 @@
PORTNAME= xiphos
PORTVERSION= 3.1.5
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= misc gnome
MASTER_SITES= SF/gnomesword/Xiphos/${PORTVERSION}
@@ -16,7 +16,8 @@ COMMENT= A bible interface utilizing the sword framework
LICENSE= GPLv2
-RUN_DEPENDS= ${LOCALBASE}/lib/libsword-1.6.2.so:${PORTSDIR}/misc/sword
+RUN_DEPENDS= ${LOCALBASE}/lib/libsword-1.6.2.so:${PORTSDIR}/misc/sword \
+ yelp:${PORTSDIR}/x11/yelp
BUILD_DEPENDS:= ${RUN_DEPENDS} \
docbook2html:${PORTSDIR}/textproc/docbook-utils \
gnome-doc-tool:${PORTSDIR}/textproc/gnome-doc-utils \
@@ -28,10 +29,34 @@ INSTALLS_OMF= yes
INSTALLS_ICONS= yes
USE_GNOME= gnomehack gnomeprefix gtkhtml3 intlhack libgsf
+OPTIONS_SINGLE= BACKEND
+OPTIONS_SINGLE_BACKEND= GTKHTML LIBXUL WEBKIT
+GTKHTML_DESC= Use gtkhtml for rendering
+LIBXUL_DESC= Use xulrunner for rendering
+WEBKIT_DESC= Use webkit for rendering (preferred)
+
+OPTIONS_DEFAULT= WEBKIT
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MWEBKIT}
+WAF_CONFIGURE_ARGS= --backend=webkit
+LIB_DEPENDS= webkitgtk:${PORTSDIR}/www/webkit-gtk2
+.endif
+
+.if ${PORT_OPTIONS:MLIBXUL}
+WAF_CONFIGURE_ARGS= --backend=xulrunner
+USE_GECKO= libxul
+.endif
+
+.if ${PORT_OPTIONS:MGTKHTML}
+WAF_CONFIGURE_ARGS= --backend=gtkhtml
+.endif
+
do-configure:
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ./waf configure \
--prefix=${PREFIX} --destdir=${PREFIX} \
- --backend gtkhtml --gtk=2
+ ${WAF_CONFIGURE_ARGS} --gtk=2
do-build:
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./waf build