git: 75ff86d0e516 - main - multimedia/pipewire: Unbreak build with DEFAULT_VERSIONS=ssl=openssl3X
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 12 Oct 2023 20:14:40 UTC
The branch main has been updated by leres:
URL: https://cgit.FreeBSD.org/ports/commit/?id=75ff86d0e516e6291be7e25cc30bb14fbda10bf1
commit 75ff86d0e516e6291be7e25cc30bb14fbda10bf1
Author: Craig Leres <leres@FreeBSD.org>
AuthorDate: 2023-10-12 20:14:10 +0000
Commit: Craig Leres <leres@FreeBSD.org>
CommitDate: 2023-10-12 20:14:10 +0000
multimedia/pipewire: Unbreak build with DEFAULT_VERSIONS=ssl=openssl3X
Use OPENSSL_API_COMPAT to fix build on FreeBSD 13.2 with
DEFAULT_VERSIONS=ssl=openssl3[012]
PR: 274419
Approved by: arrowd (maintainer)
---
multimedia/pipewire/Makefile | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/multimedia/pipewire/Makefile b/multimedia/pipewire/Makefile
index fb37bef94710..d5d154acd4e5 100644
--- a/multimedia/pipewire/Makefile
+++ b/multimedia/pipewire/Makefile
@@ -109,4 +109,10 @@ post-install-MEDIASESSION-on:
${INSTALL_DATA} ${WRKDIR}/10-alsa-default.conf \
${STAGEDIR}${ETCDIR}/${PORTNAME}.conf.d
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${SSL_DEFAULT:C,3[0-9],3,} == openssl3
+CFLAGS+= -DOPENSSL_API_COMPAT=0x10100000L
+.endif
+
+.include <bsd.port.post.mk>