summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorwiz <wiz>2006-07-03 23:29:50 +0000
committerwiz <wiz>2006-07-03 23:29:50 +0000
commitc9a7d495070491564e42ccefcce17d8528611923 (patch)
tree3275a37b5f752037911dc60d85a57d24544388a1 /audio
parente1029729a4c0153d47e56b32b5399bdbaa7502f5 (diff)
downloadpkgsrc-c9a7d495070491564e42ccefcce17d8528611923.tar.gz
Reimport of libvisual package under versioned filename.
Next release (0.4) breaks backward compatibility.
Diffstat (limited to 'audio')
-rw-r--r--audio/libvisual0.2/DESCR18
-rw-r--r--audio/libvisual0.2/Makefile28
-rw-r--r--audio/libvisual0.2/PLIST36
-rw-r--r--audio/libvisual0.2/buildlink3.mk18
-rw-r--r--audio/libvisual0.2/distinfo7
-rw-r--r--audio/libvisual0.2/hacks.mk12
-rw-r--r--audio/libvisual0.2/patches/patch-aa22
-rw-r--r--audio/libvisual0.2/patches/patch-ab45
8 files changed, 186 insertions, 0 deletions
diff --git a/audio/libvisual0.2/DESCR b/audio/libvisual0.2/DESCR
new file mode 100644
index 00000000000..8e7e86acf05
--- /dev/null
+++ b/audio/libvisual0.2/DESCR
@@ -0,0 +1,18 @@
+Libvisual is an abstraction library that comes between applications
+and audio visualisation plugins.
+
+Often when it comes to audio visualisation plugins or programs that
+create visuals, they depend on a player or something else; basically,
+there is no general framework that enabled application developers
+to easily access cool audio visualisation plugins. Libvisual wants
+to change this by providing an interface towards plugins and
+applications; through this easy to use interface applications can
+easily access plugins and, since the drawing is done by the
+application, it also enables the developer to draw the visual
+anywhere he wants.
+
+The framework also allows you to morph to different plugins and
+mix two at once; all kinds of neat tricks are possible using this
+method.
+
+This package contains the older 0.2 release, for backward compatibility.
diff --git a/audio/libvisual0.2/Makefile b/audio/libvisual0.2/Makefile
new file mode 100644
index 00000000000..95850f39203
--- /dev/null
+++ b/audio/libvisual0.2/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/07/03 23:29:50 wiz Exp $
+#
+
+DISTNAME= libvisual-0.2.0
+PKGNAME= libvisual0.2-0.2.0
+CATEGORIES= audio graphics
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libvisual/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://libvisual.sourceforge.net/
+COMMENT= Abstraction library between applications and audio visualisation plugins (0.2 branch)
+
+CONFLICTS+= libvisual<0.4.0
+
+USE_LANGUAGES= c c++
+USE_LIBTOOL= yes
+PKGCONFIG_OVERRIDE+= ${WRKSRC}/libvisual.pc.in
+GNU_CONFIGURE= yes
+USE_TOOLS+= pkg-config
+
+.include "../../mk/compiler.mk"
+
+.if !empty(CC_VERSION:Mgcc*)
+CPPFLAGS+= -mmmx
+.endif
+
+.include "../../mk/x11.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/audio/libvisual0.2/PLIST b/audio/libvisual0.2/PLIST
new file mode 100644
index 00000000000..2196f24746a
--- /dev/null
+++ b/audio/libvisual0.2/PLIST
@@ -0,0 +1,36 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/07/03 23:29:50 wiz Exp $
+include/libvisual/libvisual.h
+include/libvisual/lv_actor.h
+include/libvisual/lv_audio.h
+include/libvisual/lv_bin.h
+include/libvisual/lv_bmp.h
+include/libvisual/lv_color.h
+include/libvisual/lv_common.h
+include/libvisual/lv_cpu.h
+include/libvisual/lv_endianess.h
+include/libvisual/lv_error.h
+include/libvisual/lv_event.h
+include/libvisual/lv_fft.h
+include/libvisual/lv_input.h
+include/libvisual/lv_keysym.h
+include/libvisual/lv_libvisual.h
+include/libvisual/lv_list.h
+include/libvisual/lv_log.h
+include/libvisual/lv_mem.h
+include/libvisual/lv_morph.h
+include/libvisual/lv_object.h
+include/libvisual/lv_palette.h
+include/libvisual/lv_param.h
+include/libvisual/lv_plugin.h
+include/libvisual/lv_random.h
+include/libvisual/lv_songinfo.h
+include/libvisual/lv_thread.h
+include/libvisual/lv_time.h
+include/libvisual/lv_transform.h
+include/libvisual/lv_types.h
+include/libvisual/lv_ui.h
+include/libvisual/lv_video.h
+include/libvisual/lvconfig.h
+lib/libvisual.la
+lib/pkgconfig/libvisual.pc
+@dirrm include/libvisual
diff --git a/audio/libvisual0.2/buildlink3.mk b/audio/libvisual0.2/buildlink3.mk
new file mode 100644
index 00000000000..8486ec7f34e
--- /dev/null
+++ b/audio/libvisual0.2/buildlink3.mk
@@ -0,0 +1,18 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2006/07/03 23:29:50 wiz Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+LIBVISUAL0.2_BUILDLINK3_MK:= ${LIBVISUAL0.2_BUILDLINK3_MK}+
+
+.if ${BUILDLINK_DEPTH} == "+"
+BUILDLINK_DEPENDS+= libvisual0.2
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nlibvisual0.2}
+BUILDLINK_PACKAGES+= libvisual0.2
+
+.if ${LIBVISUAL0.2_BUILDLINK3_MK} == "+"
+BUILDLINK_API_DEPENDS.libvisual0.2+= libvisual0.2>=0.2.0
+BUILDLINK_PKGSRCDIR.libvisual0.2?= ../../audio/libvisual0.2
+.endif # LIBVISUAL0.2_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/audio/libvisual0.2/distinfo b/audio/libvisual0.2/distinfo
new file mode 100644
index 00000000000..42f0ce821de
--- /dev/null
+++ b/audio/libvisual0.2/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/07/03 23:29:50 wiz Exp $
+
+SHA1 (libvisual-0.2.0.tar.gz) = 8867f743c7407890c8cc571acab2fbcab869f3a1
+RMD160 (libvisual-0.2.0.tar.gz) = d933e849ffb8ce8f21d9d58e92fd104b137b718d
+Size (libvisual-0.2.0.tar.gz) = 431141 bytes
+SHA1 (patch-aa) = f7a0b011fa39996813bb7a8fe00aefdfaa680583
+SHA1 (patch-ab) = d4014e06622f59e31f4ee42dd24ce729e27b580d
diff --git a/audio/libvisual0.2/hacks.mk b/audio/libvisual0.2/hacks.mk
new file mode 100644
index 00000000000..b8ec7aad46c
--- /dev/null
+++ b/audio/libvisual0.2/hacks.mk
@@ -0,0 +1,12 @@
+# $NetBSD: hacks.mk,v 1.1.1.1 2006/07/03 23:29:50 wiz Exp $
+
+.if !defined(LIBVISUAL_HACKS_MK)
+LIBVISUAL_HACKS_MK= # defined
+
+# [ Mon Jan 2 13:49:14 CET 2006 : jmmv ]
+# -funroll-loops breaks the inlined MMX code in libvisual/lv_video_mmx.c.
+# It adds an immediate value to a movd instruction that does not let it
+# compile.
+BUILDLINK_TRANSFORM+= rm:-funroll-loops
+
+.endif
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
+