[oe-commits] org.oe.dev openal: add void workaround, otherwise gcc 4.2.1 doesn't want to compile

pH5 commit openembedded-commits at lists.openembedded.org
Sat Sep 22 18:03:43 UTC 2007


openal: add void workaround, otherwise gcc 4.2.1 doesn't want to compile 
anything including alc.h

Author: pH5 at openembedded.org
Branch: org.openembedded.dev
Revision: 23511875c3b44283d7f5f7c859da437758f2f0c6
ViewMTN: http://monotone.openembedded.org/revision/info/23511875c3b44283d7f5f7c859da437758f2f0c6
Files:
1
packages/openal/files
packages/openal/files/void-workaround.patch
packages/openal/openal_0.0.8.bb
Diffs:

#
# mt diff -ra312c0f1361962b9027e92e085611212b8a2c31e -r23511875c3b44283d7f5f7c859da437758f2f0c6
#
# 
# 
# add_dir "packages/openal/files"
# 
# add_file "packages/openal/files/void-workaround.patch"
#  content [0dd50b799c1778c3ebd2a8bf898b930c3a1b03db]
# 
# patch "packages/openal/openal_0.0.8.bb"
#  from [48e1e3567cbddb28867a3a9613942c82cc37ed0a]
#    to [b2be071075954e5101541da864bb55f077445401]
# 
============================================================
--- packages/openal/files/void-workaround.patch	0dd50b799c1778c3ebd2a8bf898b930c3a1b03db
+++ packages/openal/files/void-workaround.patch	0dd50b799c1778c3ebd2a8bf898b930c3a1b03db
@@ -0,0 +1,13 @@
+Index: openal-0.0.8/common/include/AL/alc.h
+===================================================================
+--- openal-0.0.8.orig/common/include/AL/alc.h	2007-09-22 19:40:47.000000000 +0200
++++ openal-0.0.8/common/include/AL/alc.h	2007-09-22 19:41:04.000000000 +0200
+@@ -82,7 +82,7 @@
+ typedef double ALCdouble;
+ 
+ /** void type (for opaque pointers only) */
+-typedef void ALCvoid;
++#define ALCvoid void
+ 
+ 
+ /* Enumerant values begin at column 50. No tabs. */
============================================================
--- packages/openal/openal_0.0.8.bb	48e1e3567cbddb28867a3a9613942c82cc37ed0a
+++ packages/openal/openal_0.0.8.bb	b2be071075954e5101541da864bb55f077445401
@@ -1,17 +1,14 @@ DESCRIPTION = "OpenAL is a cross-platfor
 DESCRIPTION = "OpenAL is a cross-platform 3D audio API."
-SRC_URI = "http://www.openal.org/openal_webstf/downloads/${PN}-${PV}.tar.gz"
 DEPENDS = "alsa-lib virtual/libsdl libvorbis"
 
+SRC_URI = "http://www.openal.org/openal_webstf/downloads/${PN}-${PV}.tar.gz \
+           file://void-workaround.patch"
+
 inherit autotools pkgconfig
 
 EXTRA_OECONF = "--enable-alsa --enable-sdl --enable-vorbis --disable-mp3 \
                 --disable-smpeg --disable-arts"
 
-PACKAGES =+ "libopenal"
-FILES_libopenal += "${libdir}/libopenal.so.*"
-FILES_openal-dev += "${bindir}/openal-config"
-FILES_openal = ""
-
 do_configure_append () {
 	sed -i "s/@requirements@/alsa vorbis/" admin/pkgconfig/openal.pc
 }
@@ -19,3 +16,9 @@ do_stage () {
 do_stage () {
 	autotools_stage_all
 }
+
+PACKAGES =+ "libopenal"
+
+FILES_libopenal += "${libdir}/libopenal.so.*"
+FILES_openal-dev += "${bindir}/openal-config"
+FILES_openal = ""






More information about the Openembedded-commits mailing list