Skip to content

Commit

Permalink
Merge pull request #2471 from pygame-community/ankith26-deps-updates-2
Browse files Browse the repository at this point in the history
Make mpg123, fluidsynth and sndfile not link directly to lower-level audio playback libs
  • Loading branch information
MyreMylar authored Oct 26, 2023
2 parents e042788 + 8f9fec0 commit 049bbdb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,17 @@ cd $FSYNTH
mkdir build
cd build

if [[ "$OSTYPE" == "darwin"* ]]; then
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
export FLUIDSYNTH_EXTRA_PLAT_FLAGS="-Denable-alsa=NO -Denable-systemd=NO"
elif [[ "$OSTYPE" == "darwin"* ]]; then
# We don't need fluidsynth framework on mac builds
export FLUIDSYNTH_EXTRA_MAC_FLAGS="-Denable-framework=NO"
export FLUIDSYNTH_EXTRA_PLAT_FLAGS="-Denable-framework=NO"
fi

cmake .. $PG_BASE_CMAKE_FLAGS -Denable-readline=OFF $FLUIDSYNTH_EXTRA_MAC_FLAGS
cmake .. $PG_BASE_CMAKE_FLAGS -Denable-readline=OFF $FLUIDSYNTH_EXTRA_PLAT_FLAGS \
-Denable-pulseaudio=NO \
-Denable-pipewire=NO

make
make install

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ bzip2 -d ${MPG123}.tar.bz2
tar xf ${MPG123}.tar
cd $MPG123

./configure $ARCHS_CONFIG_FLAG --enable-int-quality --disable-debug
./configure $ARCHS_CONFIG_FLAG --enable-int-quality --disable-debug \
--disable-components --enable-libmpg123 --enable-libsyn123
make
make install

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ tar xf ${SNDFILE}
cd $SNDNAME
# autoreconf -fvi

./configure $ARCHS_CONFIG_FLAG --disable-mpeg
# alsa is only needed for examples here
./configure $ARCHS_CONFIG_FLAG --disable-mpeg --disable-alsa
make
make install

Expand Down

0 comments on commit 049bbdb

Please sign in to comment.