diff options
author | adamw <adamw@FreeBSD.org> | 2014-08-30 01:11:48 +0800 |
---|---|---|
committer | adamw <adamw@FreeBSD.org> | 2014-08-30 01:11:48 +0800 |
commit | c981bba6764bfa788371b21625669261cdbb0eda (patch) | |
tree | 380a2e5fa847b3a29dd735a03185f2abd8c29dd6 /irc | |
parent | 22068e5965935a8fc404186f7485e0fcdc271da2 (diff) | |
download | freebsd-ports-gnome-c981bba6764bfa788371b21625669261cdbb0eda.tar.gz freebsd-ports-gnome-c981bba6764bfa788371b21625669261cdbb0eda.tar.zst freebsd-ports-gnome-c981bba6764bfa788371b21625669261cdbb0eda.zip |
Fix build on 8 and 9.
I hate fighting with sloppy autotools usage.
Diffstat (limited to 'irc')
-rw-r--r-- | irc/ircII/Makefile | 8 |
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: |