Mercurial > mxe-octave
diff src/openal.mk @ 1235:7e9f957b3239
package openal: combine patch files, portability fixes, and add test program
author | Tony Theodore <tonyt@logyst.com> |
---|---|
date | Fri, 01 Oct 2010 02:03:08 +1000 |
parents | 3c63edcea6db |
children | e5c95a508f2a |
line wrap: on
line diff
--- a/src/openal.mk Fri Oct 01 01:56:08 2010 +1000 +++ b/src/openal.mk Fri Oct 01 02:03:08 2010 +1000 @@ -33,9 +33,11 @@ -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