mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-05 04:47:14 +02:00
28 lines
1.1 KiB
Diff
28 lines
1.1 KiB
Diff
Patch-Source: https://github.com/archlinux/svntogit-community/blob/9d9b3d8f2b48a61848634ef48812a72b574ddd2c/trunk/pd-0.52.1-system_portmidi.patch
|
|
--
|
|
diff -ruN a/configure.ac b/configure.ac
|
|
--- a/configure.ac 2021-12-20 00:21:34.000000000 +0100
|
|
+++ b/configure.ac 2021-12-20 18:37:26.445665793 +0100
|
|
@@ -422,9 +422,7 @@
|
|
portmidi=no])
|
|
AS_IF([test x$portmidi = xyes],[
|
|
AS_IF([test x$local_portmidi = xno],[
|
|
- # fall back to local portmidi if not foud
|
|
- AC_CHECK_LIB([portmidi], [Pm_Initialize],
|
|
- [AC_MSG_NOTICE([Using system PortMidi])], [local_portmidi=yes])
|
|
+ PKG_CHECK_MODULES([LIBPORTMIDI], [portmidi])
|
|
])
|
|
AS_IF([test x$local_portmidi = xyes],[
|
|
AS_IF([test -d "$srcdir/portmidi"],[
|
|
diff -ruN a/src/Makefile.am b/src/Makefile.am
|
|
--- a/src/Makefile.am 2021-12-20 00:21:34.000000000 +0100
|
|
+++ b/src/Makefile.am 2021-12-20 18:37:51.975761871 +0100
|
|
@@ -292,7 +292,7 @@
|
|
pd_LDADD_standalone += $(top_builddir)/portmidi/libportmidi.a
|
|
else
|
|
# link the system's portmidi
|
|
-pd_LDADD_standalone += -lportmidi
|
|
+pd_LDADD_standalone += @LIBPORTMIDI_LIBS@
|
|
endif
|
|
|
|
# need Carbon framework for PM on Mac
|