freebsd-ports/multimedia/audacious-plugins/files/patch-src_lirc_meson.build
Guido Falsi f1eca31885 multimedia/audacious-plugins: Import upstreamed build patches
- Expose OPUS option and enable it by default
- Fix lame detection which enables mp3 filewriter plugin (suggested
  by upstream developer Thomas Lange)

Obtained from:	https://github.com/audacious-media-player/audacious-plugins/pull/132
2023-03-13 22:20:50 +01:00

22 lines
666 B
Text

--- src/lirc/meson.build.orig 2023-03-05 17:51:20 UTC
+++ src/lirc/meson.build
@@ -1,13 +1,16 @@
-lirc_dep = cxx.find_library('lirc', required: false)
-have_lirc = lirc_dep.found() and cxx.has_header('lirc/lirc_client.h')
+lirc_dep = dependency('lirc', required: false)
+if not lirc_dep.found()
+ lirc_dep = cxx.find_library('lirc_client', has_headers: 'lirc/lirc_client.h', required: false)
+endif
+have_lirc = lirc_dep.found()
+
if have_lirc
shared_module('lirc',
'lirc.cc',
dependencies: [audacious_dep, glib_dep, lirc_dep],
name_prefix: '',
- link_args: ['-llirc_client'],
install: true,
install_dir: general_plugin_dir
)