Skip to content

Commit

Permalink
pulseaudio: Fix build on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
triaxx committed Aug 22, 2023
1 parent 753a194 commit 8bf70f9
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
4 changes: 2 additions & 2 deletions audio/pulseaudio/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.179 2023/07/18 12:56:06 nia Exp $
# $NetBSD: Makefile,v 1.180 2023/08/22 16:18:51 triaxx Exp $

DISTNAME= pulseaudio-16.1
PKGREVISION= 4
PKGREVISION= 5
CATEGORIES= audio
MASTER_SITES= https://freedesktop.org/software/pulseaudio/releases/
EXTRACT_SUFX= .tar.xz
Expand Down
3 changes: 2 additions & 1 deletion audio/pulseaudio/distinfo
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
$NetBSD: distinfo,v 1.86 2022/11/24 12:56:03 adam Exp $
$NetBSD: distinfo,v 1.87 2023/08/22 16:18:51 triaxx Exp $

BLAKE2s (pulseaudio-16.1.tar.xz) = 47f70e6e61a1848ecac531244782db89f3c7bae5fbaac11b87c3375c35201ed6
SHA512 (pulseaudio-16.1.tar.xz) = 33b0b4292f05e0882f3ec822cf5720414bb34c523d80fe287b9740d6be219787c562e8024c9b0d9e2ee010771ca72c7ae4f27df1bbef9c9cb6bb6a23cbcc412f
Size (pulseaudio-16.1.tar.xz) = 1545596 bytes
SHA1 (patch-meson.build) = eaaf0e7959e640e35e593972a19ce457569c1890
SHA1 (patch-src_daemon_meson.build) = 20f2909ceaea27d43ef2cb5fb228952f8376fb3c
SHA1 (patch-src_meson.build) = 91781da6bdad6f526d8c05aa0221d38067a1b8c4
SHA1 (patch-src_modules_meson.build) = 5b7ae120b183640daede4a986a34ffb76b3d3a60
SHA1 (patch-src_modules_module-detect.c) = 72605c7d9392be7217dab2fbd9ecc85ed02021aa
SHA1 (patch-src_modules_oss_module-oss.c) = d373b855138a931640be7bf5271a33b402b549e5
SHA1 (patch-src_modules_raop_raop-client.h) = 9fb7ae86a6852022f53aee3765777bd136250ffb
Expand Down
29 changes: 29 additions & 0 deletions audio/pulseaudio/patches/patch-src_modules_meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
$NetBSD: patch-src_modules_meson.build,v 1.1 2023/08/22 16:18:51 triaxx Exp $

Fix macOS build.
https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/746

--- src/modules/meson.build.orig 2022-06-21 10:54:48.000000000 +0000
+++ src/modules/meson.build
@@ -293,6 +293,12 @@ all_modules += [
# FIXME: meson doesn't support multiple RPATH arguments currently
rpath_dirs = join_paths(privlibdir) + ':' + join_paths(modlibexecdir)

+if host_machine.system() != 'windows' and host_machine.system() != 'darwin'
+ no_undefined_args = ['-Wl,--no-undefined']
+else
+ no_undefined_args = []
+endif
+
foreach m : all_modules
name = m[0]
sources = m[1]
@@ -310,7 +316,7 @@ foreach m : all_modules
install_rpath : rpath_dirs,
install_dir : modlibexecdir,
dependencies : [thread_dep, libpulse_dep, libpulsecommon_dep, libpulsecore_dep, libintl_dep, platform_dep, platform_socket_dep] + extra_deps,
- link_args : [nodelete_link_args, '-Wl,--no-undefined' ],
+ link_args : [nodelete_link_args, no_undefined_args],
link_with : extra_libs,
name_prefix : '',
implicit_include_directories : false)

0 comments on commit 8bf70f9

Please sign in to comment.