This commit is contained in:
4fury-c3440d8
2020-09-22 17:35:17 +03:00
parent c41d82c813
commit 647cd35345
2 changed files with 55 additions and 58 deletions
+21 -22
View File
@@ -2,37 +2,36 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# #
# Licensed under the GNU General Public License, version 3. # Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt # See the file https://www.gnu.org/licenses/gpl-3.0.txt
from pisi.actionsapi import autotools from pisi.actionsapi import shelltools
from pisi.actionsapi import cmaketools from pisi.actionsapi import cmaketools
from pisi.actionsapi import pisitools from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get from pisi.actionsapi import get
def setup(): def setup():
shelltools.system("mkdir build_") shelltools.system("mkdir build_")
shelltools.cd("build_") shelltools.cd("build_")
shelltools.system("cmake .. \ shelltools.system("cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_EXAMPLES='OFF' \ -DBUILD_EXAMPLES='OFF' \
-DBUILD_SHARED_LIBS='ON' \ -DBUILD_SHARED_LIBS='ON' \
-DWITH_AVFFT='OFF' \ -DWITH_AVFFT='OFF' \
-DWITH_LSR_BINDINGS='ON' \ -DWITH_LSR_BINDINGS='ON' \
-DWITH_PFFFT='ON' \ -DWITH_PFFFT='ON' \
-DWITH_OPENMP='ON'") -DWITH_OPENMP='ON'")
def build(): def build():
shelltools.cd("build_") shelltools.cd("build_")
cmaketools.make() cmaketools.make()
def install(): def install():
shelltools.cd("build_") shelltools.cd("build_")
autotools.rawInstall("DESTDIR=%s" %get.installDIR()) autotools.rawInstall("DESTDIR=%s" %get.installDIR())
shelltools.cd("..") shelltools.cd("..")
pisitools.dodoc("AUTHORS", "COPYING.LGPL", "LICENCE", "NEWS", "README") pisitools.dodoc("AUTHORS", "COPYING.LGPL", "LICENCE", "NEWS", "README")
+34 -36
View File
@@ -1,59 +1,57 @@
<?xml version="1.0" ?> <?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd"> <!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI> <PISI>
<Source> <Source>
<Name>libsoxr</Name> <Name>libsoxr</Name>
<Homepage>http://sourceforge.net/p/soxr/wiki/Home/</Homepage> <Homepage>https://sourceforge.net/p/soxr/wiki/Home/</Homepage>
<Packager> <Packager>
<Name>Mathias Freire</Name> <Name>Mathias Freire</Name>
<Email>mathiasfreire45@gmail.com</Email> <Email>mathiasfreire45@gmail.com</Email>
</Packager> </Packager>
<License>GPL</License> <License>GPL</License>
<IsA>library</IsA> <IsA>library</IsA>
<Summary>The SoX Resampler library that aims to give fast and high quality results for any constant resampling ratio</Summary> <Summary>The SoX Resampler library that aims to give fast and high quality results for any constant resampling ratio</Summary>
<Description>The SoX Resampler library that aims to give fast and high quality results for any constant resampling ratio</Description> <Description>The SoX Resampler library that aims to give fast and high quality results for any constant resampling ratio</Description>
<Archive sha1sum="32ea46b1a8c0c15f835422892d02fce8286aec3c" type="tarxz">https://sourceforge.net/projects/soxr/files/soxr-0.1.3-Source.tar.xz</Archive> <Archive sha1sum="32ea46b1a8c0c15f835422892d02fce8286aec3c" type="tarxz">https://sourceforge.net/projects/soxr/files/soxr-0.1.3-Source.tar.xz</Archive>
<BuildDependencies> <BuildDependencies>
<Dependency>cmake</Dependency> <Dependency>cmake</Dependency>
</BuildDependencies> </BuildDependencies>
</Source> </Source>
<Package> <Package>
<Name>libsoxr</Name> <Name>libsoxr</Name>
<RuntimeDependencies> <RuntimeDependencies>
<Dependency>libgcc</Dependency> <Dependency>libgcc</Dependency>
<Dependency>libgomp</Dependency> <Dependency>libgomp</Dependency>
</RuntimeDependencies> </RuntimeDependencies>
<Files> <Files>
<Path fileType="executable">/usr/bin</Path> <Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path> <Path fileType="library">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc</Path> <Path fileType="doc">/usr/share/doc</Path>
<Path fileType="man">/usr/share/man</Path> <Path fileType="man">/usr/share/man</Path>
</Files> </Files>
</Package>
<Package>
<Name>libsoxr-devel</Name>
<Summary>Header files for libsoxr.</Summary>
<RuntimeDependencies>
<Dependency release="current">libsoxr</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="data">/usr/lib/pkgconfig</Path>
</Files>
</Package> </Package>
<History> <Package>
<Name>libsoxr-devel</Name>
<Summary>Header files for libsoxr.</Summary>
<RuntimeDependencies>
<Dependency release="current">libsoxr</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="data">/usr/lib/pkgconfig</Path>
</Files>
</Package>
<History>
<Update release="1"> <Update release="1">
<Date>2020-01-14</Date> <Date>2020-01-14</Date>
<Version>0.1.3</Version> <Version>0.1.3</Version>
<Comment>First release.</Comment> <Comment>First release.</Comment>
<Name>Idris Kalp</Name> <Name>Idris Kalp</Name>
<Email>idriskalp@gmail.com</Email> <Email>idriskalp@gmail.com</Email>
</Update> </Update>
</History> </History>
</PISI> </PISI>