summaryrefslogtreecommitdiffstats
path: root/misc/lifelines/Makefile
blob: 8b6dc97b9c71eaadc2a986995d8224a06e2020fd (plain)
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
51
# Created by: Matt Emmerton <matt@gsicomp.on.ca>
# $FreeBSD$

PORTNAME=	lifelines
PORTVERSION=	3.1.1
CATEGORIES=	misc
MASTER_SITES=   http://github.com/MarcNo/lifelines/releases/download/${PORTVERSION}/

MAINTAINER=	matt@gsicomp.on.ca
COMMENT=	Advanced genealogical system

LICENSE=	MIT

GNU_CONFIGURE=	yes
USES=		autoreconf bison gmake iconv

MAKE_JOBS_UNSAFE=yes

# Lifelines always installs documenatation.  This is contrary to the FreeBSD
# norm which uses --with-docs (aka DOCS) to do so.  We patch the Makefiles
# below in pre-patch.
# Lifelines uses --with-docs to indicate that the full XML docbook toolcahin
# needs to be installed to build the docs.  We use BUILDDOCS for that purpose.

OPTIONS_DEFINE=		BUILDDOCS DOCS NLS
OPTIONS_SUB=		yes
OPTIONS_DEFAULT=	DOCS NLS
BUILDDOCS_DESC=		Build documentation (requires docbook toolchain)
DOCS_DESC=		Install documentation
NLS_DESC=		Build with NLS support

BUILDDOCS_CONFIGURE_WITH=	docs
BUILDDOCS_BUILD_DEPENDS=	xmlto:${PORTSDIR}/textproc/xmlto \
				dblatex:${PORTSDIR}/textproc/dblatex

NLS_USES=		gettext
NLS_CONFIGURE_ENABLE=	nls

.include <bsd.port.options.mk>

pre-patch:
	@${REINPLACE_CMD} -e 's,ncursesw/curses.h,curses.h,' \
		${WRKSRC}/src/hdrs/mycurses.h
.if ! ${PORT_OPTIONS:MDOCS}
	@${REINPLACE_CMD} -e 's,^doc_DATA.*,doc_DATA = .linesrc lines.cfg,' \
	${WRKSRC}/Makefile.am
	@${REINPLACE_CMD} -e 's,^doc_DATA.*,doc_DATA=,' \
	${WRKSRC}/docs/manual/Makefile.am
.endif

.include <bsd.port.mk>
OpenPOWER on IntegriCloud