Browse Source

Added rtaudio and portaudio, and a few changes needed for them

Signed-off-by: falkTX <falktx@falktx.com>
tags/v1.0
falkTX 4 years ago
parent
commit
c6140e8707
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
3 changed files with 48 additions and 3 deletions
  1. +22
    -0
      build-jack.sh
  2. +24
    -3
      setup/functions.sh
  3. +2
    -0
      setup/versions.sh

+ 22
- 0
build-jack.sh View File

@@ -96,6 +96,28 @@ build_custom_db db "${DB_VERSION}" "--disable-java --disable-replication --disab
download opus "${OPUS_VERSION}" "https://archive.mozilla.org/pub/opus"
build_autoconf opus "${OPUS_VERSION}" "--disable-extra-programs --enable-custom-modes --enable-float-approx"

# ---------------------------------------------------------------------------------------------------------------------
# rtaudio (download, win32 only)

if [ "${WIN32}" -eq 1 ]; then
download rtaudio "${RTAUDIO_VERSION}" "https://github.com/falkTX/rtaudio.git" "" "git"
# fixes for portaudio
link_file rtaudio "${RTAUDIO_VERSION}" "." "include/common"
link_file rtaudio "${RTAUDIO_VERSION}" "." "include/host"
link_file rtaudio "${RTAUDIO_VERSION}" "." "include/pc"
fi

# ---------------------------------------------------------------------------------------------------------------------
# portaudio (win32 only)

if [ "${WIN32}" -eq 1 ]; then
ASIO_DIR="${PAWPAW_BUILDDIR}/rtaudio-${RTAUDIO_VERSION}/include"
export EXTRA_CFLAGS="-I${ASIO_DIR}"
export EXTRA_CXXFLAGS="-I${ASIO_DIR}"
download portaudio19 "${PORTAUDIO_VERSION}" "http://deb.debian.org/debian/pool/main/p/portaudio19" "orig.tar.gz"
build_autoconf portaudio19 "${PORTAUDIO_VERSION}" "--enable-cxx --with-asiodir="${ASIO_DIR}" --with-winapi=asio"
fi

# ---------------------------------------------------------------------------------------------------------------------
# tre (win32 only)



+ 24
- 3
setup/functions.sh View File

@@ -29,6 +29,8 @@ function download() {
local dlurl
if echo ${dlbaseurl} | grep -q github.com; then
dlurl="${dlbaseurl}/v${version}.${dlext}"
elif [ "${dlext}" = "orig.tar.gz" ]; then
dlurl="${dlbaseurl}/${name}_${version}.${dlext}"
else
dlurl="${dlbaseurl}/${name}-${version}.${dlext}"
fi
@@ -72,9 +74,9 @@ function _prebuild() {
export CXX="${TARGET_CXX}"
export LD="${TARGET_LD}"
export STRIP="${TARGET_STRIP}"
export CFLAGS="${TARGET_CFLAGS}"
export CXXFLAGS="${TARGET_CXXFLAGS}"
export LDFLAGS="${TARGET_LDFLAGS}"
export CFLAGS="${TARGET_CFLAGS} ${EXTRA_CFLAGS}"
export CXXFLAGS="${TARGET_CXXFLAGS} ${EXTRA_CXXFLAGS}"
export LDFLAGS="${TARGET_LDFLAGS} ${EXTRA_LDFLAGS}"
export PKG_CONFIG_PATH="${TARGET_PKG_CONFIG_PATH}"

unset CPPFLAGS
@@ -113,6 +115,10 @@ function _postbuild() {
unset LDFLAGS
unset PKG_CONFIG_PATH

unset EXTRA_CFLAGS
unset EXTRA_CXXFLAGS
unset EXTRA_LDFLAGS

export PATH="${OLD_PATH}"
}

@@ -378,6 +384,21 @@ function patch_file() {
sed -i -e "${rule}" "${pkgdir}/${file}"
}

function link_file() {
local name="${1}"
local version="${2}"
local source="${3}"
local target="${4}"

local pkgdir="${PAWPAW_BUILDDIR}/${name}-${version}"

if [ ! -e "${pkgdir}/${target}" ]; then
pushd "${pkgdir}"
ln -sf "${source}" "${target}"
popd
fi
}

function remove_file() {
local name="${1}"
local version="${2}"


+ 2
- 0
setup/versions.sh View File

@@ -16,6 +16,8 @@ FFTW_VERSION=3.3.8
AFTEN_VERSION=0.0.8
DB_VERSION=5.3.28
OPUS_VERSION=1.3.1
PORTAUDIO_VERSION=19.6.0
RTAUDIO_VERSION=e03448bd15c1c34e842459939d755f5f89e880ed
TRE_VERSION=0.8.0

# GLIB_VERSION=2.44.1


Loading…
Cancel
Save