summaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
Diffstat (limited to 'shells')
-rw-r--r--shells/bash2/Makefile25
1 files changed, 21 insertions, 4 deletions
diff --git a/shells/bash2/Makefile b/shells/bash2/Makefile
index 9a03ea3317e..2a49cd38c4e 100644
--- a/shells/bash2/Makefile
+++ b/shells/bash2/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.57 2004/10/03 00:18:14 tv Exp $
+# $NetBSD: Makefile,v 1.58 2004/10/22 23:54:22 minskim Exp $
#
DISTNAME= bash-2.05b
@@ -30,12 +30,22 @@ PKG_SHELL= ${PREFIX}/bin/bash
.include "../../mk/bsd.prefs.mk"
-.if defined(BASH_STATIC) && !empty(BASH_STATIC:M[yY][eE][sS])
-PKG_DEFAULT_OPTIONS+= 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
+# Always enable multibyte support, because before converted to use
+# bsd.options.mk, this package did not allow to turn off the multibyte
+# support.
+PKG_OPTIONS.bash+= multibyte
+. endif
.endif
PKG_OPTIONS_VAR= PKG_OPTIONS.bash
-PKG_SUPPORTED_OPTIONS= static
+PKG_OPTIONS.bash?= multibyte
+PKG_SUPPORTED_OPTIONS= multibyte static
.include "../../mk/bsd.options.mk"
##
@@ -45,6 +55,13 @@ PKG_SUPPORTED_OPTIONS= static
CONFIGURE_ARGS+= --enable-static-link
.endif
+##
+## Multibyte support
+##
+.if empty(PKG_OPTIONS:Mmultibyte)
+CONFIGURE_ENV+= ac_cv_type_wctype_t=no
+.endif
+
post-install:
${INSTALL_MAN} ${WRKSRC}/doc/bash.1 ${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/doc/bashbug.1 ${PREFIX}/man/man1