summaryrefslogtreecommitdiff
path: root/shells/bash
diff options
context:
space:
mode:
authorriastradh <riastradh>2013-05-10 00:42:41 +0000
committerriastradh <riastradh>2013-05-10 00:42:41 +0000
commit7afa440bc1f8a9389f0afbca8d215ec553646c9e (patch)
treee73d7240134b7b8f7b96e042e72e4bb871caf5e5 /shells/bash
parent75dbb2f9a26f67f477e44ba280fa89257107e26a (diff)
downloadpkgsrc-7afa440bc1f8a9389f0afbca8d215ec553646c9e.tar.gz
Fix bash cross-build on NetBSD by pre-answering autoconf run-tests.
ok agc
Diffstat (limited to 'shells/bash')
-rw-r--r--shells/bash/Makefile17
1 files changed, 16 insertions, 1 deletions
diff --git a/shells/bash/Makefile b/shells/bash/Makefile
index 9dd13c16d5d..35711e955d8 100644
--- a/shells/bash/Makefile
+++ b/shells/bash/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.56 2013/02/12 23:31:40 tcort Exp $
+# $NetBSD: Makefile,v 1.57 2013/05/10 00:42:41 riastradh Exp $
BASH_VERSION= 4.2
@@ -85,6 +85,21 @@ 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
+
post-install:
${INSTALL_MAN} ${WRKSRC}/doc/bash.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
${INSTALL_MAN} ${WRKSRC}/doc/bashbug.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1