Bugzilla – Bug 284
Audacity doesn't support using system portsmf
Last modified: 2018-08-20 11:45:21 UTC
"./configure --with-midi=system" will always tell you "configure: error: You requested using the system libraries for PORTSMF but they are not available", because it always modifies PKG_CONFIG_PATH to find the local pkg-config file first. m4/audacity_checklib_widgetextra.m4 should be modified to only set PKG_CONFIG_PATH if the system library is not requested.
Created attachment 76 [details] portsmf-configure.patch Here's the patch to detect the system portsmf version. Please don't forget to update configure after applying the patch.
Created attachment 77 [details] portsmf-configure-v2.patch Updated patch (fixed copy-paste mistake).
The PKG_CHECK_MODULES for the local .pc file does not work as expected, because $PORTSMF_LIBS and $PORTSMF_CFLAGS contains the information for dynamic linking, but you want to link the local library statically!
Created attachment 78 [details] portsmf-configure-v3.patch Updated patch again (forgot to add PORTSMF_SYSTEM_OPTOBJS).
Created attachment 92 [details] portsmf-configure-v4.patch Updated patch. If portSMF is installed in the system and a local portSMF is requested, Audacity really uses the local portSMF.
The fix was committed in r11038 and will be in audacity 1.3.13.