diff options
author | David W. Chapman Jr. <dwcjr@FreeBSD.org> | 2002-04-01 02:01:59 +0000 |
---|---|---|
committer | David W. Chapman Jr. <dwcjr@FreeBSD.org> | 2002-04-01 02:01:59 +0000 |
commit | 5299d2fd32581031fa1952740b64d4dd4865190f (patch) | |
tree | 0f37e67f246102f541e962956f8a6e5a36074f4d /audio/openal | |
parent | fb21b76a218c245c71be53adb008864a30562f9e (diff) |
Notes
Diffstat (limited to 'audio/openal')
-rw-r--r-- | audio/openal/Makefile | 23 | ||||
-rw-r--r-- | audio/openal/distinfo | 2 | ||||
-rw-r--r-- | audio/openal/files/patch-configure.in | 11 | ||||
-rw-r--r-- | audio/openal/files/patch-src.arch.bsd.bsd_dsp.c | 101 | ||||
-rw-r--r-- | audio/openal/files/patch-src:threads:posixthreads.c | 20 |
5 files changed, 10 insertions, 147 deletions
diff --git a/audio/openal/Makefile b/audio/openal/Makefile index 9fc525f0dd3b..be32d1d71fcc 100644 --- a/audio/openal/Makefile +++ b/audio/openal/Makefile @@ -6,26 +6,21 @@ # PORTNAME= openal -PORTVERSION= 20020217 +PORTVERSION= 20020329fbsd CATEGORIES= audio -MASTER_SITES= ftp://ftp.openal.org/pub/openal/ +MASTER_SITES= http://math.smsu.edu/~erik/files/fbsd/\ + http://smluc.org/~erik/\ + http://csc.smsu.edu/~greenwald/ -MAINTAINER= erik@smluc.org - -WRKSRC= ${WRKDIR}/tmp/${PORTNAME}/linux -USE_AUTOCONF= yes -INSTALLS_SHLIB= yes - -post-patch: - @${PERL} -pi -e 's|autoconf|${AUTOCONF}|; \ - s|autoheader|${AUTOHEADER}|' ${WRKSRC}/autogen.sh +MAINTAINER= erik@smluc.org -pre-configure: - @cd ${WRKSRC} && ${SH} autogen.sh +WRKSRC= ${WRKDIR}/${PORTNAME}/linux +GNU_CONFIGURE= yes +USE_GMAKE= yes post-install: ${INSTALL_DATA} ${WRKSRC}/doc/openal.info ${PREFIX}/info - @install-info ${PREFIX}/info/openal.info ${PREFIX}/info/dir + install-info ${PREFIX}/info/openal.info ${PREFIX}/info/dir .include <bsd.port.mk> diff --git a/audio/openal/distinfo b/audio/openal/distinfo index 4bf7b3b78f48..5c8f67ac65a1 100644 --- a/audio/openal/distinfo +++ b/audio/openal/distinfo @@ -1 +1 @@ -MD5 (openal-20020217.tar.gz) = d8664ed879cf878a740fe9721e91fca4 +MD5 (openal-20020329fbsd.tar.gz) = c0882ccf87e99a5898e36d06fbe01df6 diff --git a/audio/openal/files/patch-configure.in b/audio/openal/files/patch-configure.in deleted file mode 100644 index 2beaacd60449..000000000000 --- a/audio/openal/files/patch-configure.in +++ /dev/null @@ -1,11 +0,0 @@ ---- configure.in.orig Wed Feb 20 11:40:35 2002 -+++ configure.in Wed Feb 20 11:40:46 2002 -@@ -734,7 +734,7 @@ - - dnl Should we use turn warnings into errors? - if test x$SHOULD_USE_WERROR = xyes; then -- WFLAGS="$WFLAGS -Werror -pedantic-errors" -+ WFLAGS="$WFLAGS" - fi - - dnl if we are forced to live with redundant decls, turn off those errors diff --git a/audio/openal/files/patch-src.arch.bsd.bsd_dsp.c b/audio/openal/files/patch-src.arch.bsd.bsd_dsp.c deleted file mode 100644 index 48f8ca79e48c..000000000000 --- a/audio/openal/files/patch-src.arch.bsd.bsd_dsp.c +++ /dev/null @@ -1,101 +0,0 @@ ---- src/arch/bsd/bsd_dsp.c.orig Thu Apr 12 15:59:49 2001 -+++ src/arch/bsd/bsd_dsp.c Wed Feb 20 14:27:54 2002 -@@ -8,12 +8,16 @@ - * - */ - #include "al_siteconfig.h" -+#include "al_config.h" -+#include "al_main.h" -+#include "al_debug.h" -+#include "alc/alc_context.h" -+#include "arch/interface/interface_sound.h" -+#include "arch/bsd/bsd_dsp.h" - - #include <AL/altypes.h> --#include <AL/alkludge.h> -- --#include "al_siteconfig.h" - -+#include <errno.h> - #include <fcntl.h> - #include <machine/soundcard.h> - #include <stdio.h> -@@ -26,12 +30,6 @@ - #include <sys/types.h> - #include <unistd.h> - --#include "arch/interface/interface_sound.h" --#include "arch/bsd/bsd_dsp.h" -- --#include "al_main.h" --#include "al_debug.h" --#include "alc/alc_context.h" - - static int alcChannel_to_dsp_channel(ALuint alcc); - -@@ -101,9 +99,9 @@ - * dma buffer size. - * - */ --void *grab_native(void) { -+void *grab_write_native(void) { - const char *dsppath = "/dev/dsp"; -- int divisor = _alSpot(_AL_DEF_BUFSIZ) | (2<<16); -+ int divisor = _alSpot(_ALC_DEF_BUFSIZ) | (2<<16); - - dsp_fd = open(dsppath, O_WRONLY | O_NONBLOCK); - -@@ -219,7 +217,7 @@ - return; - } - --float get_nativechannel(UNUSED(void *handle), ALuint channel) { -+float get_nativechannel(UNUSED(void *handle), ALCenum channel) { - int retval = 0; - - channel = alcChannel_to_dsp_channel(channel); -@@ -242,7 +240,7 @@ - * - * Kludgey, and obviously not the right way to do this - */ --int set_nativechannel(UNUSED(void *handle), ALuint channel, float volume) { -+int set_nativechannel(UNUSED(void *handle), ALCenum channel, float volume) { - int unnormalizedvolume; - - unnormalizedvolume = volume * 100; -@@ -313,7 +311,7 @@ - UNUSED(unsigned int *bufsiz), - ALenum *fmt, - unsigned int *speed) { -- ALuint channels = _al_ALFORMAT(*fmt); -+ ALuint channels = _al_ALCHANNELS(*fmt); - - if(dsp_fd < 0) { - return AL_FALSE; -@@ -365,3 +363,26 @@ - UNUSED(unsigned int *speed)) { - return AL_FALSE; - } -+ -+ -+#define DONTCARE (1<<16) -+ -+static ALboolean use_select = AL_TRUE; -+ -+void *grab_read_native(void) -+{ -+ static int read_fd; -+ -+#ifndef CAPTURE_SUPPORT -+ return NULL; -+#endif -+ -+ read_fd = aquire_read(); -+ if( read_fd < 0) { -+ return NULL; -+ } -+ -+ return &read_fd; -+ -+} -+ diff --git a/audio/openal/files/patch-src:threads:posixthreads.c b/audio/openal/files/patch-src:threads:posixthreads.c deleted file mode 100644 index 31c66495f9a8..000000000000 --- a/audio/openal/files/patch-src:threads:posixthreads.c +++ /dev/null @@ -1,20 +0,0 @@ ---- src/threads/posixthreads.c.orig Wed May 9 12:40:39 2001 -+++ src/threads/posixthreads.c Wed Feb 20 12:37:03 2002 -@@ -19,6 +19,10 @@ - extern int pthread_atfork(void (*)(void), void (*)(void), void (*)(void)); - #endif - -+#if defined(BSD_TARGET) -+int pthread_atfork(void (*a)(void),void (*b)(void),void (*c)(void)){return -1;} -+#endif -+ - typedef int (*ptfunc)(void *); - - static void *RunThread(void *data) { -@@ -88,7 +92,7 @@ - } - - extern unsigned int Posix_SelfThread(void) { -- return (unsigned int) pthread_self(); -+ return (unsigned long)(unsigned long *) pthread_self(); - } |