2005-10-05 15:29:49 +02:00
|
|
|
# $NetBSD: Makefile,v 1.67 2005/10/05 13:29:50 wiz Exp $
|
1997-10-27 05:51:39 +01:00
|
|
|
#
|
|
|
|
|
Update to 2.05b, and fix MASTER_SITES. Lots of changes since 2.05.
Here are some of them, excerpted from NEWS:
- New code to handle multibyte characters.
- `select' was changed to be more ksh-compatible
- There is now a bindable edit-and-execute-command readline command,
like the vi-mode `v' command, bound to C-xC-e in emacs mode.
- The shell now performs arithmetic in the largest integer size the
machine supports (intmax_t), instead of long.
- There is a new configuration option `--enable-mem-scramble', controls
bash malloc behavior of writing garbage characters into memory at
allocation and free time.
- The `complete' and `compgen' builtins now have a new `-s/-A service'
option to complete on names from /etc/services.
- `read' has a new `-u fd' option to read from a specified file descriptor.
- The expansion of $LINENO inside a shell function is only relative to the
function start if the shell is interactive -- if the shell is running a
script, $LINENO expands to the line number in the script. This is as
POSIX-2001 requires.
- The bash debugger in examples/bashdb has been modified to work with the
new DEBUG trap semantics, the command set has been made more gdb-like,
and the changes to $LINENO make debugging functions work better. Code
from Gary Vaughan.
- New [n]<&word- and [n]>&word- redirections from ksh93 -- move fds (dup
and close).
- The `echo' builtin now accepts \0xxx (zero to three octal digits following
the `0') in addition to \xxx (one to three octal digits) for SUSv3/XPG6/
POSIX.1-2001 compliance.
- Added support for DESTDIR installation root prefix, so you can do a
`make install DESTDIR=bash-root' and do easier binary packaging.
- New `-A group/-g' option to complete and compgen; does group name
completion.
- The ksh-like `ERR' trap has been added. The `ERR' trap will be run
whenever the shell would have exited if the -e option were enabled.
It is not inherited by shell functions.
- configure has a new `--enable-largefile' option, like other GNU utilities.
- `for' loops now allow empty word lists after `in', like the latest POSIX
drafts require.
- The builtin `ulimit' now takes two new non-numeric arguments: `hard',
meaning the current hard limit, and `soft', meaning the current soft
limit, in addition to `unlimited'
Also, there is a "New unwind-protect implementation from Paul
Eggert", which I believe obviates the need for two sparc64-related
patches.
2002-11-25 05:18:47 +01:00
|
|
|
DISTNAME= bash-2.05b
|
2003-06-30 10:35:57 +02:00
|
|
|
PKGNAME= bash-2.05.2.7
|
2005-09-20 06:23:48 +02:00
|
|
|
PKGREVISION= 6
|
1997-10-27 05:51:39 +01:00
|
|
|
CATEGORIES= shells
|
1999-04-26 01:36:51 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=bash/} \
|
Update to 2.05b, and fix MASTER_SITES. Lots of changes since 2.05.
Here are some of them, excerpted from NEWS:
- New code to handle multibyte characters.
- `select' was changed to be more ksh-compatible
- There is now a bindable edit-and-execute-command readline command,
like the vi-mode `v' command, bound to C-xC-e in emacs mode.
- The shell now performs arithmetic in the largest integer size the
machine supports (intmax_t), instead of long.
- There is a new configuration option `--enable-mem-scramble', controls
bash malloc behavior of writing garbage characters into memory at
allocation and free time.
- The `complete' and `compgen' builtins now have a new `-s/-A service'
option to complete on names from /etc/services.
- `read' has a new `-u fd' option to read from a specified file descriptor.
- The expansion of $LINENO inside a shell function is only relative to the
function start if the shell is interactive -- if the shell is running a
script, $LINENO expands to the line number in the script. This is as
POSIX-2001 requires.
- The bash debugger in examples/bashdb has been modified to work with the
new DEBUG trap semantics, the command set has been made more gdb-like,
and the changes to $LINENO make debugging functions work better. Code
from Gary Vaughan.
- New [n]<&word- and [n]>&word- redirections from ksh93 -- move fds (dup
and close).
- The `echo' builtin now accepts \0xxx (zero to three octal digits following
the `0') in addition to \xxx (one to three octal digits) for SUSv3/XPG6/
POSIX.1-2001 compliance.
- Added support for DESTDIR installation root prefix, so you can do a
`make install DESTDIR=bash-root' and do easier binary packaging.
- New `-A group/-g' option to complete and compgen; does group name
completion.
- The ksh-like `ERR' trap has been added. The `ERR' trap will be run
whenever the shell would have exited if the -e option were enabled.
It is not inherited by shell functions.
- configure has a new `--enable-largefile' option, like other GNU utilities.
- `for' loops now allow empty word lists after `in', like the latest POSIX
drafts require.
- The builtin `ulimit' now takes two new non-numeric arguments: `hard',
meaning the current hard limit, and `soft', meaning the current soft
limit, in addition to `unlimited'
Also, there is a "New unwind-protect implementation from Paul
Eggert", which I believe obviates the need for two sparc64-related
patches.
2002-11-25 05:18:47 +01:00
|
|
|
ftp://ftp.cwru.edu/pub/bash/
|
1997-10-27 05:51:39 +01:00
|
|
|
|
2003-03-14 15:40:36 +01:00
|
|
|
PATCH_SITES= ${MASTER_SITES:=bash-2.05b-patches/}
|
2003-06-30 10:35:57 +02:00
|
|
|
PATCHFILES= bash205b-001 bash205b-002 bash205b-003 bash205b-004 \
|
2003-07-26 17:21:58 +02:00
|
|
|
bash205b-005 bash205b-006 bash205b-007
|
2003-03-14 15:40:36 +01:00
|
|
|
|
2003-07-18 00:50:55 +02:00
|
|
|
MAINTAINER= wiz@NetBSD.org
|
1998-08-20 17:16:34 +02:00
|
|
|
HOMEPAGE= http://www.gnu.org/software/bash/bash.html
|
2001-02-17 18:31:58 +01:00
|
|
|
COMMENT= The GNU Bourne Again Shell
|
1997-10-27 05:51:39 +01:00
|
|
|
|
2003-02-14 19:59:19 +01:00
|
|
|
CONFLICTS= static-bash-[0-9]*
|
|
|
|
|
2004-01-05 13:36:41 +01:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
|
2005-07-01 18:11:05 +02:00
|
|
|
USE_GNU_READLINE= yes
|
2003-01-28 23:03:00 +01:00
|
|
|
USE_PKGINSTALL= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2005-07-01 18:11:05 +02:00
|
|
|
CONFIGURE_ARGS+= --with-installed-readline
|
2001-08-04 08:58:23 +02:00
|
|
|
MAKE_ENV+= INSTALL_SCRIPT='${INSTALL_SCRIPT}'
|
2003-06-30 10:35:57 +02:00
|
|
|
TEST_TARGET= test
|
1997-10-27 05:51:39 +01:00
|
|
|
|
2005-07-29 20:32:17 +02:00
|
|
|
PKG_SHELL= bin/bash
|
2002-11-17 10:01:59 +01:00
|
|
|
|
2000-10-04 12:22:56 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2004-11-29 13:41:54 +01:00
|
|
|
CFLAGS.Interix+= -DUSE_POSIX_GLOB_LIBRARY
|
|
|
|
|
2004-08-07 23:03:59 +02:00
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.bash
|
2004-10-23 01:54:22 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS= multibyte static
|
2005-05-31 12:01:36 +02:00
|
|
|
PKG_SUGGESTED_OPTIONS= multibyte
|
|
|
|
|
2004-08-07 23:03:59 +02:00
|
|
|
.include "../../mk/bsd.options.mk"
|
2004-07-11 03:23:29 +02:00
|
|
|
|
2004-08-07 23:03:59 +02:00
|
|
|
##
|
|
|
|
## Static link
|
|
|
|
##
|
|
|
|
.if !empty(PKG_OPTIONS:Mstatic)
|
2000-10-04 12:22:56 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-static-link
|
2005-07-01 18:11:05 +02:00
|
|
|
BUILDLINK_DEPMETHOD.gettext= build
|
|
|
|
BUILDLINK_DEPMETHOD.readline= build
|
2000-10-04 12:22:56 +02:00
|
|
|
.endif
|
|
|
|
|
2004-10-23 01:54:22 +02:00
|
|
|
##
|
|
|
|
## Multibyte support
|
|
|
|
##
|
|
|
|
.if empty(PKG_OPTIONS:Mmultibyte)
|
|
|
|
CONFIGURE_ENV+= ac_cv_type_wctype_t=no
|
|
|
|
.endif
|
|
|
|
|
2005-07-01 18:11:05 +02:00
|
|
|
BUILDLINK_DEPENDS.readline+= readline>=4.3
|
|
|
|
|
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
|
|
.include "../../devel/readline/buildlink3.mk"
|
|
|
|
|
1997-10-27 05:51:39 +01:00
|
|
|
post-install:
|
2002-09-27 00:06:29 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/bash.1 ${PREFIX}/man/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/bashbug.1 ${PREFIX}/man/man1
|
1997-10-27 05:51:39 +01:00
|
|
|
|
1998-04-15 12:38:15 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|