summaryrefslogtreecommitdiff
path: root/audacity/Pkgfile
blob: 5b6dee48a6c8eb6dcd6c5f79bc344e74efef63f5 (plain)
    1 # Description: Audio recording and editing program
    2 # URL: https://www.audacityteam.org/
    3 # Maintainer: Danny Rawlins, crux at romster dot me
    4 # Depends on: jack-audio-connection-kit libid3tag libmad libsoxr lilv soundtouch suil twolame vamp-plugin-sdk wxgtk3
    5 # Optional: portsmf
    6 
    7 name=audacity
    8 version=2.4.2
    9 release=1
   10 source=(https://github.com/$name/$name/archive/Audacity-$version.tar.gz
   11 	lame.pc)
   12 
   13 build() {
   14 	# included in src/AboutDialog.cpp but not supplied in source tarball
   15 	touch $name-Audacity-$version/include/RevisionIdent.h
   16 
   17 	# cmake can't find libmp3lame without a .pc file
   18 	cp $SRC/lame.pc $name-Audacity-$version/lame.pc
   19 
   20 	export WX_CONFIG=wx-config-gtk3
   21 	export PKG_CONFIG_PATH="$PWD:$PKG_CONFIG_PATH"
   22 
   23 	[ -e '/usr/bin/ccache' ] && PATH=$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')
   24 
   25 	cmake -S $name-Audacity-$version -B build -G Ninja \
   26 		-D CMAKE_INSTALL_PREFIX=/usr \
   27 		-D CMAKE_INSTALL_LIBDIR=lib \
   28 		-D CMAKE_BUILD_TYPE=Release \
   29 		-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
   30 		-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
   31 		-D BUILD_SHARED_LIBS=True \
   32 		-Wno-dev \
   33 
   34 	cmake --build build
   35 	DESTDIR=$PKG cmake --install build
   36 
   37 #	install -vDm 644 plug-ins/*.ny -t $PKG/usr/share/$name/plug-ins
   38 #	install -vDm 644 nyquist/*.lsp -t $PKG/usr/share/$name/nyquist
   39 
   40 	rm -r $PKG/usr/share/{doc,locale}
   41 }

Generated by cgit