Browse Source

Build cmake sources in child directory

tags/v1.0
falkTX 4 years ago
parent
commit
e9268577e5
2 changed files with 13 additions and 3 deletions
  1. +10
    -0
      bootstrap.sh
  2. +3
    -3
      setup/functions.sh

+ 10
- 0
bootstrap.sh View File

@@ -26,6 +26,11 @@ fi
# - sed
# - tar

# TODO add these libraries
# - libsamplerate
# - opus (custom)
# - libdb (berkley, 4.8)

source setup/check_target.sh
source setup/env.sh
source setup/functions.sh
@@ -132,6 +137,11 @@ build_autoconf fftwf "${FFTW_VERSION}" "${FFTWF_EXTRAFLAGS}"
if [ "${MACOS}" -eq 1 ]; then
download aften "${AFTEN_VERSION}" "http://downloads.sourceforge.net/aften" "tar.bz2"
build_cmake aften "${AFTEN_VERSION}"
if [ ! -f "${PAWPAW_BUILDDIR}/aften-${AFTEN_VERSION}/.stamp_installed_libs2" ]; then
cp -v "${PAWPAW_BUILDDIR}/aften-${AFTEN_VERSION}/build/libaften_pcm.a" "${PAWPAW_PREFIX}/lib/libaften_pcm.a"
cp -v "${PAWPAW_BUILDDIR}/aften-${AFTEN_VERSION}/build/libaften_static.a" "${PAWPAW_PREFIX}/lib/libaften.a"
touch "${PAWPAW_BUILDDIR}/aften-${AFTEN_VERSION}/.stamp_installed_libs"
fi
fi

# ---------------------------------------------------------------------------------------------------------------------

+ 3
- 3
setup/functions.sh View File

@@ -205,21 +205,21 @@ function build_cmake() {
if [ ! -f "${pkgdir}/.stamp_configured" ]; then
pushd "${pkgdir}/build"
cmake -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_PREFIX="${PAWPAW_PREFIX}" ${extraconfrules} ..
touch .stamp_configured
touch ../.stamp_configured
popd
fi

if [ ! -f "${pkgdir}/.stamp_built" ]; then
pushd "${pkgdir}/build"
make ${MAKE_ARGS}
touch .stamp_built
touch ../.stamp_built
popd
fi

if [ ! -f "${pkgdir}/.stamp_installed" ]; then
pushd "${pkgdir}/build"
make ${MAKE_ARGS} install
touch .stamp_installed
touch ../.stamp_installed
popd
fi



Loading…
Cancel
Save