diff options
-rw-r--r-- | security/tkpasman/Makefile | 15 | ||||
-rw-r--r-- | security/tkpasman/options.mk | 18 |
2 files changed, 20 insertions, 13 deletions
diff --git a/security/tkpasman/Makefile b/security/tkpasman/Makefile index 04329b64b03..4e9d9e9f2b6 100644 --- a/security/tkpasman/Makefile +++ b/security/tkpasman/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2005/06/17 03:50:33 jlam Exp $ +# $NetBSD: Makefile,v 1.15 2005/08/01 11:45:19 wiz Exp $ # DISTNAME= TkPasMan-2.2a @@ -11,7 +11,6 @@ MAINTAINER= jmmv@NetBSD.org HOMEPAGE= http://www.xs4all.nl/~wbsoft/linux/tkpasman.html COMMENT= Username and password manager that uses the Tk toolkit - CONFIG_SUBST= PREFIX="${PREFIX}" CONFIG_SUBST+= SHELL="${SH}" CONFIG_SUBST+= INSTALL_SCRIPT="${INSTALL_SCRIPT}" @@ -19,17 +18,7 @@ CONFIG_SUBST+= TCLSH="${BUILDLINK_PREFIX.tcl}/bin/tclsh" CONFIG_SUBST+= WISH="${BUILDLINK_PREFIX.tk}/bin/wish" CONFIG_SUBST_SED= ${CONFIG_SUBST:S/=/@!/:S/$/!g/:S/^/ -e s!@/} -.include "../../mk/bsd.prefs.mk" - -# SSL support -.if defined(TKPASMAN_USE_SSL) && ${TKPASMAN_USE_SSL} == "YES" -. include "../../security/openssl/buildlink3.mk" -CONFIG_SUBST+= USE_OPENSSL="true" -CONFIG_SUBST+= OPENSSL="${BUILDLINK_PREFIX.openssl}/bin/openssl" -.else -CONFIG_SUBST+= USE_OPENSSL="false" -CONFIG_SUBST+= OPENSSL="" -.endif +.include "options.mk" BUILD_TARGET= tkpasman INSTALLATION_DIRS= bin diff --git a/security/tkpasman/options.mk b/security/tkpasman/options.mk new file mode 100644 index 00000000000..39edea4db5d --- /dev/null +++ b/security/tkpasman/options.mk @@ -0,0 +1,18 @@ +# $NetBSD: options.mk,v 1.1 2005/08/01 11:45:19 wiz Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.tkpasman +PKG_SUPPORTED_OPTIONS= ssl +# remove after pkgsrc-2005Q3 +PKG_OPTIONS_LEGACY_VARS+= TKPASMAN_USE_SSL:ssl + +.include "../../mk/bsd.options.mk" + +# SSL support +.if !empty(PKG_OPTIONS:Mssl) +. include "../../security/openssl/buildlink3.mk" +CONFIG_SUBST+= USE_OPENSSL="true" +CONFIG_SUBST+= OPENSSL="${BUILDLINK_PREFIX.openssl}/bin/openssl" +.else +CONFIG_SUBST+= USE_OPENSSL="false" +CONFIG_SUBST+= OPENSSL="" +.endif |