[MacPorts] #64251: gr-fcdproplus 20190817-f1154db3 +python37 configure failure: command execution failed
MacPorts
noreply at macports.org
Tue Dec 28 12:16:57 UTC 2021
#64251: gr-fcdproplus 20190817-f1154db3 +python37 configure failure: command
execution failed
----------------------------+-----------------------------
Reporter: poison | Owner: michaelld
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords: Monterey x86_64
Port: gr-fcdproplus |
----------------------------+-----------------------------
Comment (by poison):
So, I was able in the end to build it, by patching the portfile (found
here: https://trac.macports.org/wiki/howto/PatchLocal)
It would be good to have a fix upstream, but I don't have the
time/knowledge right now to submit a good patch.
This is how I got it working:
== Portfile
Appended the last 2 lines, which were the output of `xcrun -find cc` and
`xcrun -find c++`
{{{
# disable because it fails to find Doxyfile.swig_doc.in
configure.args-append \
-DENABLE_DOXYGEN=OFF \
-DCMAKE_CXX_STANDARD=11 \
-DCMAKE_C_COMPILER="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc"
\
-DCMAKE_CXX_COMPILER="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++"
}}}
== files/cmakelists.txt.patch
Modified the line for FIND_PATH to also look into the explicit directories
{{{
-FIND_LIBRARY(HIDAPI_LIBRARY hidapi-libusb)
+FIND_PATH(HIDAPI_INCLUDES hidapi.h PATHS $ENV{CPATH}/hidapi
/opt/local/include /opt/local/include/hidapi)
+FIND_LIBRARY(HIDAPI_LIBRARY hidapi)
}}}
After this, I was able to install the port
Best,
Nicolas
--
Ticket URL: <https://trac.macports.org/ticket/64251#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list