PREFIX=../../.. QMAKE_RPATHDIR=@executable_path/../Frameworks
-p src/Shotcut.app/Contents/MacOS/Shotcut ../../Contents/MacOS
$HOME/Projects/Shotcut/Contents/MacOS/Shotcut
QML2_IMPORT_PATH
to ${QTDIR}/qml
QT_PLUGIN_PATH
to ${QTDIR}/plugins
You still might need to get some dependencies from MacPorts (or Homebrew, untested).
You can use the following command to revise all of the pkg-config files to your installation path:
for f in Shotcut/Contents/Frameworks/lib/pkgconfig/*.pc; do sed -i .bak -e "s,/Users/ddennedy/BuildAgent/work/ef55b932ce3c3e94/shotcut/build,$HOME/Projects/Shotcut/Contents/Frameworks," -e 's,Frameworks/lib,Frameworks,' -e 's,${exec_prefix}/lib,${exec_prefix},' $f ; done
You might want to put the following into ~/.profile or a setup script:
export PATH="$HOME/Projects/Shotcut/Contents/MacOS:$PATH"
export QTDIR="$HOME/Qt/5.8.7/clang_64"
export PKG_CONFIG_PATH="$HOME/Projects/Shotcut/Contents/Frameworks/lib/pkgconfig"
export CFLAGS="-I/opt/local/include -DRELOCATABLE"
export CXXFLAGS="$CFLAGS"
export LDFLAGS="-L/opt/local/lib/libomp"
Sometimes, you need to make distclean
and re-run configure
to make a clean
in-tree (non-shadow) build. MLT has a ./reconfigure
script that invokes the
configure with the same arguments as the previous run.