Merge pull request #10561 from Rmys/master

audacity
This commit is contained in:
Rmys
2022-07-28 10:05:35 +03:00
committed by GitHub
2 changed files with 45 additions and 35 deletions
+31 -34
View File
@@ -8,49 +8,46 @@ from pisi.actionsapi import get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import cmaketools
#WorkDir = "audacity-minsrc-%s" % get.srcVERSION()
def setup():
autotools.autoreconf("-vfi")
shelltools.cd("lib-src/portmixer")
shelltools.cd("../..")
#autotools.autoreconf("-vfi")
#shelltools.cd("lib-src/portmixer")
#shelltools.cd("../..")
autotools.aclocal("-I m4")
autotools.autoconf()
shelltools.export("LIBS", "-lavcodec")
#autotools.aclocal("-I m4")
#autotools.autoconf()
#shelltools.export("LIBS", "-lavcodec")
#shelltools.export("WX_CONFIG=wx-config-gtk3 ./configure", "/usr/bin/wxconfig")
# suppress compiler warnings
pisitools.cxxflags.add("-Wno-unused-result -Wno-implicit-int -Wno-format-overflow -Wno-return-type -Wno-format-truncation -Wno-deprecated-declarations -Wno-unknown-pragmas -Wno-maybe-uninitialized -Wno-strict-prototypes -Wno-comment -Wno-implicit-function-declaration -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast -Wno-enum-compare -Wno-aligned-new -Wno-class-memaccess -Wno-unused-but-set-variable -Wno-misleading-indentation -Wno-unused-variable -Wno-reorder -Wno-unused-function -Wno-sign-compare -Wno-unused-value -Wno-pessimizing-move -Wno-reorder -Wno-switch")
autotools.configure("--enable-unicode \
--with-midi \
--with-sbsms \
--prefix=/usr \
--with-libmad \
--with-taglib \
--without-lv2 \
--with-libvamp \
--with-libflac \
--enable-ladspa \
--enable-nyquist \
--with-libvorbis \
--with-libid3tag \
--with-soundtouch \
--with-libtwolame \
--with-lame=system \
--with-expat=system \
--with-libsamplerate \
--with-ffmpeg=system \
--with-libsndfile=system \
--docdir=/usr/share/doc/audacity \
WX_CONFIG=/usr/bin/wx-config-gtk3 \
--with-lib-preference='system local' \
--with-portmixer")
#pisitools.cxxflags.add("-Wno-unused-result -Wno-implicit-int -Wno-format-overflow -Wno-return-type -Wno-format-truncation -Wno-deprecated-declarations -Wno-unknown-pragmas -Wno-maybe-uninitialized -Wno-strict-prototypes -Wno-comment -Wno-implicit-function-declaration -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast -Wno-enum-compare -Wno-aligned-new -Wno-class-memaccess -Wno-unused-but-set-variable -Wno-misleading-indentation -Wno-unused-variable -Wno-reorder -Wno-unused-function -Wno-sign-compare -Wno-unused-value -Wno-pessimizing-move -Wno-reorder -Wno-switch")
shelltools.makedirs("build")
shelltools.cd("build")
cmaketools.configure("-D CMAKE_INSTALL_PREFIX=/usr \
-D audacity_conan_enabled=OFF \
-D audacity_has_networking=OFF \
-D audacity_has_crashreports=OFF \
-D audacity_has_updates_check=OFF \
-D audacity_has_sentry_reporting=OFF \
-D audacity_lib_preference=system \
-D audacity_use_lv2:STRING=local \
-D audacity_use_portsmf:STRING=local \
-Daudacity_use_sbsms:STRING=local \
-D wxWidgets_CONFIG_EXECUTABLE:FILEPATH=/usr/bin/wx-config-gtk3 \
-D audacity_obey_system_dependencies=ON", sourceDir="..")
def build():
autotools.make()
shelltools.cd("build")
cmaketools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
shelltools.cd("build")
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dodir("/usr/share/audacity/help/manual")
pisitools.remove("/usr/audacity")
pisitools.dodir("/usr/share/audacity/help/manual")
+14 -1
View File
@@ -11,7 +11,7 @@
<PartOf>multimedia.sound</PartOf>
<License>GPLv2</License>
<IsA>app:gui</IsA>
<Icon>Audacity</Icon>
<Icon>audacity</Icon>
<Summary>Multi-track audio editor and recorder</Summary>
<Description>With Audacity, you can cut, copy, splice or mix sounds together; change the speed or pitch of a recording and much more. Editing is very fast and provides unlimited undo/redo. There are digital effects and spectrum analysis tools. Supported file formats include Ogg Vorbis, MP3, WAV, AIFF, and AU..</Description>
<Archive sha1sum="53dedd778c0e5bf5f3d85e34635e9494660ec5e5" type="targz">https://github.com/audacity/audacity/archive/Audacity-3.1.3.tar.gz</Archive>
@@ -21,6 +21,7 @@
<Dependency>lv2-devel</Dependency>
<Dependency>flac-devel</Dependency>
<Dependency>gtk3-devel</Dependency>
<Dependency>gtk2-devel</Dependency>
<Dependency>lame-devel</Dependency>
<Dependency>expat-devel</Dependency>
<Dependency>glib2-devel</Dependency>
@@ -31,7 +32,9 @@
<Dependency>libogg-devel</Dependency>
<Dependency>taglib-devel</Dependency>
<Dependency>twolame-devel</Dependency>
<Dependency>libsoxr-devel</Dependency>
<Dependency>alsa-lib-devel</Dependency>
<Dependency>portmidi-devel</Dependency>
<Dependency>libid3tag-devel</Dependency>
<Dependency>libvorbis-devel</Dependency>
<Dependency>libsndfile-devel</Dependency>
@@ -41,6 +44,9 @@
<Dependency>libsamplerate-devel</Dependency>
<Dependency>vamp-plugin-sdk-devel</Dependency>
<Dependency>jack-audio-connection-kit-devel</Dependency>
<Dependency>lv2-devel</Dependency>
<Dependency>portaudio-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">342c4b588f2f069a2df2157ac166237a54277b3a.patch</Patch>
@@ -54,6 +60,7 @@
<RuntimeDependencies>
<Dependency>lv2</Dependency>
<Dependency>flac</Dependency>
<Dependency>gtk2</Dependency>
<Dependency>gtk3</Dependency>
<Dependency>expat</Dependency>
<Dependency>glib2</Dependency>
@@ -63,10 +70,14 @@
<Dependency>libgcc</Dependency>
<Dependency>wxBase</Dependency>
<Dependency>wxGTK3</Dependency>
<Dependency>libX11</Dependency>
<Dependency>twolame</Dependency>
<Dependency>libsoxr</Dependency>
<Dependency>alsa-lib</Dependency>
<Dependency>portmidi</Dependency>
<Dependency>libid3tag</Dependency>
<Dependency>libvorbis</Dependency>
<Dependency>portaudio</Dependency>
<Dependency>libsndfile</Dependency>
<Dependency>soundtouch</Dependency>
<Dependency>gdk-pixbuf</Dependency>
@@ -81,6 +92,7 @@
<Files>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="data">/usr/share/mime</Path>
<Path fileType="data">/usr/share/icons</Path>
<Path fileType="data">/usr/share/pixmaps</Path>
@@ -89,6 +101,7 @@
<Path fileType="doc">/usr/share/doc/audacity</Path>
<Path fileType="localedata">/usr/share/locale</Path>
<Path fileType="data">/usr/share/applications</Path>
<Path fileType="data">/usr/share/metainfo/audacity.appdata.xml</Path>
</Files>
</Package>