Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Mar 2019 12:26:00 +0000 (UTC)
From:      Koichiro Iwao <meta@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r496947 - head/net/xrdp
Message-ID:  <201903271226.x2RCQ0uh050680@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: meta
Date: Wed Mar 27 12:26:00 2019
New Revision: 496947
URL: https://svnweb.freebsd.org/changeset/ports/496947

Log:
  net/xrdp: Fix build on 13-CURRENT with base OpenSSL
  
  As base OpenSSL doesn't install a .pc file, some flags such as -lcrypto
  cannot be obtained automatically via pkgconfig. When compiled with base
  OpenSSL, it needs to be specified explicitly.
  
  Reported by:	pkg-fallout

Modified:
  head/net/xrdp/Makefile

Modified: head/net/xrdp/Makefile
==============================================================================
--- head/net/xrdp/Makefile	Wed Mar 27 12:01:47 2019	(r496946)
+++ head/net/xrdp/Makefile	Wed Mar 27 12:26:00 2019	(r496947)
@@ -60,6 +60,16 @@ MP3LAME_LIB_DEPENDS=	libmp3lame.so:audio/lame
 OPUS_CONFIGURE_ENABLE=	opus
 OPUS_LIB_DEPENDS=	libopus.so:audio/opus
 
+.include <bsd.port.pre.mk>
+
+.if ${SSL_DEFAULT} == base
+# As base OpenSSL doesn't install a .pc file, some flags such as -lcrypto
+# cannot be obtained automatically via pkgconfig. When compiled with base
+# OpenSSL, it needs to be specified explicitly.
+CONFIGURE_ENV+=	OPENSSL_CFLAGS="-I${OPENSSLINC}" \
+		OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto -lssl"
+.endif
+
 post-extract:
 	# librfxcodec is provided as git submodule
 	@${CP} -r ${WRKSRC_librfxcodec}/ ${WRKSRC}/librfxcodec/
@@ -79,4 +89,4 @@ post-stage:
 	@${MV} ${STAGEDIR}${PREFIX}/etc/xrdp/$f ${STAGEDIR}${PREFIX}/etc/xrdp/$f.sample
 .endfor
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>



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