libvisual:moved into main repo for pisi 2.0

This commit is contained in:
2015-07-21 16:12:26 +03:00
parent 41b3904339
commit a6b889e7da
5 changed files with 217 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
#!/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 get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
def setup():
autotools.configure("--enable-shared \
--disable-static \
--enable-nls \
--enable-threads")
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dodoc("ChangeLog", "NEWS", "TODO", "README", "AUTHORS")
@@ -0,0 +1,29 @@
diff -Nur libvisual-0.4.0-old/libvisual/lv_cpu.c libvisual-0.4.0/libvisual/lv_cpu.c
--- libvisual-0.4.0-old/libvisual/lv_cpu.c 2008-06-16 04:58:57.000000000 +0300
+++ libvisual-0.4.0/libvisual/lv_cpu.c 2008-06-16 04:59:32.000000000 +0300
@@ -76,7 +76,7 @@
/* The sigill handlers */
#if defined(VISUAL_ARCH_X86) //x86 (linux katmai handler check thing)
-#if defined(VISUAL_OS_LINUX) && defined(_POSIX_SOURCE) && defined(X86_FXSR_MAGIC)
+#if defined(VISUAL_OS_LINUX) && defined(_POSIX_SOURCE)
static void sigill_handler_sse( int signal, struct sigcontext sc )
{
/* Both the "xorps %%xmm0,%%xmm0" and "divps %xmm0,%%xmm1"
@@ -109,7 +109,7 @@
}
}
#endif
-#endif /* VISUAL_OS_LINUX && _POSIX_SOURCE && X86_FXSR_MAGIC */
+#endif /* VISUAL_OS_LINUX && _POSIX_SOURCE */
#if defined(VISUAL_OS_WIN32)
LONG CALLBACK win32_sig_handler_sse(EXCEPTION_POINTERS* ep)
@@ -143,6 +143,7 @@
static void check_os_altivec_support( void )
{
+ return;
#if defined(VISUAL_OS_DARWIN)
int sels[2] = {CTL_HW, HW_VECTORUNIT};
int has_vu = 0;
@@ -0,0 +1,61 @@
diff -ru libvisual-0.4.0.orig/libvisual/lv_cache.c libvisual-0.4.0/libvisual/lv_cache.c
--- libvisual-0.4.0.orig/libvisual/lv_cache.c 2009-03-07 17:17:38.000000000 +0000
+++ libvisual-0.4.0/libvisual/lv_cache.c 2009-03-07 17:25:26.000000000 +0000
@@ -32,7 +32,7 @@
static int cache_dtor (VisObject *object);
static int cache_remove_list_entry (VisCache *cache, VisListEntry **le);
-static inline void handle_request_reset (VisCache *cache, VisListEntry *le);
+static lv_inline void handle_request_reset (VisCache *cache, VisListEntry *le);
static int cache_dtor (VisObject *object)
{
@@ -74,7 +74,7 @@
}
-static inline void handle_request_reset (VisCache *cache, VisListEntry *le)
+static lv_inline void handle_request_reset (VisCache *cache, VisListEntry *le)
{
VisCacheEntry *centry;
diff -ru libvisual-0.4.0.orig/libvisual/lv_defines.h libvisual-0.4.0/libvisual/lv_defines.h
--- libvisual-0.4.0.orig/libvisual/lv_defines.h 2009-03-07 17:17:38.000000000 +0000
+++ libvisual-0.4.0/libvisual/lv_defines.h 2009-03-07 17:24:17.000000000 +0000
@@ -63,13 +63,13 @@
/* Compiler specific optimalization macros */
#if __GNUC__ >= 3
-# define inline inline __attribute__ ((always_inline))
+# define lv_inline inline __attribute__ ((always_inline))
# define __malloc __attribute__ ((malloc))
# define __packed __attribute__ ((packed))
# define VIS_LIKELY(x) __builtin_expect (!!(x), 1)
# define VIS_UNLIKELY(x) __builtin_expect (!!(x), 0)
#else
-# define inline /* no inline */
+# define lv_inline /* no inline */
# define __malloc /* no malloc */
# define __packed /* no packed */
# define VIS_LIKELY(x) (x)
diff -ru libvisual-0.4.0.orig/libvisual/lv_time.h libvisual-0.4.0/libvisual/lv_time.h
--- libvisual-0.4.0.orig/libvisual/lv_time.h 2009-03-07 17:17:38.000000000 +0000
+++ libvisual-0.4.0/libvisual/lv_time.h 2009-03-07 17:25:15.000000000 +0000
@@ -101,7 +101,7 @@
*
* @return Nothing.
*/
-static inline void visual_timer_tsc_get (uint32_t *lo, uint32_t *hi)
+static lv_inline void visual_timer_tsc_get (uint32_t *lo, uint32_t *hi)
{
#if defined(VISUAL_ARCH_X86) || defined(VISUAL_ARCH_X86_64)
__asm __volatile
@@ -115,7 +115,7 @@
}
/* FIXME use uint64_t here, make sure type exists */
-static inline unsigned long long visual_timer_tsc_get_returned ()
+static lv_inline unsigned long long visual_timer_tsc_get_returned ()
{
uint32_t lo, hi;
+89
View File
@@ -0,0 +1,89 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>libvisual</Name>
<Homepage>http://libvisual.sourceforge.net</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>LGPLv2.1</License>
<IsA>library</IsA>
<Summary>Abstraction library for audio visualisation plugins</Summary>
<Description>libvisual is an abstraction library that comes between applications and audio visualisation plugins.</Description>
<Archive sha1sum="54beb3d3b7ce0dbec8e82015f732803b97d51c30" type="tarbz2">mirrors://sourceforge/libvisual/libvisual-0.4.0.tar.bz2</Archive>
<Patches>
<Patch level="1">disable_altivec.patch</Patch>
<Patch level="1">libvisual-0.4.0-inlinedefineconflict.patch</Patch>
</Patches>
<BuildDependencies>
<!--<Dependency>glibc-32bit</Dependency>-->
</BuildDependencies>
</Source>
<Package>
<Name>libvisual</Name>
<Files>
<Path fileType="library">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="localedata">/usr/share/locale</Path>
</Files>
</Package>
<Package>
<Name>libvisual-32bit</Name>
<PartOf>emul32</PartOf>
<Summary>32-bit shared libraries for libvisual</Summary>
<BuildType>emul32</BuildType>
<BuildDependencies>
<Dependency>glibc-32bit</Dependency>
</BuildDependencies>
<Files>
<Path fileType="library">/usr/lib32</Path>
</Files>
<RuntimeDependencies>
<Dependency release="current">libvisual</Dependency>
<Dependency>glibc-32bit</Dependency>
</RuntimeDependencies>
</Package>
<Package>
<Name>libvisual-devel</Name>
<Summary>Development files for libvisual</Summary>
<RuntimeDependencies>
<Dependency release="current">libvisual</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="data">/usr/lib/pkgconfig</Path>
<Path fileType="data">/usr/lib32/pkgconfig</Path>
<!-- FIXME: Remove this if not necessary -->
<Path fileType="man">/usr/share/man/man3</Path>
</Files>
</Package>
<History>
<Update release="3">
<Date>2014-05-20</Date>
<Version>0.4.0</Version>
<Comment>Rebuild.</Comment>
<Name>Serdar Soytetir</Name>
<Email>kaptan@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2013-02-14</Date>
<Version>0.4.0</Version>
<Comment>Add emul32</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2010-10-12</Date>
<Version>0.4.0</Version>
<Comment>First release</Comment>
<Name>Pisi Linux Admins</Name>
<Email>admins@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,15 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>libvisual</Name>
<Summary xml:lang="tr">Ses canlandırma eklentileri için kütüphane</Summary>
<Description xml:lang="tr">libvisual, uygulamalar ve ses canlandırma eklentileri arasında yer alan bir soyutlama kütüphanesidir.</Description>
<Description xml:lang="fr">Libvisual est une librairie d'abstraction venant entre les applications et les plugins (greffons) de visualisation audio.</Description>
<Description xml:lang="es">Libvisual es una librería de abstracción que actúa entre aplicaciones y plugins con funciones audiovisuales.</Description>
</Source>
<Package>
<Name>libvisual-devel</Name>
<Summary xml:lang="tr">libvisual için geliştirme dosyaları</Summary>
</Package>
</PISI>