From 98ecfe2e24f91b18478ee3fbc3fd108b6369186b Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Wed, 15 Feb 2017 00:27:46 -0500 Subject: [PATCH] audacity: Add broken recipe. * audacity's configure script ignores most options thrown at it, like telling it to use system ffmpeg * it needs portaudio, which we don't have * other nasty thing --- .../audacity/audacity-2.1.2_git.recipe | 86 +++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 media-sound/audacity/audacity-2.1.2_git.recipe diff --git a/media-sound/audacity/audacity-2.1.2_git.recipe b/media-sound/audacity/audacity-2.1.2_git.recipe new file mode 100644 index 000000000..51d1ec955 --- /dev/null +++ b/media-sound/audacity/audacity-2.1.2_git.recipe @@ -0,0 +1,86 @@ +SUMMARY="Audio software for multi-track recording and editing" +DESCRIPTION="Audacity can be used to perform a number of audio editing and \ +recording tasks such as making ringtones, mixing stero tracks, transferring \ +tapes and records to computer or CD, splitting recordings into separate \ +tracks and more." +HOMEPAGE="http://www.audacityteam.org" +COPYRIGHT="1999-2017 by Audacity Team" +LICENSE="GNU GPL v2" +REVISION="1" +SOURCE_URI="https://github.com/audacity/audacity/archive/0ceae629648d900dc11967328ad32630f7f3f99f.tar.gz" +CHECKSUM_SHA256="e9eb1ad8c0a2b81dbb943f52ebe908549480108916f49ce0d6e9eb5997726349" +SOURCE_DIR="audacity-0ceae629648d900dc11967328ad32630f7f3f99f" +#PATCHES="cantata-$portVersion.patchset" + +ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64" +SECONDARY_ARCHITECTURES="?x86" + +PROVIDES=" + audacity$secondaryArchSuffix = $portVersion + app:Audacity$secondaryArchSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + wxqt$secondaryArchSuffix + lib:libintl$secondaryArchSuffix + lib:libiconv$secondaryArchSuffix + lib:libsndfile$secondaryArchSuffix +# lib:libid3tag$secondaryArchSuffix -- missing pkgconfig +# lib:libmad$secondaryArchSuffix -- missing pkgconfig +# lib:libflac$secondaryArchSuffix -- configure finds it but refuses to use??? + lib:libexpat$secondaryArchSuffix +# lib:libavcodec$secondaryArchSuffix -- configure finds it but refuses to use??? +# lib:libavformat$secondaryArchSuffix -- configure finds it but refuses to use??? +# lib:libavutil$secondaryArchSuffix -- configure finds it but refuses to use??? + lib:libz$secondaryArchSuffix #-- only because of intree flac + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + wxqt${secondaryArchSuffix}_devel + devel:libintl$secondaryArchSuffix + devel:libiconv$secondaryArchSuffix + devel:libsndfile$secondaryArchSuffix +# devel:libid3tag$secondaryArchSuffix +# devel:libmad$secondaryArchSuffix +# devel:libflac$secondaryArchSuffix + devel:libexpat$secondaryArchSuffix + devel:libavcodec$secondaryArchSuffix + devel:libavformat$secondaryArchSuffix + devel:libavutil$secondaryArchSuffix + devel:libz$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:pkg_config$secondaryArchSuffix + cmd:wx_config$secondaryArchSuffix + cmd:awk + cmd:diff + cmd:gettext$secondaryArchSuffix + cmd:which + cmd:make + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + " + +PATCH() +{ + # Hack in support for wxWidgets 3.1. + sed -i 's/3.0.\*)/3.1.\*)/g' configure + + # The lv2 configure script is a broken pile of garbage. + rm -rf lib-src/lv2/ +} + +BUILD() +{ + # Audacity's configure script is very broken, it won't use system + # stuff even if you tell it to. Go figure. + runConfigure ./configure --disable-dynamic-loading --without-libmad + make $jobArgs +} + +INSTALL() +{ + make install +}