summaryrefslogtreecommitdiff
path: root/audio/libvisual0.2/patches
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2006-07-03 23:29:50 +0000
committerwiz <wiz@pkgsrc.org>2006-07-03 23:29:50 +0000
commitd9178917ab8dea6e6ff6f939281791575b881e53 (patch)
tree3275a37b5f752037911dc60d85a57d24544388a1 /audio/libvisual0.2/patches
parentf04dbd7241e9d850e2d4211953bd4d768f92ae82 (diff)
downloadpkgsrc-d9178917ab8dea6e6ff6f939281791575b881e53.tar.gz
Reimport of libvisual package under versioned filename.
Next release (0.4) breaks backward compatibility.
Diffstat (limited to 'audio/libvisual0.2/patches')
-rw-r--r--audio/libvisual0.2/patches/patch-aa22
-rw-r--r--audio/libvisual0.2/patches/patch-ab45
2 files changed, 67 insertions, 0 deletions
diff --git a/audio/libvisual0.2/patches/patch-aa b/audio/libvisual0.2/patches/patch-aa
new file mode 100644
index 00000000000..03c11d79232
--- /dev/null
+++ b/audio/libvisual0.2/patches/patch-aa
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa,v 1.1.1.1 2006/07/03 23:29:50 wiz Exp $
+
+--- libvisual/lv_cpu.c.orig 2005-02-09 20:20:12.000000000 +0100
++++ libvisual/lv_cpu.c
+@@ -354,7 +354,7 @@ void visual_cpu_initialize ()
+ #endif
+
+ /* Count the number of CPUs in system */
+-#if !defined(VISUAL_OS_WIN32) && !defined(VISUAL_OS_UNKNOWN)
++#if !defined(VISUAL_OS_WIN32) && !defined(VISUAL_OS_UNKNOWN) && defined(_SC_NPROCESSORS_ONLN)
+ _lv_cpu_caps.nrcpu = sysconf (_SC_NPROCESSORS_ONLN);
+ if (_lv_cpu_caps.nrcpu == -1)
+ _lv_cpu_caps.nrcpu = 1;
+@@ -423,7 +423,7 @@ void visual_cpu_initialize ()
+ #endif
+ #endif /* VISUAL_ARCH_X86 */
+
+-#if VISUAL_ARCH_POWERPC
++#if defined(VISUAL_ARCH_POWERPC)
+ check_os_altivec_support ();
+ #endif /* VISUAL_ARCH_POWERPC */
+
diff --git a/audio/libvisual0.2/patches/patch-ab b/audio/libvisual0.2/patches/patch-ab
new file mode 100644
index 00000000000..8067ce67649
--- /dev/null
+++ b/audio/libvisual0.2/patches/patch-ab
@@ -0,0 +1,45 @@
+$NetBSD: patch-ab,v 1.1.1.1 2006/07/03 23:29:50 wiz Exp $
+
+gcc-2.95 does not know the i386 MMX registers used in the assembler
+statements, do disable them.
+
+--- configure.orig Sun Jan 9 23:17:45 2005
++++ configure Tue Apr 19 17:04:54 2005
+@@ -2046,7 +2046,7 @@ case "$host_os" in
+ solaris*) lv_solaris=yes;;
+ linux*) lv_linux=yes;;
+ *sco*) lv_sco=yes;;
+- freebsd*) lv_freebsd=yes;;
++ freebsd*|dragonfly*) lv_freebsd=yes;;
+ netbsd*) lv_netbsd=yes;;
+ openbsd*) lv_openbsd=yes;;
+ *darwin*) lv_darwin=yes;;
+@@ -21919,13 +21919,13 @@ echo "$as_me: WARNING: $AIX_COMPILE_INFO
+ *)
+ LV_THREAD_LIBS=error
+ lv_save_LIBS="$LIBS"
+- for thread_lib in "" pthread pthread32 pthreads thread dce; do
++ for thread_lib in "" -lpthread -lpthread32 -lpthreads -lthread -ldce -pthread; do
+ if test x"$thread_lib" = x; then
+ add_thread_lib=""
+ IN=""
+ else
+- add_thread_lib="-l$thread_lib"
+- IN=" in -l$thread_lib"
++ add_thread_lib="$thread_lib"
++ IN=" in $thread_lib"
+ fi
+ if test x"$have_threads" = xposix; then
+ defattr=0
+@@ -25450,7 +25450,11 @@ _______EOF
+ if test x$lv_ix86 = xyes ; then
+ cat >>$outfile <<_______EOF
+
++#if defined(__GNUC__) && __GNUC__ <= 2
++#define VISUAL_ARCH_UNKNOWN
++#else
+ #define VISUAL_ARCH_X86
++#endif
+ _______EOF
+ fi
+