summaryrefslogtreecommitdiff
path: root/shells/bash2
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2004-08-07 21:03:59 +0000
committerminskim <minskim@pkgsrc.org>2004-08-07 21:03:59 +0000
commit2840e4feabcef158c74277c3aa2ccb5fcf5cef91 (patch)
tree3a737f58f1ad750aaee9e013ceeca32defa58042 /shells/bash2
parent16ee8029e0cc657de0b89c21176e4740367019d5 (diff)
downloadpkgsrc-2840e4feabcef158c74277c3aa2ccb5fcf5cef91.tar.gz
Convert bash2 to use bsd.options.mk.
Diffstat (limited to 'shells/bash2')
-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