Mercurial > mxe-octave
annotate 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 |
rev | line source |
---|---|
1234
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
1 # This file is part of mingw-cross-env. |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
2 # See doc/index.html for further information. |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
3 |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
4 # openal |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
5 PKG := openal |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
6 $(PKG)_IGNORE := |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
7 $(PKG)_VERSION := 1.12.854 |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
8 $(PKG)_CHECKSUM := 537dc5fad32d227bb5e861506018b46a21e47f26 |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
9 $(PKG)_SUBDIR := openal-soft-$($(PKG)_VERSION) |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
10 $(PKG)_FILE := $($(PKG)_SUBDIR).tar.bz2 |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
11 $(PKG)_WEBSITE := http://kcat.strangesoft.net/openal.html |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
12 $(PKG)_URL := http://kcat.strangesoft.net/openal-releases/$($(PKG)_FILE) |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
13 $(PKG)_DEPS := gcc |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
14 |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
15 define $(PKG)_UPDATE |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
16 wget -q -O- 'http://kcat.strangesoft.net/openal-releases/' | \ |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
17 $(SED) -n 's,.*openal-soft-\([0-9][^<]*\)\.tar.*,\1,p' | \ |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
18 tail -1 |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
19 endef |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
20 |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
21 define $(PKG)_BUILD |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
22 cd '$(1)/build' && cmake .. \ |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
23 -DCMAKE_SYSTEM_NAME=Windows \ |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
24 -DCMAKE_FIND_ROOT_PATH='$(PREFIX)/$(TARGET)' \ |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
25 -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \ |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
26 -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \ |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
27 -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \ |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
28 -DCMAKE_C_COMPILER='$(PREFIX)/bin/$(TARGET)-gcc' \ |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
29 -DCMAKE_CXX_COMPILER='$(PREFIX)/bin/$(TARGET)-gcc' \ |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
30 -DCMAKE_INCLUDE_PATH='$(PREFIX)/$(TARGET)/include' \ |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
31 -DCMAKE_LIB_PATH='$(PREFIX)/$(TARGET)/lib' \ |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
32 -DPKG_CONFIG_EXECUTABLE=$(TARGET)-pkg-config \ |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
33 -DCMAKE_INSTALL_PREFIX='$(PREFIX)/$(TARGET)' \ |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
34 -DCMAKE_BUILD_TYPE=Release \ |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
35 -DLIBTYPE=STATIC |
1235
7e9f957b3239
package openal: combine patch files, portability fixes, and add test program
Tony Theodore <tonyt@logyst.com>
parents:
1234
diff
changeset
|
36 $(MAKE) -C '$(1)/build' -j '$(JOBS)' install |
7e9f957b3239
package openal: combine patch files, portability fixes, and add test program
Tony Theodore <tonyt@logyst.com>
parents:
1234
diff
changeset
|
37 ln -sf '$(PREFIX)/$(TARGET)/lib/OpenAL32.a' '$(PREFIX)/$(TARGET)/lib/libOpenAL32.a' |
7e9f957b3239
package openal: combine patch files, portability fixes, and add test program
Tony Theodore <tonyt@logyst.com>
parents:
1234
diff
changeset
|
38 |
7e9f957b3239
package openal: combine patch files, portability fixes, and add test program
Tony Theodore <tonyt@logyst.com>
parents:
1234
diff
changeset
|
39 '$(TARGET)-gcc' \ |
7e9f957b3239
package openal: combine patch files, portability fixes, and add test program
Tony Theodore <tonyt@logyst.com>
parents:
1234
diff
changeset
|
40 -W -Wall -Werror -ansi -pedantic \ |
7e9f957b3239
package openal: combine patch files, portability fixes, and add test program
Tony Theodore <tonyt@logyst.com>
parents:
1234
diff
changeset
|
41 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-openal.exe' \ |
7e9f957b3239
package openal: combine patch files, portability fixes, and add test program
Tony Theodore <tonyt@logyst.com>
parents:
1234
diff
changeset
|
42 `'$(TARGET)-pkg-config' openal --cflags --libs` |
1234
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
43 endef |