summaryrefslogtreecommitdiff
path: root/devel/monotone/Makefile
blob: ce8ca04746d52dc77e188cb49ad920721fe40da6 (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
52
53
54
55
56
57
58
59
60
61
62
# Created by: Mark A. Wicks <mwicks@kettering.edu>
# $FreeBSD$

PORTNAME=	monotone
PORTVERSION=	1.1
PORTREVISION=	3
CATEGORIES=	devel
MASTER_SITES=	http://www.monotone.ca/downloads/${PORTVERSION}/

MAINTAINER=	lapo@lapo.it
COMMENT=	Distributed version control system with digital signatures

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	${LOCALBASE}/include/boost/shared_ptr.hpp:devel/boost-libs
LIB_DEPENDS=	libpcre.so:devel/pcre \
		libidn.so:dns/libidn \
		libsqlite3.so:databases/sqlite3 \
		libbotan-1.10.so:security/botan110

SUB_FILES=	pkg-message
USES=		cpe gmake iconv localbase lua:51 makeinfo perl5 \
		pkgconfig tar:bzip2
USE_PERL5=	build

GNU_CONFIGURE=	yes
CONFIGURE_ENV=	MAKEINFO="makeinfo --no-split"

INFO=		monotone
PORTDOCS=	*

OPTIONS_DEFINE=	DOCS NLS
OPTIONS_SUB=	yes

NLS_USES=		gettext
NLS_CONFIGURE_OFF=	--disable-nls

post-extract:
	@${RM} -f ${WRKSRC}/monotone.info*

post-patch:
	@${REINPLACE_CMD} \
		-e "s/REBUILD_NLS=true/REBUILD_NLS=false/g" \
		-e "s/std::tr1::/std::/g" \
		${WRKSRC}/configure
	@${REINPLACE_CMD} \
		-e "s/std::tr1::/std::/g" \
		${WRKSRC}/src/hash_map.hh

post-patch-DOCS-off:
	@${REINPLACE_CMD} -Ee '/^install-(contrib|examples)-data:/{' -e 'n' -e 'd' -e '}' ${WRKSRC}/Makefile.in

post-install:
	${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
	${INSTALL_DATA} ${WRKSRC}/contrib/monotone.zsh_completion ${STAGEDIR}${PREFIX}/share/zsh/site-functions/_mtn

post-install-DOCS-on:
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} NEWS UPGRADE ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>