aboutsummaryrefslogtreecommitdiff
path: root/security/yapet/Makefile
blob: d10f43a1881c2d6facb3a040bb23d9cffcf7e333 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# New ports collection makefile for:	yapet
# Date created:		01 March 2008
# Whom:			Rafael Ostertag <rafi@guengel.ch>
#
# $FreeBSD$
#

PORTNAME=	yapet
PORTVERSION=	0.7
CATEGORIES=	security
MASTER_SITES=	http://www.guengel.ch/myapps/yapet/downloads/ http://homepage.hispeed.ch/rostertag/yapet/

MAINTAINER=	rafi@guengel.ch
COMMENT=	A curses based password manager

MAN1=		yapet.1
MANCOMPRESSED=	no

USE_OPENSSL=	yes
GNU_CONFIGURE=	yes

OPTIONS=	TTITLE "Enable Terminal Title" ON \
		PWGEN "Enable Password Generator" ON \
		CSV2YAPET "Build csv2yapet" ON

.include <bsd.port.pre.mk>

# --enable-silent-rules:  will make the build quiet
# --disable-install-doc:  I take care of installing docs
CONFIGURE_ARGS+=	--enable-silent-rules --disable-install-doc

.if defined(WITH_TTITLE)
CONFIGURE_ARGS+=	--enable-terminal-title
.else
CONFIGURE_ARGS+=	--disable-terminal-title
.endif

.if defined(WITH_PWGEN)
CONFIGURE_ARGS+=	--enable-pwgen
.else
CONFIGURE_ARGS+=	--disable-pwgen
.endif

.if defined(WITH_CSV2YAPET)
CONFIGURE_ARGS+=	--enable-csv2yapet
MAN1+=			csv2yapet.1
PLIST_SUB+=		CSV2YAPET=""
.else
CONFIGURE_ARGS+=	--disable-csv2yapet
PLIST_SUB+=		CSV2YAPET="@comment "
.endif

.if !defined(WITHOUT_NLS)
USE_GETTEXT=		yes
CONFIGURE_ARGS+=	--enable-nls
PLIST_SUB+=		NLS=""
CPPFLAGS+=		-I${LOCALBASE}/include
LDFLAGS+=		-L${LOCALBASE}/lib
CONFIGURE_ENV=		CPPFLAGS="${CPPFLAGS}" \
			LDFLAGS="${LDFLAGS}"
.else
CONFIGURE_ARGS+=	--disable-nls
PLIST_SUB+=		NLS="@comment "
.endif

.if !defined(NOPORTDOCS)
PLIST_SUB+=		NOPORTDOCS=""
.else
PLIST_SUB+=		NOPORTDOCS="@comment "
.endif

# Taking care of installing docs due to --disable-install-doc
# configure switch.
post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${INSTALL_MAN} ${WRKSRC}/AUTHORS ${DOCSDIR}
	${INSTALL_MAN} ${WRKSRC}/DESIGN ${DOCSDIR}
	${INSTALL_MAN} ${WRKSRC}/LICENSE ${DOCSDIR}
	${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR}
	${INSTALL_MAN} ${WRKSRC}/THANKS ${DOCSDIR}
.endif

.include <bsd.port.post.mk>