summaryrefslogtreecommitdiff
path: root/irc
diff options
context:
space:
mode:
authorPeter Pentchev <roam@FreeBSD.org>2006-12-15 12:37:15 +0000
committerPeter Pentchev <roam@FreeBSD.org>2006-12-15 12:37:15 +0000
commita088911760de51a58add83c8c26964ca96dbf04c (patch)
tree925a0754e6fda34bd2d5309ab6042a0287ea09ce /irc
parentAssign maintainership to an internal Opera support list. (diff)
Fix the build if the REMOTE option has *not* been selected, and
there is *no* dependency on ftp/curl - even in that case, Unreal wants to use the c-ares resolver library! Reported by: krismail
Notes
Notes: svn path=/head/; revision=179852
Diffstat (limited to 'irc')
-rw-r--r--irc/unreal/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/irc/unreal/Makefile b/irc/unreal/Makefile
index 6318c7c13294..4c3579a911a9 100644
--- a/irc/unreal/Makefile
+++ b/irc/unreal/Makefile
@@ -21,6 +21,8 @@ DISTNAME= ${PORTNAME}${PORTVERSION}
MAINTAINER= gerrit.beine@gmx.de
COMMENT= Unreal - the next generation ircd
+LIB_DEPENDS= cares.1:${PORTSDIR}/dns/c-ares
+
WRKSRC= ${WRKDIR}/${PORTNAME}3.2
MODULESDIR= ${PREFIX}/lib/${PORTNAME}
@@ -33,6 +35,8 @@ USE_RC_SUBR= unrealircd.sh
SUB_LIST+= RUNDIR=${RUNDIR}
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --with-listen=5 \
--with-dpath=${CONFIGDIR} \
--with-spath=${PREFIX}/libexec/ircd \
@@ -42,6 +46,8 @@ CONFIGURE_ARGS= --with-listen=5 \
--with-permissions=0600 \
--with-fd-setsize=1024 \
--enable-dynamic-linking
+CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \
+ CFLAGS="${CPPFLAGS} ${CFLAGS}"
OPTIONS= HUB "Configure as a hub (otherwise configure as a leaf)" on \
NOSPOOF "Enable anti-spoof protection" off \
@@ -85,10 +91,8 @@ CONFIGURE_ARGS+= --enable-ssl
.endif
.if defined(WITH_REMOTE)
-LIB_DEPENDS+= cares.1:${PORTSDIR}/dns/c-ares curl.4:${PORTSDIR}/ftp/curl
+LIB_DEPENDS+= curl.4:${PORTSDIR}/ftp/curl
CONFIGURE_ARGS+= --enable-libcurl=${LOCALBASE}
-CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
.endif
.if defined(WITH_PREFIXAQ)