diff --git a/audio/a2jmidid/Makefile b/audio/a2jmidid/Makefile index 6eaa38e7b771..fa6d8eebf2d5 100644 --- a/audio/a2jmidid/Makefile +++ b/audio/a2jmidid/Makefile @@ -1,36 +1,37 @@ PORTNAME= a2jmidid PORTVERSION= 9 PORTREVISION= 2 CATEGORIES= audio MAINTAINER= hselasky@FreeBSD.org COMMENT= ALSA to JACK MIDI bridge WWW= https://github.com/jackaudio/a2jmidid LICENSE= GPLv2+ LIB_DEPENDS= libasound.so:audio/alsa-lib \ libjack.so:audio/jack -USES= meson pkgconfig tar:bzip2 uidfix +USES= meson pkgconfig python:env shebangfix tar:bzip2 uidfix +SHEBANG_FILES= a2j_control USE_GITHUB= yes GH_ACCOUNT= jackaudio OPTIONS_DEFINE= DBUS DEBUG OPTIONS_DEFAULT= DBUS OPTIONS_SUB= yes DBUS_LIB_DEPENDS= libdbus-1.so:devel/dbus DBUS_MESON_OFF= "-Ddisable-dbus=true" DEBUG_CFLAGS= "-DDEBUG" .include .if ${ARCH} == powerpc64 || ${ARCH} == riscv64 MESON_ARGS+= -Db_lto=false .endif .include diff --git a/audio/a2jmidid/files/patch-meson.build b/audio/a2jmidid/files/patch-meson.build index 0365fdbf790a..3402e5fdff4e 100644 --- a/audio/a2jmidid/files/patch-meson.build +++ b/audio/a2jmidid/files/patch-meson.build @@ -1,18 +1,28 @@ ---- meson.build.orig 2022-02-11 10:51:29 UTC +--- meson.build.orig 2019-09-23 22:34:12 UTC +++ meson.build -@@ -17,6 +17,7 @@ dep_jack = dependency('jack') +@@ -3,8 +3,7 @@ project( + 'c', + default_options: [ + 'prefix=/usr/local', +- 'b_pie=true', +- 'b_lto=true' ++ 'b_pie=true' + ], + meson_version: '>=0.50.0', + license: 'GPL2+', +@@ -17,6 +16,7 @@ dep_jack = dependency('jack') dep_alsa = dependency('alsa') lib_dl = cc.find_library('dl') lib_pthread = cc.find_library('pthread') +lib_execinfo = cc.find_library('execinfo') deps_a2jmidid = [dep_alsa, dep_jack, lib_dl, lib_pthread] # source definitions -@@ -50,6 +51,7 @@ if get_option('disable-dbus') +@@ -50,6 +50,7 @@ if get_option('disable-dbus') else dep_dbus = dependency('dbus-1') deps_a2jmidid += [dep_dbus] + deps_a2jmidid += [lib_execinfo] dbus_data = configuration_data() dbus_data.set('bindir', join_paths(get_option('prefix'), get_option('bindir'))) dbus_data.set('dbus_service_dir', join_paths(get_option('prefix'), 'share', 'dbus-1', 'services'))