svn commit: r496947 - head/net/xrdp
Koichiro Iwao
meta at FreeBSD.org
Wed Mar 27 12:26:02 UTC 2019
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>
More information about the svn-ports-head
mailing list