2020-04-23 00:47:22 +10:00
|
|
|
# Description: Audio recording and editing program
|
|
|
|
# URL: https://www.audacityteam.org/
|
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2020-07-08 20:00:36 +10:00
|
|
|
# Depends on: jack-audio-connection-kit libid3tag libmad libsoxr lilv soundtouch suil twolame vamp-plugin-sdk wxgtk3
|
2020-04-23 00:47:22 +10:00
|
|
|
# Optional: portsmf
|
|
|
|
|
|
|
|
name=audacity
|
2020-07-08 20:00:36 +10:00
|
|
|
version=2.4.2
|
2020-05-24 12:19:47 +10:00
|
|
|
release=1
|
2020-07-08 20:00:36 +10:00
|
|
|
source=(https://github.com/$name/$name/archive/Audacity-$version.tar.gz
|
|
|
|
lame.pc)
|
2020-04-23 00:47:22 +10:00
|
|
|
|
|
|
|
build() {
|
2020-07-08 20:00:36 +10:00
|
|
|
# included in src/AboutDialog.cpp but not supplied in source tarball
|
|
|
|
touch $name-Audacity-$version/include/RevisionIdent.h
|
|
|
|
|
|
|
|
# cmake can't find libmp3lame without a .pc file
|
|
|
|
cp $SRC/lame.pc $name-Audacity-$version/lame.pc
|
|
|
|
|
|
|
|
export WX_CONFIG=wx-config-gtk3
|
|
|
|
export PKG_CONFIG_PATH="$PWD:$PKG_CONFIG_PATH"
|
|
|
|
|
|
|
|
[ -e '/usr/bin/ccache' ] && PATH=$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')
|
|
|
|
|
2020-11-08 10:05:52 +00:00
|
|
|
cmake -S $name-Audacity-$version -B build -G Ninja \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
2020-12-06 23:48:58 +00:00
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
2020-11-08 10:05:52 +00:00
|
|
|
-D BUILD_SHARED_LIBS=True \
|
2020-11-07 15:42:14 +00:00
|
|
|
-Wno-dev \
|
2020-07-08 20:00:36 +10:00
|
|
|
|
|
|
|
cmake --build build
|
2020-07-08 13:01:36 +00:00
|
|
|
DESTDIR=$PKG cmake --install build
|
2020-07-08 20:00:36 +10:00
|
|
|
|
|
|
|
# install -vDm 644 plug-ins/*.ny -t $PKG/usr/share/$name/plug-ins
|
|
|
|
# install -vDm 644 nyquist/*.lsp -t $PKG/usr/share/$name/nyquist
|
2020-05-24 12:19:47 +10:00
|
|
|
|
2020-04-23 00:47:22 +10:00
|
|
|
rm -r $PKG/usr/share/{doc,locale}
|
|
|
|
}
|