1bc36c5cfb
Changelog: * Bugfixes (031-039)
114 lines
3.6 KiB
Makefile
114 lines
3.6 KiB
Makefile
# $NetBSD: Makefile,v 1.75 2015/06/07 05:49:28 ryoon Exp $
|
|
|
|
BASH_VERSION= 4.3
|
|
BASH_PATCHLEVEL= 039
|
|
|
|
DISTNAME= bash-${BASH_VERSION}
|
|
PKGNAME= bash-${BASH_VERSION}.${BASH_PATCHLEVEL}
|
|
CATEGORIES= shells
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=bash/} \
|
|
ftp://ftp.cwru.edu/pub/bash/
|
|
|
|
PATCH_SITES= ${MASTER_SITES:=bash-4.3-patches/}
|
|
PATCHFILES+= bash43-001 bash43-002 bash43-003 bash43-004 bash43-005
|
|
PATCHFILES+= bash43-006 bash43-007 bash43-008 bash43-009 bash43-010
|
|
PATCHFILES+= bash43-011 bash43-012 bash43-013 bash43-014 bash43-015
|
|
PATCHFILES+= bash43-016 bash43-017 bash43-018 bash43-019 bash43-020
|
|
PATCHFILES+= bash43-021 bash43-022 bash43-023 bash43-024 bash43-025
|
|
PATCHFILES+= bash43-026 bash43-027 bash43-028 bash43-029 bash43-030
|
|
PATCHFILES+= bash43-031 bash43-032 bash43-033 bash43-034 bash43-035
|
|
PATCHFILES+= bash43-036 bash43-037 bash43-038 bash43-039
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.gnu.org/software/bash/bash.html
|
|
COMMENT= The GNU Bourne Again Shell
|
|
LICENSE= gnu-gpl-v3
|
|
|
|
CONFLICTS= static-bash-[0-9]*
|
|
|
|
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
|
|
|
|
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
|
|
|
|
.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>=6.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"
|