blob: a6d2d0b3fb94fe38159048009dbf07189caa6292 (
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
|
# Created by: 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= Curses based password manager
MAN1= yapet.1
MANCOMPRESSED= no
USE_OPENSSL= yes
GNU_CONFIGURE= yes
OPTIONS_DEFINE= TTITLE PWGEN CSV2YAPET DOCS
OPTIONS_DEFAULT= TTITLE PWGEN CSV2YAPET
TTITLE_DESC= Enable Terminal Title
PWGEN_DESC= Enable Password Generator
CSV2YAPET_DESC= Build csv2yapet
NO_STAGE= yes
.include <bsd.port.options.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 ${PORT_OPTIONS:MTTITLE}
CONFIGURE_ARGS+= --enable-terminal-title
.else
CONFIGURE_ARGS+= --disable-terminal-title
.endif
.if ${PORT_OPTIONS:MPWGEN}
CONFIGURE_ARGS+= --enable-pwgen
.else
CONFIGURE_ARGS+= --disable-pwgen
.endif
.if ${PORT_OPTIONS:MCSV2YAPET}
CONFIGURE_ARGS+= --enable-csv2yapet
MAN1+= csv2yapet.1
PLIST_SUB+= CSV2YAPET=""
.else
CONFIGURE_ARGS+= --disable-csv2yapet
PLIST_SUB+= CSV2YAPET="@comment "
.endif
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
CONFIGURE_ARGS+= --enable-nls
PLIST_SUB+= NLS=""
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif
.if ${PORT_OPTIONS:MDOCS}
PLIST_SUB+= NOPORTDOCS=""
.else
PLIST_SUB+= NOPORTDOCS="@comment "
.endif
# Taking care of installing docs due to --disable-install-doc
# configure switch.
post-install:
.if ${PORT_OPTIONS:MDOCS}
${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.mk>
|