blob: 12c1d74f8fee09d4e90cd8ff91ce49d941ec9906 (
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
# $NetBSD: Makefile,v 1.84 2018/04/09 14:57:19 ryoon Exp $
BASH_VERSION= 4.4.18
BASH_PATCHLEVEL= 019
DISTNAME= bash-${BASH_VERSION}
PKGNAME= bash-${BASH_VERSION:C/4\.4\..*/4.4/}.${BASH_PATCHLEVEL}
CATEGORIES= shells
MASTER_SITES= ${MASTER_SITE_GNU:=bash/}
PATCH_SITES= ${MASTER_SITES:=bash-4.4-patches/}
#PATCHFILES+= bash44-001 bash44-002 bash44-003 bash44-004 bash44-005
#PATCHFILES+= bash44-006 bash44-007 bash44-008 bash44-009 bash44-010
#PATCHFILES+= bash44-011 bash44-012 bash44-013 bash44-014 bash44-015
#PATCHFILES+= bash44-016 bash44-017 bash44-018 # bash44-019 bash44-020
#PATCHFILES+= bash44-021 bash44-022 bash44-023 bash44-024 bash44-025
#PATCHFILES+= bash44-026 bash44-027 bash44-028 bash44-029 bash44-030
#PATCHFILES+= bash44-031 bash44-032 bash44-033 bash44-034 bash44-035
#PATCHFILES+= bash44-036 bash44-037 bash44-038 bash44-039
PATCHFILES+= bash44-019
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.gnu.org/software/bash/bash.html
COMMENT= The GNU Bourne Again Shell
LICENSE= gnu-gpl-v3
USE_TOOLS+= makeinfo bison
USE_PKGLOCALEDIR= yes
TEXINFO_REQD= 4.1
GNU_CONFIGURE= yes
MAKE_ENV+= INSTALL_SCRIPT=${INSTALL_SCRIPT:Q}
CONFIGURE_ARGS= LOCAL_LDFLAGS=${EXPORT_SYMBOLS_LDFLAGS:M*:Q}
CPPFLAGS+= -DDEFAULT_PATH_VALUE="\"/usr/bin:/bin:${LOCALBASE}/bin:/usr/local/bin\""
TEST_TARGET= test
PKGCONFIG_OVERRIDE= support/bash.pc.in
INFO_FILES= YES # PLIST
PKG_SHELL= bin/bash
INSTALLATION_DIRS= ${PKGMANDIR}/man1
# All features enabled by default.
CONFIGURE_ARGS+= --enable-readline
CONFIGURE_ARGS+= --enable-progcomp
CONFIGURE_ARGS+= --enable-process-substitution
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= #static XXX 2017-11-20 broken
.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
# Minix lacks setpgid() which is needed for job control.
# bash malloc() is also broken on Minix
.if ${OPSYS} == "Minix"
CONFIGURE_ARGS+= --disable-job-control
CONFIGURE_ARGS+= --with-bash-malloc=no
.else
CONFIGURE_ARGS+= --enable-job-control
.endif
# Use "readline" package on Darwin to avoid link erros.
.if ${OPSYS} == "Darwin"
CONFIGURE_ARGS+= --with-installed-readline
BUILDLINK_API_DEPENDS.readline+= readline>=7.0
.include "../../devel/readline/buildlink3.mk"
.endif
.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) && ${OPSYS} == "NetBSD"
CONFIGURE_ENV+= CC_FOR_BUILD=${NATIVE_CC:Q}
CONFIGURE_ENV+= ac_cv_c_long_long=yes
CONFIGURE_ENV+= ac_cv_c_long_double=yes
CONFIGURE_ENV+= bash_cv_type_rlimit=yes
CONFIGURE_ENV+= bash_cv_getcwd_malloc=yes
CONFIGURE_ENV+= bash_cv_func_sigsetjmp=yes
CONFIGURE_ENV+= bash_cv_printf_a_format=yes
CONFIGURE_ENV+= bash_cv_job_control_missing=present
CONFIGURE_ENV+= bash_cv_sys_named_pipes=present
CONFIGURE_ENV+= bash_cv_unusable_rtsigs=no
CONFIGURE_ENV+= bash_cv_func_ctype_nonascii=yes
CONFIGURE_ENV+= bash_cv_wexitstatus_offset=8
.endif
pre-configure:
${RM} -f ${WRKSRC}/y.tab.c
post-install:
${INSTALL_MAN} ${WRKSRC}/doc/bash.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
${INSTALL_MAN} ${WRKSRC}/doc/bashbug.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.include "../../mk/termcap.buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|