Skip to content

Commit

Permalink
Build portaudio for MOD without alsa
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Dec 3, 2023
1 parent bef96c3 commit 491a829
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bootstrap-jack2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@ if [ "${LINUX}" -eq 1 ] || [ "${WIN32}" -eq 1 ]; then
PORTAUDIO_EXTRAFLAGS+=" --without-asihpi"
PORTAUDIO_EXTRAFLAGS+=" --without-oss"

if [ "${LINUX}" -eq 1 ]; then
if [ -n "${MODAUDIO}" ] && [ "${MODAUDIO}" -eq 1 ]; then
PORTAUDIO_EXTRAFLAGS+=" --without-alsa"
PORTAUDIO_EXTRAFLAGS+=" --with-jack"
elif [ "${LINUX}" -eq 1 ]; then
PORTAUDIO_EXTRAFLAGS+=" --with-alsa"
PORTAUDIO_EXTRAFLAGS+=" --with-jack"
else
Expand Down
3 changes: 3 additions & 0 deletions bootstrap-mod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ export PAWPAW_SKIP_LTO=1
# ---------------------------------------------------------------------------------------------------------------------
# run bootstrap dependencies

export MODAUDIO=1

./bootstrap-common.sh "${target}"
./bootstrap-jack2.sh "${target}"
./bootstrap-plugins.sh "${target}"
Expand Down Expand Up @@ -213,6 +215,7 @@ if [ "${LINUX}" -eq 1 ]; then
fi

download jack2 "${JACK2_VERSION}" "${JACK2_URL}" "" "git"
patch_file jack2 "${JACK2_VERSION}" "dbus/audio_reserve.c" "s/Jack audio server/MOD App/"
build_waf jack2 "${JACK2_VERSION}" "${JACK2_EXTRAFLAGS}"

# patch pkg-config file for static win32 builds
Expand Down

0 comments on commit 491a829

Please sign in to comment.