Mercurial > mxe-octave
annotate src/openal.mk @ 1663:9577f70222f8
add cmake toolchain file and simplify build rules of relevant packages
author | Tony Theodore <tonyt@logyst.com> |
---|---|
date | Thu, 17 Mar 2011 05:05:00 +1100 |
parents | 9b706e270985 |
children | 56c35fe3b209 |
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 := |
1605 | 7 $(PKG)_VERSION := 1.13 |
8 $(PKG)_CHECKSUM := 0e2449375a12cee65a9cea354533dcaabf9d5068 | |
1234
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
9 $(PKG)_SUBDIR := openal-soft-$($(PKG)_VERSION) |
1499
9e587ca588dc
remove $($PKG)_SUBDIR) from FILE and URL defintions
Mark Brand <mabrand@mabrand.nl>
parents:
1458
diff
changeset
|
10 $(PKG)_FILE := openal-soft-$($(PKG)_VERSION).tar.bz2 |
1234
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) |
1636
9b706e270985
add missing depedency to package openal
Volker Grabsch <vog@notjusthosting.com>
parents:
1610
diff
changeset
|
13 $(PKG)_DEPS := gcc portaudio |
1234
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 |
1457
954559d5b495
improved update script of package openal
Volker Grabsch <vog@notjusthosting.com>
parents:
1236
diff
changeset
|
16 wget -q -O- 'http://kcat.strangesoft.net/openal-releases/?C=M;O=D' | \ |
954559d5b495
improved update script of package openal
Volker Grabsch <vog@notjusthosting.com>
parents:
1236
diff
changeset
|
17 $(SED) -n 's,.*"openal-soft-\([0-9][^"]*\)\.tar.*,\1,p' | \ |
954559d5b495
improved update script of package openal
Volker Grabsch <vog@notjusthosting.com>
parents:
1236
diff
changeset
|
18 head -1 |
1234
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 |
1663
9577f70222f8
add cmake toolchain file and simplify build rules of relevant packages
Tony Theodore <tonyt@logyst.com>
parents:
1636
diff
changeset
|
22 cd '$(1)/build' && cmake .. \ |
9577f70222f8
add cmake toolchain file and simplify build rules of relevant packages
Tony Theodore <tonyt@logyst.com>
parents:
1636
diff
changeset
|
23 -DCMAKE_TOOLCHAIN_FILE=$(CMAKE_TOOLCHAIN_FILE) \ |
1234
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
24 -DLIBTYPE=STATIC |
1235
7e9f957b3239
package openal: combine patch files, portability fixes, and add test program
Tony Theodore <tonyt@logyst.com>
parents:
1234
diff
changeset
|
25 $(MAKE) -C '$(1)/build' -j '$(JOBS)' install |
1458
4b3fc437b181
fix nasty whitespaces
Volker Grabsch <vog@notjusthosting.com>
parents:
1457
diff
changeset
|
26 |
1235
7e9f957b3239
package openal: combine patch files, portability fixes, and add test program
Tony Theodore <tonyt@logyst.com>
parents:
1234
diff
changeset
|
27 '$(TARGET)-gcc' \ |
7e9f957b3239
package openal: combine patch files, portability fixes, and add test program
Tony Theodore <tonyt@logyst.com>
parents:
1234
diff
changeset
|
28 -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
|
29 '$(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
|
30 `'$(TARGET)-pkg-config' openal --cflags --libs` |
1234
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
31 endef |