contrib/audacity/Pkgfile

42 lines
1.3 KiB
Plaintext
Raw Normal View History

2020-04-22 16:47:22 +02:00
# Description: Audio recording and editing program
# URL: https://www.audacityteam.org/
# Maintainer: Danny Rawlins, crux at romster dot me
2020-07-08 12:00:36 +02:00
# Depends on: jack-audio-connection-kit libid3tag libmad libsoxr lilv soundtouch suil twolame vamp-plugin-sdk wxgtk3
2020-04-22 16:47:22 +02:00
# Optional: portsmf
name=audacity
2020-07-08 12:00:36 +02:00
version=2.4.2
2020-05-24 04:19:47 +02:00
release=1
2020-07-08 12:00:36 +02:00
source=(https://github.com/$name/$name/archive/Audacity-$version.tar.gz
lame.pc)
2020-04-22 16:47:22 +02:00
build() {
2020-07-08 12:00:36 +02: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 11:05:52 +01: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-07 00:48:58 +01:00
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
2020-11-08 11:05:52 +01:00
-D BUILD_SHARED_LIBS=True \
2020-11-07 16:42:14 +01:00
-Wno-dev \
2020-07-08 12:00:36 +02:00
cmake --build build
2020-07-08 15:01:36 +02:00
DESTDIR=$PKG cmake --install build
2020-07-08 12:00:36 +02: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 04:19:47 +02:00
2020-04-22 16:47:22 +02:00
rm -r $PKG/usr/share/{doc,locale}
}