From 75ff86d0e516e6291be7e25cc30bb14fbda10bf1 Mon Sep 17 00:00:00 2001 From: Craig Leres Date: Thu, 12 Oct 2023 13:14:10 -0700 Subject: [PATCH] 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 +.include + +.if ${SSL_DEFAULT:C,3[0-9],3,} == openssl3 +CFLAGS+= -DOPENSSL_API_COMPAT=0x10100000L +.endif + +.include