freebsd-ports/irc/irc/Makefile
Johan van Selst 519d5660ef 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
2014-10-29 09:41:47 +00:00

35 lines
949 B
Makefile

# Created by: torstenb
# $FreeBSD$
PORTNAME= irc
PORTVERSION= 2.11.2p3
CATEGORIES= irc ipv6
MASTER_SITES= http://ftp.irc.org/ftp/irc/server/ \
ftp://ftp.archive.de.uu.net/pub/mirrors/ftp.irc.org/server/ \
ftp://ftp.nl.uu.net/pub/mirrors/ftp.irc.org/server/
DISTNAME= ${PORTNAME}${PORTVERSION}
EXTRACT_SUFX= .tgz
MAINTAINER= johans@FreeBSD.org
COMMENT= The "Internet Relay Chat" Server
CONFLICTS_INSTALL= charybdis-[0-9]* ircd-hybrid-[0-9]* Nefarious-[0-9]* \
ru-ircd-hybrid-[0-9]* ircd-ru-[0-9]*
USE_RC_SUBR= ircd
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/ircd
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 <bsd.port.mk>