This commit is contained in:
Rmys
2022-07-28 10:04:22 +03:00
parent a7da65c41a
commit 1566ed3fe3
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 autotools
from pisi.actionsapi import pisitools from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools from pisi.actionsapi import shelltools
from pisi.actionsapi import cmaketools
#WorkDir = "audacity-minsrc-%s" % get.srcVERSION() #WorkDir = "audacity-minsrc-%s" % get.srcVERSION()
def setup(): def setup():
autotools.autoreconf("-vfi") #autotools.autoreconf("-vfi")
shelltools.cd("lib-src/portmixer") #shelltools.cd("lib-src/portmixer")
shelltools.cd("../..") #shelltools.cd("../..")
autotools.aclocal("-I m4") #autotools.aclocal("-I m4")
autotools.autoconf() #autotools.autoconf()
shelltools.export("LIBS", "-lavcodec") #shelltools.export("LIBS", "-lavcodec")
#shelltools.export("WX_CONFIG=wx-config-gtk3 ./configure", "/usr/bin/wxconfig") #shelltools.export("WX_CONFIG=wx-config-gtk3 ./configure", "/usr/bin/wxconfig")
# suppress compiler warnings # 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") #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 \ shelltools.makedirs("build")
--with-sbsms \ shelltools.cd("build")
--prefix=/usr \
--with-libmad \ cmaketools.configure("-D CMAKE_INSTALL_PREFIX=/usr \
--with-taglib \ -D audacity_conan_enabled=OFF \
--without-lv2 \ -D audacity_has_networking=OFF \
--with-libvamp \ -D audacity_has_crashreports=OFF \
--with-libflac \ -D audacity_has_updates_check=OFF \
--enable-ladspa \ -D audacity_has_sentry_reporting=OFF \
--enable-nyquist \ -D audacity_lib_preference=system \
--with-libvorbis \ -D audacity_use_lv2:STRING=local \
--with-libid3tag \ -D audacity_use_portsmf:STRING=local \
--with-soundtouch \ -Daudacity_use_sbsms:STRING=local \
--with-libtwolame \ -D wxWidgets_CONFIG_EXECUTABLE:FILEPATH=/usr/bin/wx-config-gtk3 \
--with-lame=system \ -D audacity_obey_system_dependencies=ON", sourceDir="..")
--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")
def build(): def build():
autotools.make() shelltools.cd("build")
cmaketools.make()
def install(): 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> <PartOf>multimedia.sound</PartOf>
<License>GPLv2</License> <License>GPLv2</License>
<IsA>app:gui</IsA> <IsA>app:gui</IsA>
<Icon>Audacity</Icon> <Icon>audacity</Icon>
<Summary>Multi-track audio editor and recorder</Summary> <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> <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> <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>lv2-devel</Dependency>
<Dependency>flac-devel</Dependency> <Dependency>flac-devel</Dependency>
<Dependency>gtk3-devel</Dependency> <Dependency>gtk3-devel</Dependency>
<Dependency>gtk2-devel</Dependency>
<Dependency>lame-devel</Dependency> <Dependency>lame-devel</Dependency>
<Dependency>expat-devel</Dependency> <Dependency>expat-devel</Dependency>
<Dependency>glib2-devel</Dependency> <Dependency>glib2-devel</Dependency>
@@ -31,7 +32,9 @@
<Dependency>libogg-devel</Dependency> <Dependency>libogg-devel</Dependency>
<Dependency>taglib-devel</Dependency> <Dependency>taglib-devel</Dependency>
<Dependency>twolame-devel</Dependency> <Dependency>twolame-devel</Dependency>
<Dependency>libsoxr-devel</Dependency>
<Dependency>alsa-lib-devel</Dependency> <Dependency>alsa-lib-devel</Dependency>
<Dependency>portmidi-devel</Dependency>
<Dependency>libid3tag-devel</Dependency> <Dependency>libid3tag-devel</Dependency>
<Dependency>libvorbis-devel</Dependency> <Dependency>libvorbis-devel</Dependency>
<Dependency>libsndfile-devel</Dependency> <Dependency>libsndfile-devel</Dependency>
@@ -41,6 +44,9 @@
<Dependency>libsamplerate-devel</Dependency> <Dependency>libsamplerate-devel</Dependency>
<Dependency>vamp-plugin-sdk-devel</Dependency> <Dependency>vamp-plugin-sdk-devel</Dependency>
<Dependency>jack-audio-connection-kit-devel</Dependency> <Dependency>jack-audio-connection-kit-devel</Dependency>
<Dependency>lv2-devel</Dependency>
<Dependency>portaudio-devel</Dependency>
</BuildDependencies> </BuildDependencies>
<Patches> <Patches>
<Patch level="1">342c4b588f2f069a2df2157ac166237a54277b3a.patch</Patch> <Patch level="1">342c4b588f2f069a2df2157ac166237a54277b3a.patch</Patch>
@@ -54,6 +60,7 @@
<RuntimeDependencies> <RuntimeDependencies>
<Dependency>lv2</Dependency> <Dependency>lv2</Dependency>
<Dependency>flac</Dependency> <Dependency>flac</Dependency>
<Dependency>gtk2</Dependency>
<Dependency>gtk3</Dependency> <Dependency>gtk3</Dependency>
<Dependency>expat</Dependency> <Dependency>expat</Dependency>
<Dependency>glib2</Dependency> <Dependency>glib2</Dependency>
@@ -63,10 +70,14 @@
<Dependency>libgcc</Dependency> <Dependency>libgcc</Dependency>
<Dependency>wxBase</Dependency> <Dependency>wxBase</Dependency>
<Dependency>wxGTK3</Dependency> <Dependency>wxGTK3</Dependency>
<Dependency>libX11</Dependency>
<Dependency>twolame</Dependency> <Dependency>twolame</Dependency>
<Dependency>libsoxr</Dependency>
<Dependency>alsa-lib</Dependency> <Dependency>alsa-lib</Dependency>
<Dependency>portmidi</Dependency>
<Dependency>libid3tag</Dependency> <Dependency>libid3tag</Dependency>
<Dependency>libvorbis</Dependency> <Dependency>libvorbis</Dependency>
<Dependency>portaudio</Dependency>
<Dependency>libsndfile</Dependency> <Dependency>libsndfile</Dependency>
<Dependency>soundtouch</Dependency> <Dependency>soundtouch</Dependency>
<Dependency>gdk-pixbuf</Dependency> <Dependency>gdk-pixbuf</Dependency>
@@ -81,6 +92,7 @@
<Files> <Files>
<Path fileType="man">/usr/share/man</Path> <Path fileType="man">/usr/share/man</Path>
<Path fileType="executable">/usr/bin</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/mime</Path>
<Path fileType="data">/usr/share/icons</Path> <Path fileType="data">/usr/share/icons</Path>
<Path fileType="data">/usr/share/pixmaps</Path> <Path fileType="data">/usr/share/pixmaps</Path>
@@ -89,6 +101,7 @@
<Path fileType="doc">/usr/share/doc/audacity</Path> <Path fileType="doc">/usr/share/doc/audacity</Path>
<Path fileType="localedata">/usr/share/locale</Path> <Path fileType="localedata">/usr/share/locale</Path>
<Path fileType="data">/usr/share/applications</Path> <Path fileType="data">/usr/share/applications</Path>
<Path fileType="data">/usr/share/metainfo/audacity.appdata.xml</Path>
</Files> </Files>
</Package> </Package>