Last active
February 16, 2022 09:22
-
-
Save kerunaru/547ea71a6ee086be441eeca88a269630 to your computer and use it in GitHub Desktop.
Install MPD from source with GME support on macOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!#/bin/env bash | |
brew install meson boost pkg-config game-music-emu libressl | |
sudo mkdir -p /usr/local/opt/libressl/lib | |
sudo ln -s /opt/homebrew/Cellar/libressl/3.3.3/lib /usr/local/opt/libressl/lib | |
git clone https://github.com/MusicPlayerDaemon/MPD.git | |
cd MPD-master | |
export BOOST_ROOT=/opt/homebrew/Cellar/boost/1.76.0 | |
meson . output/release --buildtype=debugoptimized -Db_ndebug=true | |
meson configure output/release -Dgme=enabled | |
sed -ie "84s/.*/libgme_dep = c_compiler.find_library('gme', dirs: '\/opt\/homebrew\/Cellar\/game-music-emu\/0.6.3_2\/lib', required: get_option('gme'))/" src/decoder/plugins/meson.build | |
sed -ie "237s/.*/'\/opt\/homebrew\/Cellar\/boost\/1.76.0\/include', | |
'\/opt\/homebrew\/Cellar\/libid3tag\/0.16.1\/include', | |
'\/opt\/homebrew\/Cellar\/libnfs\/5.0.1\/include', | |
'\/opt\/homebrew\/Cellar\/game-music-emu\/0.6.3_2\/include', | |
'\/opt\/homebrew\/Cellar\/pcre\/8.45\/include',/" meson.build | |
ninja -C output/release | |
sudo ninja -C output/release install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment