blob: 8cd78736784ee157da236e33ec9c772e6e658a92 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# $NetBSD: Makefile,v 1.19 2006/03/04 21:30:39 jlam Exp $
DISTNAME= bash-3.1
PKGNAME= bash-3.1pl1
PKGREVISION= 1
CATEGORIES= shells
MASTER_SITES= ${MASTER_SITE_GNU:=bash/} \
ftp://ftp.cwru.edu/pub/bash/
PATCH_SITES= ${MASTER_SITES:=bash-3.1-patches/}
PATCHFILES= bash31-001
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.gnu.org/software/bash/bash.html
COMMENT= The GNU Bourne Again Shell
CONFLICTS= static-bash-[0-9]*
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_MAKEINFO= yes
USE_PKGLOCALEDIR= yes
GNU_CONFIGURE= yes
MAKE_ENV+= INSTALL_SCRIPT=${INSTALL_SCRIPT:Q}
CPPFLAGS+= -DDEFAULT_PATH_VALUE="\"/usr/bin:/bin:/usr/pkg/bin:/usr/local/bin\""
TEST_TARGET= test
INFO_FILES= bash.info
PKG_SHELL= bin/bash
# All features enabled by default.
CONFIGURE_ARGS+= --enable-readline
CONFIGURE_ARGS+= --enable-progcomp
CONFIGURE_ARGS+= --enable-process-substitution
CONFIGURE_ARGS+= --enable-job-control
CONFIGURE_ARGS+= --enable-history
CONFIGURE_ARGS+= --enable-help-builtin
CONFIGURE_ARGS+= --enable-extended-glob
CONFIGURE_ARGS+= --enable-dparen-arithmetic
CONFIGURE_ARGS+= --enable-directory-stack
CONFIGURE_ARGS+= --enable-debugger
CONFIGURE_ARGS+= --enable-cond-regexp
CONFIGURE_ARGS+= --enable-alias
CONFIGURE_ARGS+= --enable-brace-expansion
CONFIGURE_ARGS+= --enable-array-variables
.include "../../mk/bsd.prefs.mk"
PKG_OPTIONS_VAR= PKG_OPTIONS.bash
PKG_SUPPORTED_OPTIONS= multibyte static
PKG_SUGGESTED_OPTIONS= multibyte
.include "../../mk/bsd.options.mk"
##
## Static link
##
.if !empty(PKG_OPTIONS:Mstatic)
CONFIGURE_ARGS+= --enable-static-link
BUILDLINK_DEPMETHOD.gettext= build
BUILDLINK_DEPMETHOD.readline= build
.endif
##
## Multibyte support
##
.if empty(PKG_OPTIONS:Mmultibyte)
CONFIGURE_ENV+= ac_cv_type_wctype_t=no
.endif
# Use "readline" package on Darwin to avoid link erros.
.if ${OPSYS} == "Darwin"
CONFIGURE_ARGS+= --with-installed-readline
USE_GNU_READLINE= yes
BUILDLINK_DEPENDS.readline+= readline>=4.3
.include "../../devel/readline/buildlink3.mk"
.endif
post-install:
${INSTALL_MAN} ${WRKSRC}/doc/bash.1 ${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/doc/bashbug.1 ${PREFIX}/man/man1
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|