moved into main repo for pisi 2.0
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import cmaketools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
WorkDir = "openal-soft-%s" % get.srcVERSION()
|
||||
|
||||
def setup():
|
||||
options = "-DALSA=1 \
|
||||
-DPULSEAUDIO=1 \
|
||||
-DOSS=1 \
|
||||
-DEXAMPLES=OFF"
|
||||
|
||||
if get.buildTYPE() == "emul32":
|
||||
options += " -DCMAKE_INSTALL_PREFIX=/emul32 \
|
||||
-DLIB_SUFFIX=32"
|
||||
shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS())
|
||||
|
||||
cmaketools.configure(options)
|
||||
|
||||
def build():
|
||||
cmaketools.make()
|
||||
|
||||
def install():
|
||||
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
|
||||
# is there any "libdir" prefix for cmake ?
|
||||
if get.buildTYPE() == "emul32":
|
||||
from distutils.dir_util import copy_tree
|
||||
copy_tree("%s/emul32/lib32/" % get.installDIR(), "%s/usr/lib32" % get.installDIR())
|
||||
pisitools.removeDir("/emul32")
|
||||
pisitools.dosed("%s/usr/lib32/pkgconfig/openal.pc" % get.installDIR(), "emul32", "usr")
|
||||
return
|
||||
|
||||
pisitools.dodoc("COPYING", "alsoftrc.sample")
|
||||
@@ -0,0 +1,32 @@
|
||||
--- OpenAL32/Include/alu.h.orig
|
||||
+++ OpenAL32/Include/alu.h
|
||||
@@ -224,6 +224,29 @@
|
||||
return a0*mu*mu2 + a1*mu2 + a2*mu + a3;
|
||||
}
|
||||
|
||||
+#if defined(_FPU_GETCW) && defined(_FPU_SETCW)
|
||||
+ #ifndef _FPU_EXTENDED
|
||||
+ #define _FPU_EXTENDED 0
|
||||
+ #endif
|
||||
+ #ifndef _FPU_DOUBLE
|
||||
+ #define _FPU_DOUBLE 0
|
||||
+ #endif
|
||||
+ #ifndef _FPU_SINGLE
|
||||
+ #define _FPU_SINGLE 0
|
||||
+ #endif
|
||||
+ #ifndef _FPU_RC_NEAREST
|
||||
+ #define _FPU_RC_NEAREST 0
|
||||
+ #endif
|
||||
+ #ifndef _FPU_RC_DOWN
|
||||
+ #define _FPU_RC_DOWN 0
|
||||
+ #endif
|
||||
+ #ifndef _FPU_RC_UP
|
||||
+ #define _FPU_RC_UP 0
|
||||
+ #endif
|
||||
+ #ifndef _FPU_RC_ZERO
|
||||
+ #define _FPU_RC_ZERO 0
|
||||
+ #endif
|
||||
+#endif
|
||||
|
||||
static __inline int SetMixerFPUMode(void)
|
||||
{
|
||||
@@ -0,0 +1,17 @@
|
||||
diff -Nur openal-soft-1.13-old//CMakeLists.txt openal-soft-1.13/CMakeLists.txt
|
||||
--- openal-soft-1.13-old//CMakeLists.txt 2011-04-15 10:39:56.860000093 +0300
|
||||
+++ openal-soft-1.13/CMakeLists.txt 2011-04-15 11:30:47.593000620 +0300
|
||||
@@ -246,10 +246,10 @@
|
||||
MESSAGE(FATAL_ERROR "No sleep function found!")
|
||||
ENDIF()
|
||||
|
||||
- CHECK_C_COMPILER_FLAG(-pthread HAVE_PTHREAD)
|
||||
+ CHECK_C_COMPILER_FLAG(-lpthread HAVE_PTHREAD)
|
||||
IF(HAVE_PTHREAD)
|
||||
- ADD_DEFINITIONS(-pthread)
|
||||
- SET(EXTRA_LIBS ${EXTRA_LIBS} -pthread)
|
||||
+ ADD_DEFINITIONS(-lpthread)
|
||||
+ SET(EXTRA_LIBS ${EXTRA_LIBS} -lpthread)
|
||||
ENDIF()
|
||||
|
||||
# We need pthreads outside of Windows
|
||||
@@ -0,0 +1,91 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>openal</Name>
|
||||
<Homepage>http://kcat.strangesoft.net/openal.html</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>LGPLv2</License>
|
||||
<IsA>library</IsA>
|
||||
<Summary>Open Audio Library is a vendor-neutral API for interactive spatialized audio</Summary>
|
||||
<Description>OpenAL is a cross-platform 3D audio API appropriate for use with gaming applications and many other types of audio applications. The basic OpenAL objects are a Listener, a Source, and a Buffer.</Description>
|
||||
<Archive sha1sum="a0e73a46740c52ccbde38a3912c5b0fd72679ec8" type="tarbz2">http://kcat.strangesoft.net/openal-releases/openal-soft-1.15.1.tar.bz2</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>alsa-lib-devel</Dependency>
|
||||
<Dependency>pulseaudio-libs-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<Patch level="1">pthread.patch</Patch>
|
||||
<Patch level="0">no-fpuextended.patch</Patch>
|
||||
<!-- <Patch level="1">openal-soft-1.14-x86.patch</Patch> -->
|
||||
<!-- <Patch level="0">libsndio-dlopen-change.patch</Patch> -->
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>openal</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>alsa-lib</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="doc">/usr/share/doc/openal</Path>
|
||||
<Path fileType="data">/usr/share/openal</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>openal-devel</Name>
|
||||
<Summary>Development files for openal</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">openal</Dependency>
|
||||
<Dependency>pulseaudio</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="data">/usr/lib/pkgconfig/openal.pc</Path>
|
||||
<Path fileType="data">/usr/lib32/pkgconfig/openal.pc</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>openal-32bit</Name>
|
||||
<PartOf>emul32</PartOf>
|
||||
<Summary>32-bit shared libraries for openal</Summary>
|
||||
<BuildType>emul32</BuildType>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">openal</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib32</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="3">
|
||||
<Date>2014-05-25</Date>
|
||||
<Version>1.15.1</Version>
|
||||
<Comment>Rebuild.</Comment>
|
||||
<Name>Alihan Öztürk</Name>
|
||||
<Email>alihan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2014-02-01</Date>
|
||||
<Version>1.15.1</Version>
|
||||
<Comment>Version Bump.</Comment>
|
||||
<Name>Alihan Öztürk</Name>
|
||||
<Email>alihan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2012-08-31</Date>
|
||||
<Version>1.14</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Fatih Turgel</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>openal</Name>
|
||||
<Summary xml:lang="tr">Açık ses kütüphanesi</Summary>
|
||||
<Description xml:lang="tr">OpenAL, oyun uygulamaları ve diğer birçok audio uygulama tipleriyle kullanılmaya tahsisli bir üç boyutlu audio API(Uygulama Programlama Arayüzü) çapraz platformudur.</Description>
|
||||
<Description xml:lang="fr">OpenAL est une API audio 3D multi-plateforme utilisable pour les jeux et beaucoup d'autre types d'application audio. Les objets de base d'OpenAL sont le Listener (auditeur), a Source (source), et le Buffer (tampon).</Description>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>openal-devel</Name>
|
||||
<Summary xml:lang="tr">openal için geliştirme dosyaları</Summary>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>openal-32bit</Name>
|
||||
<Summary xml:lang="tr">openal için 32-bit paylaşımlı kitaplıklar</Summary>
|
||||
</Package>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user