From 2840e4feabcef158c74277c3aa2ccb5fcf5cef91 Mon Sep 17 00:00:00 2001 From: minskim Date: Sat, 7 Aug 2004 21:03:59 +0000 Subject: Convert bash2 to use bsd.options.mk. --- shells/bash2/Makefile | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'shells/bash2') diff --git a/shells/bash2/Makefile b/shells/bash2/Makefile index a923ce9aa0c..b91daf8f413 100644 --- a/shells/bash2/Makefile +++ b/shells/bash2/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.54 2004/07/11 01:23:29 salo Exp $ +# $NetBSD: Makefile,v 1.55 2004/08/07 21:03:59 minskim Exp $ # DISTNAME= bash-2.05b @@ -30,9 +30,23 @@ PKG_SHELL= ${PREFIX}/bin/bash .include "../../mk/bsd.prefs.mk" -BUILD_DEFS+= BASH_STATIC +# Global and legacy options +.if defined(BASH_STATIC) +. if !defined(PKG_OPTIONS.bash) +. if defined(BASH_STATIC) && !empty(BASH_STATIC:M[yY][eE][sS]) +PKG_OPTIONS.bash+= static +. endif +. endif +.endif + +PKG_OPTIONS_VAR= PKG_OPTIONS.bash +PKG_SUPPORTED_OPTIONS= static +.include "../../mk/bsd.options.mk" -.if defined(BASH_STATIC) && !empty(BASH_STATIC:M[yY][eE][sS]) +## +## Static link +## +.if !empty(PKG_OPTIONS:Mstatic) CONFIGURE_ARGS+= --enable-static-link .endif -- cgit v1.2.3