commit e51779d89417ff12ea037f3621bbb9c6e5c09442 Author: Matt Housh <jaeger@crux.nu> Date: Fri Jan 11 19:07:02 2008 -0600 openal: patch for ALCvoid compile errors in other apps diff --git a/openal/.md5sum b/openal/.md5sum index fba4524..1e95b2c 100644 --- a/openal/.md5sum +++ b/openal/.md5sum @@ -1 +1,2 @@ +949ef5eef5f8d50a60fce2ad8f08e141 openal-0.0.8-alcvoid.patch 641cf53761f35ee979f3e888614797a0 openal-0.0.8.tar.gz diff --git a/openal/Pkgfile b/openal/Pkgfile index 8e28cc7..d7862b4 100644 --- a/openal/Pkgfile +++ b/openal/Pkgfile @@ -5,11 +5,13 @@ name=openal version=0.0.8 -release=1 -source=(http://www.openal.org/openal_webstf/downloads/$name-$version.tar.gz) +release=2 +source=(http://www.openal.org/openal_webstf/downloads/$name-$version.tar.gz \ + $name-$version-alcvoid.patch) build() { cd $name-$version + patch -i $SRC/$name-$version-alcvoid.patch common/include/AL/alc.h ./configure --prefix=/usr \ --exec-prefix=/usr \ --enable-optimization \ diff --git a/openal/openal-0.0.8-alcvoid.patch b/openal/openal-0.0.8-alcvoid.patch new file mode 100644 index 0000000..c628a64 --- /dev/null +++ b/openal/openal-0.0.8-alcvoid.patch @@ -0,0 +1,20 @@ +--- alc.h.orig 2008-01-11 14:40:53.000000000 -0600 ++++ alc.h 2008-01-11 14:41:22.000000000 -0600 +@@ -187,7 +187,7 @@ + + ALC_API void ALC_APIENTRY alcDestroyContext( ALCcontext *context ); + +-ALC_API ALCcontext * ALC_APIENTRY alcGetCurrentContext( ALCvoid ); ++ALC_API ALCcontext * ALC_APIENTRY alcGetCurrentContext( void ); + + ALC_API ALCdevice* ALC_APIENTRY alcGetContextsDevice( ALCcontext *context ); + +@@ -248,7 +248,7 @@ + typedef void (ALC_APIENTRY *LPALCPROCESSCONTEXT)( ALCcontext *context ); + typedef void (ALC_APIENTRY *LPALCSUSPENDCONTEXT)( ALCcontext *context ); + typedef void (ALC_APIENTRY *LPALCDESTROYCONTEXT)( ALCcontext *context ); +-typedef ALCcontext * (ALC_APIENTRY *LPALCGETCURRENTCONTEXT)( ALCvoid ); ++typedef ALCcontext * (ALC_APIENTRY *LPALCGETCURRENTCONTEXT)( void ); + typedef ALCdevice * (ALC_APIENTRY *LPALCGETCONTEXTSDEVICE)( ALCcontext *context ); + typedef ALCdevice * (ALC_APIENTRY *LPALCOPENDEVICE)( const ALCchar *devicename ); + typedef ALCboolean (ALC_APIENTRY *LPALCCLOSEDEVICE)( ALCdevice *device );