aboutsummaryrefslogtreecommitdiff
path: root/misc/xiphos/Makefile
blob: d165224d1bfeb0943580982e81abb9f886c9d188 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# New ports collection makefile for: xiphos
# Date created:   February 2, 2009
# Whom:           Thomas Abthorpe <tabthorpe@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	xiphos
PORTVERSION=	3.1
PORTREVISION=	1
CATEGORIES=	misc gnome
MASTER_SITES=	SF
MASTER_SITE_SUBDIR=	gnomesword

MAINTAINER=	tabthorpe@FreeBSD.org
COMMENT=	A bible interface utilizing the sword framework

RUN_DEPENDS=	${LOCALBASE}/lib/gnome-spell/libgnome-spell-component-0.3.so:${PORTSDIR}/textproc/gnome-spell \
		${LOCALBASE}/lib/libsword-1.5.11.so:${PORTSDIR}/misc/sword15
BUILD_DEPENDS=	${RUN_DEPENDS}
LIB_DEPENDS=	MagickWand.2:${PORTSDIR}/graphics/ImageMagick

USE_GETTEXT=	yes
INSTALLS_OMF=	yes
USE_GNOME=	gnomehack gnomeprefix gnometarget gal2 gtkhtml3 gnomelibs intlhack gnomedocutils
USE_GMAKE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS+=	--disable-maintainer-mode --enable-paratab

OPTIONS=	XULRUNNER	"Build with xulrunner (default)" off \
		GTKHTML		"Build with gtkhtml" off

.include <bsd.port.pre.mk>

.if defined(WITH_XULRUNNER) && defined(WITH_GTKHTML)
IGNORE=		choose only one of XULRUNNER or GTKHTML
.endif

.if defined(WITH_GTKHTML) || defined(WITHOUT_XULRUNNER)
CONFIGURE_ARGS+=	--enable-gtkhtml --disable-gecko
.endif

.if !defined(WITHOUT_XULRUNNER) || !defined(WITH_GTKHTML)
USE_GECKO=	xulrunner
CONFIGURE_ARGS+=	--with-gecko=${GECKO} --disable-gtkhtml
.endif

.include <bsd.port.post.mk>