summaryrefslogtreecommitdiffstats
path: root/src/openal.mk
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2010-09-30 16:03:08 (GMT)
committerTony Theodore <tonyt@logyst.com>2010-09-30 16:03:08 (GMT)
commitc4a45ccd43dcb2f967b1a4e1f5e8719c2a4fbab6 (patch)
treea5dc4eb4455971480e0ecbf1ff125a2009226ab1 /src/openal.mk
parent2022f74486442d0d65bf611244364be6cbb78d63 (diff)
downloadmxe-c4a45ccd43dcb2f967b1a4e1f5e8719c2a4fbab6.zip
mxe-c4a45ccd43dcb2f967b1a4e1f5e8719c2a4fbab6.tar.gz
mxe-c4a45ccd43dcb2f967b1a4e1f5e8719c2a4fbab6.tar.bz2
package openal: combine patch files, portability fixes, and add test program
Diffstat (limited to 'src/openal.mk')
-rw-r--r--src/openal.mk12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/openal.mk b/src/openal.mk
index 8998484..f29cfc8 100644
--- a/src/openal.mk
+++ b/src/openal.mk
@@ -33,9 +33,11 @@ define $(PKG)_BUILD
-DCMAKE_INSTALL_PREFIX='$(PREFIX)/$(TARGET)' \
-DCMAKE_BUILD_TYPE=Release \
-DLIBTYPE=STATIC
- cd '$(1)/build' && $(MAKE) -j '$(JOBS)'
- cd '$(1)/build' && cp -fv OpenAL32.a $(PREFIX)/$(TARGET)/lib/libOpenAL32.a
- cd '$(1)/build' && cp -rfv openal.pc $(PREFIX)/$(TARGET)/lib/pkgconfig
- $(SED) -i 's,^\(Libs:.*\),\1 -lwinmm,' $(PREFIX)/$(TARGET)/lib/pkgconfig/openal.pc
- cd '$(1)' && cp -rfv include/* $(PREFIX)/$(TARGET)/include
+ $(MAKE) -C '$(1)/build' -j '$(JOBS)' install
+ ln -sf '$(PREFIX)/$(TARGET)/lib/OpenAL32.a' '$(PREFIX)/$(TARGET)/lib/libOpenAL32.a'
+
+ '$(TARGET)-gcc' \
+ -W -Wall -Werror -ansi -pedantic \
+ '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-openal.exe' \
+ `'$(TARGET)-pkg-config' openal --cflags --libs`
endef