summaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
Diffstat (limited to 'shells')
-rw-r--r--shells/bash2/Makefile20
1 files changed, 17 insertions, 3 deletions
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