annotate src/openal.mk @ 3048:5ef49fb3299d

treat gcc and binutils as build tools use a separate target for building the cmake toolchain file don't unpack gcc or binutils if we are using the system compiler
author John W. Eaton <jwe@octave.org>
date Fri, 14 Jun 2013 16:51:29 -0400
parents 951da75fd09c
children 13be64f9f16d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
fbf67aa01033 update package openal
Mark Brand <mabrand@mabrand.nl>
parents: 2365
diff changeset
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)
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
10 $(PKG)_DEPS := 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
56c35fe3b209 improved quoting
Volker Grabsch <vog@notjusthosting.com>
parents: 1663
diff changeset
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
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
25 '$(MXE_CC)' \
1235
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 \
3014
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
27 '$(2).c' -o '$(HOST_BINDIR)/test-openal.exe' \
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
28 `'$(MXE_PKG_CONFIG)' openal --cflags --libs`
1234
3c63edcea6db new package: OpenAL
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
29 endef