Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Aug 2014 17:11:48 +0000 (UTC)
From:      Adam Weinberger <adamw@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r366534 - head/irc/ircII
Message-ID:  <201408291711.s7THBmqf063541@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408291711.s7THBmqf063541>