From owner-svn-ports-head@freebsd.org Fri Aug 26 06:38:03 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 91D3DBC401C; Fri, 26 Aug 2016 06:38:03 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 64BD619A8; Fri, 26 Aug 2016 06:38:03 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u7Q6c2Ww070285; Fri, 26 Aug 2016 06:38:02 GMT (envelope-from pi@FreeBSD.org) Received: (from pi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u7Q6c2VK070284; Fri, 26 Aug 2016 06:38:02 GMT (envelope-from pi@FreeBSD.org) Message-Id: <201608260638.u7Q6c2VK070284@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pi set sender to pi@FreeBSD.org using -f From: Kurt Jaeger Date: Fri, 26 Aug 2016 06:38:02 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r420894 - head/net-p2p/libtorrent X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2016 06:38:03 -0000 Author: pi Date: Fri Aug 26 06:38:02 2016 New Revision: 420894 URL: https://svnweb.freebsd.org/changeset/ports/420894 Log: net-p2p/libtorrent: Explicitly link with libcrypto - make sure that net-p2p/libtorrent links with libcrypto PR: 211223 Submitted by: Tobias Kortkamp Approved by: pipfstarrd@opmbx.org (maintainer) Modified: head/net-p2p/libtorrent/Makefile Modified: head/net-p2p/libtorrent/Makefile ============================================================================== --- head/net-p2p/libtorrent/Makefile Fri Aug 26 06:18:01 2016 (r420893) +++ head/net-p2p/libtorrent/Makefile Fri Aug 26 06:38:02 2016 (r420894) @@ -2,6 +2,7 @@ PORTNAME= libtorrent PORTVERSION= 0.13.6 +PORTREVISION= 1 CATEGORIES= net-p2p MASTER_SITES= http://rtorrent.net/downloads/ @@ -16,7 +17,8 @@ CONFLICTS_INSTALL= rblibtorrent-[0-9]* r USES= compiler:c++11-lang libtool pathfix pkgconfig ssl GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-debug -CONFIGURE_ENV= OPENSSL_LIBS="-L${OPENSSLBASE}/lib -ssl -crypto" OPENSSL_CFLAGS="-I${OPENSSLBASE}/include" +CONFIGURE_ENV= OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto" OPENSSL_CFLAGS="-I\ + ${OPENSSLINC}" INSTALL_TARGET= install-strip USE_LDCONFIG= yes @@ -24,6 +26,10 @@ OPTIONS_DEFINE= IPV6 KQUEUE OPTIONS_DEFAULT=KQUEUE KQUEUE_DESC= Use kqueue(2) support +# This makes sure that /usr/local/lib appears before /usr/lib when +# linking libtorrent to avoid linking with base's libcrypto. +MAKE_ARGS= LDFLAGS="${LDFLAGS}" + IPV6_CONFIGURE_ENABLE= ipv6 KQUEUE_CONFIGURE_WITH= kqueue @@ -43,7 +49,6 @@ EXTRA_PATCHES+= ${FILESDIR}/extra-clang .endif post-patch: - @${REINPLACE_CMD} -e 's|-O3|${CFLAGS}|' ${WRKSRC}/configure .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000000 @${FIND} ${WRKSRC} \( -name '*.h' -o -name '*.cc' \) -type f \ -exec ${REINPLACE_CMD} -e 's/tr1::/std::/g' {} \; \