diff options
author | minskim <minskim@pkgsrc.org> | 2004-08-07 21:03:59 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2004-08-07 21:03:59 +0000 |
commit | 145e32d961fcf0fd06a7cc7460084d77b63d7298 (patch) | |
tree | 3a737f58f1ad750aaee9e013ceeca32defa58042 /shells/bash2 | |
parent | 281f7493cf5711c40beb4476f76f0794d3fbedf7 (diff) | |
download | pkgsrc-145e32d961fcf0fd06a7cc7460084d77b63d7298.tar.gz |
Convert bash2 to use bsd.options.mk.
Diffstat (limited to 'shells/bash2')
-rw-r--r-- | shells/bash2/Makefile | 20 |
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 |