svn commit: r366534 - head/irc/ircII

Adam Weinberger adamw at FreeBSD.org
Fri Aug 29 17:11:49 UTC 2014


Author: adamw
Date: Fri Aug 29 17:11:48 2014
New Revision: 366534
URL: http://svnweb.freebsd.org/changeset/ports/366534
QAT: https://qat.redports.org/buildarchive/r366534/

Log:
  Fix build on 8 and 9.
  
  I hate fighting with sloppy autotools usage.

Modified:
  head/irc/ircII/Makefile

Modified: head/irc/ircII/Makefile
==============================================================================
--- head/irc/ircII/Makefile	Fri Aug 29 17:05:28 2014	(r366533)
+++ head/irc/ircII/Makefile	Fri Aug 29 17:11:48 2014	(r366534)
@@ -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=${OPENSS
 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:


More information about the svn-ports-all mailing list