aboutsummaryrefslogtreecommitdiff
path: root/sysutils/syslog-ng
diff options
context:
space:
mode:
authorLars Engels <lme@FreeBSD.org>2011-06-21 19:04:24 +0000
committerLars Engels <lme@FreeBSD.org>2011-06-21 19:04:24 +0000
commit0f7765c494a2fda81b87437699c7dfaeb7eef8e2 (patch)
tree75ec9b43fd9326141260acaea64719c047f24006 /sysutils/syslog-ng
parent5ca7cf7d9e12b4211712d662cac799d94c4269a1 (diff)
downloadports-0f7765c494a2fda81b87437699c7dfaeb7eef8e2.tar.gz
ports-0f7765c494a2fda81b87437699c7dfaeb7eef8e2.zip
- Fix build with clang [1]
- Proper use of CFLAGS Fixed by: ed
Notes
Notes: svn path=/head/; revision=276023
Diffstat (limited to 'sysutils/syslog-ng')
-rw-r--r--sysutils/syslog-ng/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/sysutils/syslog-ng/Makefile b/sysutils/syslog-ng/Makefile
index d381419935a5..88f385d4bab0 100644
--- a/sysutils/syslog-ng/Makefile
+++ b/sysutils/syslog-ng/Makefile
@@ -34,15 +34,18 @@ CONFIGURE_ARGS+= --enable-tcp-wrapper
.if defined(WITH_SPOOF_SOURCE)
LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config
-CONFIGURE_ENV= CFLAGS="`${LIBNET_CONFIG} --cflags`" \
- CPPFLAGS="`${LIBNET_CONFIG} --defines`" \
- LDFLAGS="`${LIBNET_CONFIG} --libs`"
+CONFIGURE_ENV= CFLAGS+="`${LIBNET_CONFIG} --cflags`" \
+ CPPFLAGS+="`${LIBNET_CONFIG} --defines`" \
+ LDFLAGS+="`${LIBNET_CONFIG} --libs`"
CONFIGURE_ARGS+= --enable-spoof-source
BUILD_DEPENDS+= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet
.endif
post-patch:
- @${REINPLACE_CMD} -e 's:libnet-config:libnet11-config:g' ${WRKSRC}/configure
+ @${REINPLACE_CMD} \
+ -e 's:libnet-config:libnet11-config:g' \
+ -e 's|int foo(void)||' \
+ ${WRKSRC}/configure
.if ${OSVERSION} >= 900007
@${REINPLACE_CMD} \
-e 's|utmp|utmpx|' -e 's|getutent|getutxent|' \