From 891c7308122762b163a12c4ea5fc95496463f2e2 Mon Sep 17 00:00:00 2001 From: johans Date: Wed, 29 Oct 2014 09:41:47 +0000 Subject: The IRC configure script has curious logic, is being overly complex, and actually breaks badly if the port is being built in a chroot where the host triplet won't match the jail triplet. The solution I've provided here is clean. Using the pre-configure target, the build directory (with a fixed name) is created and the needed configure script and header are copied over, just like the top configure script does. Then the port makefile just configures with that. It's much better, more robust, and fixes the triplet mismatch. PR: 194679 Submitted by: marino --- irc/irc/Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'irc') diff --git a/irc/irc/Makefile b/irc/irc/Makefile index 017300ed3ddb..cb7e93ac83a3 100644 --- a/irc/irc/Makefile +++ b/irc/irc/Makefile @@ -19,11 +19,17 @@ CONFLICTS_INSTALL= charybdis-[0-9]* ircd-hybrid-[0-9]* Nefarious-[0-9]* \ USE_RC_SUBR= ircd GNU_CONFIGURE= yes CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/ircd -BUILD_WRKSRC= ${WRKSRC}/${MACHINE_ARCH}-unknown-${OPSYS:tl}${OSREL} -INSTALL_WRKSRC= ${BUILD_WRKSRC} +BUILD_WRKSRC= ${WRKSRC}/build +INSTALL_WRKSRC= ${BUILD_WRKSRC} +CONFIGURE_WRKSRC= ${BUILD_WRKSRC} OPTIONS_DEFINE= IPV6 OPTIONS_DEFAULT=IPV6 IPV6_CONFIGURE_ENABLE= ipv6 +pre-configure: + @${MKDIR} ${BUILD_WRKSRC} + ${CP} -p ${WRKSRC}/support/configure ${BUILD_WRKSRC} + ${CP} -p ${WRKSRC}/support/config.h.dist ${BUILD_WRKSRC}/config.h + .include -- cgit