summaryrefslogtreecommitdiff
path: root/irc
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-08-29 17:11:48 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-08-29 17:11:48 +0000
commit70c727907183261e07d76e8b499094c4f0f12013 (patch)
tree380a2e5fa847b3a29dd735a03185f2abd8c29dd6 /irc
parentUpdate to bzr rev 5104. (diff)
Fix build on 8 and 9.
I hate fighting with sloppy autotools usage.
Notes
Notes: svn path=/head/; revision=366534
Diffstat (limited to 'irc')
-rw-r--r--irc/ircII/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/irc/ircII/Makefile b/irc/ircII/Makefile
index 260b9a602980..94f7b73aeaf2 100644
--- a/irc/ircII/Makefile
+++ b/irc/ircII/Makefile
@@ -13,7 +13,7 @@ LICENSE= BSD3CLAUSE
GNU_CONFIGURE= yes
DATADIR= ${PREFIX}/share/irc
-USES= tar:bzip2
+USES= tar:bzip2 iconv
OPTIONS_DEFINE= IRCBUG EMACS_KEYS OPENSSL
OPTIONS_DEFAULT=OPENSSL
@@ -33,9 +33,13 @@ CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE}
CONFIGURE_ARGS+= --without-openssl
.endif
+CPPFLAGS+= -I${ICONV_PREFIX}/include
+LDFLAGS+= -L${ICONV_PREFIX}/lib
+
post-patch:
@${REINPLACE_CMD} -e '/^mandir =/s/@mandir@/$$(DESTDIR)&/' \
- -e '/^LDFLAGS =/s/$$/ -s/' \
+ -e '/^LDFLAGS =/s/$$/ -s ${ICONV_LIB}/' \
+ -e '/^INCLUDES =/s|$$| -I${ICONV_PREFIX}/include -DHAVE_ICONV_OPEN|' \
${WRKSRC}/Makefile.in
post-install: