Created Compile and install on macOS using macports (markdown)

Jonas Kvinge 2021-07-18 11:43:15 +02:00
parent 31a88dc126
commit 7009cf9685
1 changed files with 38 additions and 0 deletions

@ -0,0 +1,38 @@
macports does not currently have Qt 6 in their repository, so you need to compile with Qt 5 instead.
First install xcode tools:
xcode-select --install
Download and install macports from: https://www.macports.org/install.php
Prepare macports:
port -v selfupdate
Install dependencies through port:
sudo port -N install glib2 pkgconfig cmake boost protobuf-cpp sqlite3 gnutls chromaprint fftw
sudo port -N install qt5-qtbase qt5-qttools qt5-sqlite-plugin
sudo port -N install gstreamer1 gstreamer1-gst-plugins-base gstreamer1-gst-plugins-good gstreamer1-gst-plugins-bad gstreamer1-gst-plugins-ugly gstreamer1-gst-libav
sudo port -N install libcdio libmtp
Install create-dmg:
sudo port -N install npm7
sudo npm install --global create-dmg
Get code, compile and create DMG:
git clone https://github.com/strawberrymusicplayer/strawberry
cd strawberry
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH=/opt/local/lib/cmake -DBUILD_WITH_QT5=ON -DUSE_BUNDLE=ON -DENABLE_SPARKLE=OFF
make -j$(nproc)
make install
make dmg
Install:
To install, either open the DMG, drag Strawberry over to Applications, or manually copy the strawberry.app folder over to /Applications/