Mercurial > mxe-octave
annotate src/openal.mk @ 3012:100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
BUILD_TOOLS_PREFIX variables in top-level Makefile.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 02 Jun 2013 10:31:04 -0400 |
parents | ebe3474e514b |
children | b6c7244a2f66 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
1670
diff
changeset
|
1 # This file is part of MXE. |
2353
99516e73b368
Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents:
2349
diff
changeset
|
2 # See index.html for further information. |
1234
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 PKG := openal |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
5 $(PKG)_IGNORE := |
2391 | 6 $(PKG)_CHECKSUM := e6d69db13ec15465b83a45ef89978e8a0f55beca |
1234
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
7 $(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
|
8 $(PKG)_FILE := openal-soft-$($(PKG)_VERSION).tar.bz2 |
1234
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
9 $(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
|
10 $(PKG)_DEPS := gcc portaudio |
1234
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
11 |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
12 define $(PKG)_UPDATE |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2391
diff
changeset
|
13 $(WGET) -q -O- 'http://kcat.strangesoft.net/openal-releases/?C=M;O=D' | \ |
1457
954559d5b495
improved update script of package openal
Volker Grabsch <vog@notjusthosting.com>
parents:
1236
diff
changeset
|
14 $(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
|
15 head -1 |
1234
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
16 endef |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
17 |
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
18 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
|
19 cd '$(1)/build' && cmake .. \ |
1670 | 20 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ |
2732
ebe3474e514b
package openal: disable examples build
Tony Theodore <tonyt@logyst.com>
parents:
2525
diff
changeset
|
21 -DLIBTYPE=STATIC \ |
ebe3474e514b
package openal: disable examples build
Tony Theodore <tonyt@logyst.com>
parents:
2525
diff
changeset
|
22 -DEXAMPLES=FALSE |
1235
7e9f957b3239
package openal: combine patch files, portability fixes, and add test program
Tony Theodore <tonyt@logyst.com>
parents:
1234
diff
changeset
|
23 $(MAKE) -C '$(1)/build' -j '$(JOBS)' install |
1458
4b3fc437b181
fix nasty whitespaces
Volker Grabsch <vog@notjusthosting.com>
parents:
1457
diff
changeset
|
24 |
1235
7e9f957b3239
package openal: combine patch files, portability fixes, and add test program
Tony Theodore <tonyt@logyst.com>
parents:
1234
diff
changeset
|
25 '$(TARGET)-gcc' \ |
7e9f957b3239
package openal: combine patch files, portability fixes, and add test program
Tony Theodore <tonyt@logyst.com>
parents:
1234
diff
changeset
|
26 -W -Wall -Werror -ansi -pedantic \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2732
diff
changeset
|
27 '$(2).c' -o '$(HOST_PREFIX)/bin/test-openal.exe' \ |
1235
7e9f957b3239
package openal: combine patch files, portability fixes, and add test program
Tony Theodore <tonyt@logyst.com>
parents:
1234
diff
changeset
|
28 `'$(TARGET)-pkg-config' openal --cflags --libs` |
1234
3c63edcea6db
new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff
changeset
|
29 endef |