mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-01 00:19:27 +02:00
Since XCode 10, Apple does not recommend building for macOS <10.9 Reason - 10.7 and 10.8 require libstdc++ We enforce libc++ ```# Shouldn't cmake do this??? string( APPEND CMAKE_CXX_FLAGS " -stdlib=libc++" )``` While this generally works, it makes the proper dependency management tricky. Compiler message for the library support: ``` clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated] ld: library not found for -lstdc++ ```
47 lines
1.1 KiB
Bash
47 lines
1.1 KiB
Bash
#!/usr/bin/env bash
|
|
|
|
conan --version
|
|
|
|
if [ ! -d "audacity" ]
|
|
then
|
|
git clone https://github.com/audacity/audacity
|
|
fi
|
|
|
|
mkdir -p build
|
|
|
|
cd build
|
|
|
|
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release \
|
|
-Daudacity_lib_preference=system \
|
|
-Daudacity_obey_system_dependencies=On \
|
|
-Daudacity_use_wxwidgets=local \
|
|
-Daudacity_use_expat=system \
|
|
-Daudacity_use_lame=system \
|
|
-Daudacity_use_sndfile=system \
|
|
-Daudacity_use_soxr=system \
|
|
-Daudacity_use_portaudio=local \
|
|
-Daudacity_use_sqlite=local \
|
|
-Daudacity_use_ffmpeg=loaded \
|
|
-Daudacity_use_id3tag=system \
|
|
-Daudacity_use_mad=system \
|
|
-Daudacity_use_nyquist=local \
|
|
-Daudacity_use_vamp=local \
|
|
-Daudacity_use_ogg=system \
|
|
-Daudacity_use_vorbis=system \
|
|
-Daudacity_use_flac=system \
|
|
-Daudacity_use_lv2=system \
|
|
-Daudacity_use_midi=system \
|
|
-Daudacity_use_portmixer=local \
|
|
-Daudacity_use_portsmf=system \
|
|
-Daudacity_use_sbsms=local \
|
|
-Daudacity_use_soundtouch=system \
|
|
-Daudacity_use_twolame=system \
|
|
../audacity
|
|
|
|
make -j`nproc`
|
|
|
|
cd bin/Release
|
|
mkdir -p "Portable Settings"
|
|
|
|
ls -la .
|