From 2d925172b5ecf4363b1671bdfa9b0ff2dcbd6547 Mon Sep 17 00:00:00 2001 From: adamw Date: Sat, 17 Dec 2016 22:30:45 +0000 Subject: Fix build against SSL from ports. The -L${ICONV_PREFIX}/lib prevents cc from finding the correct libcrypto/libssl, so quick-fix this by only adding -L${ICONV_PREFIX}/lib if it's something other than /usr/lib. Also, use USES=ssl. PORTREVISION bump for the potential ldd change. --- irc/ircII/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'irc') diff --git a/irc/ircII/Makefile b/irc/ircII/Makefile index 5e6733022e99..868248352ada 100644 --- a/irc/ircII/Makefile +++ b/irc/ircII/Makefile @@ -3,6 +3,7 @@ PORTNAME= ircii PORTVERSION= 20151120 +PORTREVISION= 1 CATEGORIES= irc ipv6 MASTER_SITES= http://ircii.warped.com/ @@ -23,7 +24,7 @@ IRCBUG_DESC= Install ircII bug-reporting script EMACS_KEYS_DESC=Use emacs meta keys EMACS_KEYS_CONFIGURE_WITH= emacs-meta-keys -OPENSSL_USE= OPENSSL=yes +OPENSSL_USES= ssl .include @@ -33,8 +34,10 @@ CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE} CONFIGURE_ARGS+= --without-openssl .endif +.if ${ICONV_PREFIX} != /usr CPPFLAGS+= -I${ICONV_PREFIX}/include LDFLAGS+= -L${ICONV_PREFIX}/lib +.endif post-patch: @${REINPLACE_CMD} -e '/^mandir =/s/@mandir@/$${DESTDIR}&/' \ -- cgit