summaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
authorriastradh <riastradh@pkgsrc.org>2013-05-10 00:42:41 +0000
committerriastradh <riastradh@pkgsrc.org>2013-05-10 00:42:41 +0000
commit528aa3b4603af56d2ff88770e62df6d68c96ea2b (patch)
treee73d7240134b7b8f7b96e042e72e4bb871caf5e5 /shells
parent59cbead209233963582340ce7e6d538517a77c99 (diff)
downloadpkgsrc-528aa3b4603af56d2ff88770e62df6d68c96ea2b.tar.gz
Fix bash cross-build on NetBSD by pre-answering autoconf run-tests.
ok agc
Diffstat (limited to 'shells')
-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