freebsd-ports/security/yapet/Makefile
Dmitry Marakasov 6f6fbe4bdf - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
2011-09-23 22:26:39 +00:00

82 lines
1.9 KiB
Makefile

# 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
.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>