summaryrefslogtreecommitdiff
path: root/audio/openal
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2003-03-17 15:57:04 +0000
committerjmmv <jmmv@pkgsrc.org>2003-03-17 15:57:04 +0000
commit1d805b22c0c3259f2c74e1f1d09002b7af209af5 (patch)
tree58a949c3f5ace189ef0b8b94c0b287682ec8d10a /audio/openal
parent43db5b23258349423a2fec7cbc595dbee4ba4962 (diff)
downloadpkgsrc-1d805b22c0c3259f2c74e1f1d09002b7af209af5.tar.gz
Initial import of openal, version 20030125.
OpenAL is a 3D positional spatialized sound library analogous to OpenGL: instead of micromanaging each aspect of sound playback and effect, the application writer may limit himself to placing sounds in the scene and letting the native OpenAL implementation determine the correct amount of pitch alteration, gain attenuation, phase shift, etc., required to render the sounds correctly. Provided in PR pkg/20759 by Juan RP, with some changes by me.
Diffstat (limited to 'audio/openal')
-rw-r--r--audio/openal/DESCR6
-rw-r--r--audio/openal/Makefile26
-rw-r--r--audio/openal/PLIST19
-rw-r--r--audio/openal/buildlink2.mk24
-rw-r--r--audio/openal/distinfo6
-rw-r--r--audio/openal/patches/patch-aa30
-rw-r--r--audio/openal/patches/patch-ab83
7 files changed, 194 insertions, 0 deletions
diff --git a/audio/openal/DESCR b/audio/openal/DESCR
new file mode 100644
index 00000000000..e8b108e896b
--- /dev/null
+++ b/audio/openal/DESCR
@@ -0,0 +1,6 @@
+OpenAL is a 3D positional spatialized sound library analogous to OpenGL:
+instead of micromanaging each aspect of sound playback and effect, the
+application writer may limit himself to placing sounds in the scene and
+letting the native OpenAL implementation determine the correct amount of
+pitch alteration, gain attenuation, phase shift, etc., required to render
+the sounds correctly.
diff --git a/audio/openal/Makefile b/audio/openal/Makefile
new file mode 100644
index 00000000000..0e66182e127
--- /dev/null
+++ b/audio/openal/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/03/17 15:57:04 jmmv Exp $
+#
+
+DISTNAME= openal-20030125
+WRKSRC= ${WRKDIR}/${DISTNAME}fbsd/linux
+CATEGORIES= audio
+MASTER_SITES= http://math.smsu.edu/~erik/files/fbsd/ \
+ http://www.smluc.org/~erik/ \
+ http://csc.smsu.edu/~greenwald/
+
+MAINTAINER= jrp@hispabsd.org
+HOMEPAGE= http://www.openal.org/
+COMMENT= 3D positional spatialized sound library
+
+GNU_CONFIGURE= YES
+USE_BUILDLINK2= YES
+USE_GMAKE= YES
+
+INFO_FILES= openal.info
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/doc/openal.info ${PREFIX}/info
+
+.include "../../mk/pthread.buildlink2.mk"
+.include "../../mk/texinfo.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/audio/openal/PLIST b/audio/openal/PLIST
new file mode 100644
index 00000000000..cbbe3e800fd
--- /dev/null
+++ b/audio/openal/PLIST
@@ -0,0 +1,19 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/03/17 15:57:04 jmmv Exp $
+include/AL/al.h
+include/AL/alc.h
+include/AL/alctypes.h
+include/AL/alext.h
+include/AL/alexttypes.h
+include/AL/altypes.h
+include/AL/alu.h
+include/AL/alut.h
+include/AL/aluttypes.h
+include/AL/alutypes.h
+@unexec ${INSTALL_INFO} --delete --info-dir=%D/info %D/info/openal.info
+info/openal.info
+@exec ${INSTALL_INFO} --info-dir=%D/info %D/info/openal.info
+lib/libopenal.a
+lib/libopenal.so
+lib/libopenal.so.0
+lib/libopenal.so.0.0.6
+@dirrm include/AL
diff --git a/audio/openal/buildlink2.mk b/audio/openal/buildlink2.mk
new file mode 100644
index 00000000000..303f303a7c6
--- /dev/null
+++ b/audio/openal/buildlink2.mk
@@ -0,0 +1,24 @@
+# $NetBSD: buildlink2.mk,v 1.1.1.1 2003/03/17 15:57:05 jmmv Exp $
+#
+# This Makefile fragment is included by packages that use openal.
+#
+# This file was created automatically using createbuildlink 2.4.
+#
+
+.if !defined(OPENAL_BUILDLINK2_MK)
+OPENAL_BUILDLINK2_MK= # defined
+
+BUILDLINK_PACKAGES+= openal
+BUILDLINK_DEPENDS.openal?= openal>=20030125
+BUILDLINK_PKGSRCDIR.openal?= ../../audio/openal
+
+EVAL_PREFIX+= BUILDLINK_PREFIX.openal=openal
+BUILDLINK_PREFIX.openal_DEFAULT= ${LOCALBASE}
+BUILDLINK_FILES.openal+= include/AL/*
+BUILDLINK_FILES.openal+= lib/libopenal.*
+
+BUILDLINK_TARGETS+= openal-buildlink
+
+openal-buildlink: _BUILDLINK_USE
+
+.endif # OPENAL_BUILDLINK2_MK
diff --git a/audio/openal/distinfo b/audio/openal/distinfo
new file mode 100644
index 00000000000..a04f40ef92c
--- /dev/null
+++ b/audio/openal/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/03/17 15:57:05 jmmv Exp $
+
+SHA1 (openal-20030125.tar.gz) = 854abe0d351cdaa29a9d95bbc0f1bd00fc0b5ed6
+Size (openal-20030125.tar.gz) = 337668 bytes
+SHA1 (patch-aa) = cbb97881e7c60b227663cba6cf61bc3e585e3ade
+SHA1 (patch-ab) = 32c4cf9de6c45fb43bfa35b8c7ca4192e216e379
diff --git a/audio/openal/patches/patch-aa b/audio/openal/patches/patch-aa
new file mode 100644
index 00000000000..8a6c40efd05
--- /dev/null
+++ b/audio/openal/patches/patch-aa
@@ -0,0 +1,30 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/03/17 15:57:05 jmmv Exp $
+
+--- src/arch/bsd/bsd_dsp.c.orig 2003-01-07 02:37:11.000000000 +0000
++++ src/arch/bsd/bsd_dsp.c
+@@ -15,7 +15,13 @@
+
+ #include <assert.h>
+ #include <fcntl.h>
++#if defined(__FreeBSD__)
++#include <machine/soundcard.h>
++#elif defined(__NetBSD__) || defined(__OpenBSD__)
++#include <soundcard.h>
++#else
+ #include <sys/soundcard.h>
++#endif
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+@@ -212,7 +218,11 @@ void release_native(void *handle) {
+
+ handle_fd = *(int *) handle;
+
++#if defined(__NetBSD__) || defined(__OpenBSD__)
++ if(ioctl(handle_fd, SNDCTL_DSP_RESET, NULL) < 0) {
++#else
+ if(ioctl(handle_fd, SNDCTL_DSP_RESET) < 0) {
++#endif
+ #ifdef DEBUG_MAXIMUS
+ fprintf(stderr, "Couldn't reset dsp\n");
+ #endif
diff --git a/audio/openal/patches/patch-ab b/audio/openal/patches/patch-ab
new file mode 100644
index 00000000000..7def7c8b7ff
--- /dev/null
+++ b/audio/openal/patches/patch-ab
@@ -0,0 +1,83 @@
+$NetBSD: patch-ab,v 1.1.1.1 2003/03/17 15:57:05 jmmv Exp $
+
+--- configure.orig 2003-01-25 23:04:57.000000000 +0000
++++ configure
+@@ -3121,8 +3121,67 @@ LIBS=$ac_check_lib_save_LIBS
+ fi
+ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
+ echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
++
++if test $ac_cv_lib_dl_dlopen != yes; then
++ echo "$as_me:$LINENO: checking for dlopen in -lc" >&5
++echo $ECHO_N "checking for dlopen in -lc... $ECHO_C" >&6
++if test "${ac_cv_lib_c_dlopen+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ ac_check_lib_save_LIBS=$LIBS
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++#include "confdefs.h"
++
++/* Override any gcc2 internal prototype to avoid an error. */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++ builtin and then its argument prototype would still apply. */
++char dlopen ();
++#ifdef F77_DUMMY_MAIN
++# ifdef __cplusplus
++ extern "C"
++# endif
++ int F77_DUMMY_MAIN() { return 1; }
++#endif
++int
++main ()
++{
++dlopen ();
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++ (eval $ac_link) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest$ac_exeext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ ac_cv_lib_c_dlopen=yes
++else
++ echo "$as_me: failed program was:" >&5
++cat conftest.$ac_ext >&5
++ac_cv_lib_c_dlopen=no
++fi
++rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_c_dlopen" >&5
++echo "${ECHO_T}$ac_cv_lib_c_dlopen" >&6
++fi
+ if test $ac_cv_lib_dl_dlopen = yes; then
+ LIBS="$LIBS -ldl"
++elif test $ac_cv_lib_c_dlopen = yes; then
++ :
+ else
+
+ cat >>confdefs.h <<\_ACEOF
+@@ -5694,9 +5753,7 @@ else
+ echo "${ECHO_T}no" >&6
+ fi
+
+-if test $MAKEINFO = yes; then
+- MAKEINFO='makeinfo'
+-else
++if test $MAKEINFO = no; then
+ # for silly people without texinfo
+ MAKEINFO='@echo'
+ fi