summaryrefslogtreecommitdiffstats
path: root/security/ccrypt/Makefile
blob: fc6ed24965aecc52ee76cd7490c8767a898cb3e3 (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
# Created by: ijliao
# $FreeBSD$

PORTNAME=	ccrypt
PORTVERSION=	1.10
PORTREVISION=	1
CATEGORIES=	security
MASTER_SITES=	SF \
		http://www.mathstat.dal.ca/~selinger/ccrypt/download/

MAINTAINER=	dev2@heesakkers.info
COMMENT=	Command-line utility for encrypting and decrypting files and streams

LICENSE=		GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

USES=			gmake

OPTIONS_DEFINE=	DOCS NLS

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MNLS}
PLIST_SUB+=	NLS=""
USES+=		gettext
.else
PLIST_SUB+=	NLS="@comment "
USES+=		perl5
USE_PERL5=	build
CONFIGURE_ARGS+=	--disable-nls
.endif

GNU_CONFIGURE=	yes

post-patch:
	@${REINPLACE_CMD} -e 's|gtar|tar|g' ${WRKSRC}/configure

post-install:
.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.for i in ccrypt.html cypfaq01.txt
	${INSTALL_DATA} ${WRKSRC}/doc/$i ${STAGEDIR}${DOCSDIR}
.endfor
.endif

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