annotate src/portaudio.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 47558e958113
children bcc26ffe9a0f
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: 1656
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.
666
e9828e3cf4f0 new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3
e9828e3cf4f0 new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 PKG := portaudio
e9828e3cf4f0 new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 $(PKG)_IGNORE :=
2688
52c2d81ac7d5 Update PortAudio v19 from 20071207 to 20111121
Stefan Hajnoczi <stefanha@gmail.com>
parents: 2525
diff changeset
6 $(PKG)_CHECKSUM := f07716c470603729a55b70f5af68f4a6807097eb
666
e9828e3cf4f0 new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
7 $(PKG)_SUBDIR := portaudio
2688
52c2d81ac7d5 Update PortAudio v19 from 20071207 to 20111121
Stefan Hajnoczi <stefanha@gmail.com>
parents: 2525
diff changeset
8 $(PKG)_FILE := pa_stable_v$($(PKG)_VERSION).tgz
666
e9828e3cf4f0 new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 $(PKG)_URL := http://www.portaudio.com/archives/$($(PKG)_FILE)
854
f7372eb54afe bugfix: remove all dependencies to the directx package which no longer exists
Volker Grabsch <vog@notjusthosting.com>
parents: 714
diff changeset
10 $(PKG)_DEPS := gcc
666
e9828e3cf4f0 new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11
e9828e3cf4f0 new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
13 $(WGET) -q -O- 'http://www.portaudio.com/download.html' | \
2804
f61e6eda0c2b package portaudio: fix update macro
Mark Brand <mabrand@mabrand.nl>
parents: 2733
diff changeset
14 $(SED) -n 's,.*pa_stable_v\([0-9][^>]*\)\.tgz.*,\1,p' | \
666
e9828e3cf4f0 new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 head -1
e9828e3cf4f0 new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 endef
e9828e3cf4f0 new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17
e9828e3cf4f0 new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 define $(PKG)_BUILD
670
73d6b9460f74 improved coding style in package portaudio
Volker Grabsch <vog@notjusthosting.com>
parents: 666
diff changeset
19 cd '$(1)' && autoconf
73d6b9460f74 improved coding style in package portaudio
Volker Grabsch <vog@notjusthosting.com>
parents: 666
diff changeset
20 cd '$(1)' && ./configure \
666
e9828e3cf4f0 new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 --host='$(TARGET)' \
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2804
diff changeset
22 $(ENABLE_SHARED_OR_STATIC) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
23 --prefix='$(HOST_PREFIX)' \
666
e9828e3cf4f0 new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 --with-host_os=mingw \
2688
52c2d81ac7d5 Update PortAudio v19 from 20071207 to 20111121
Stefan Hajnoczi <stefanha@gmail.com>
parents: 2525
diff changeset
25 --with-winapi=wmme,directx,wasapi,wdmks \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
26 --with-dxdir=$(HOST_PREFIX) \
2733
e8d0224638b2 package portaudio: fix detection of $(TARGET)-ar
Tony Theodore <tonyt@logyst.com>
parents: 2688
diff changeset
27 ac_cv_path_AR=$(TARGET)-ar
1656
7fb51f6d31af package portaudio: add test program, disable built-in tests, and remove superflous shared flag
Tony Theodore <tonyt@logyst.com>
parents: 854
diff changeset
28 $(MAKE) -C '$(1)' -j '$(JOBS)' SHARED_FLAGS= TESTS=
7fb51f6d31af package portaudio: add test program, disable built-in tests, and remove superflous shared flag
Tony Theodore <tonyt@logyst.com>
parents: 854
diff changeset
29 $(MAKE) -C '$(1)' -j 1 install
7fb51f6d31af package portaudio: add test program, disable built-in tests, and remove superflous shared flag
Tony Theodore <tonyt@logyst.com>
parents: 854
diff changeset
30
7fb51f6d31af package portaudio: add test program, disable built-in tests, and remove superflous shared flag
Tony Theodore <tonyt@logyst.com>
parents: 854
diff changeset
31 '$(TARGET)-gcc' \
7fb51f6d31af package portaudio: add test program, disable built-in tests, and remove superflous shared flag
Tony Theodore <tonyt@logyst.com>
parents: 854
diff changeset
32 -W -Wall -Werror -ansi -pedantic \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
33 '$(2).c' -o '$(HOST_PREFIX)/bin/test-portaudio.exe' \
1656
7fb51f6d31af package portaudio: add test program, disable built-in tests, and remove superflous shared flag
Tony Theodore <tonyt@logyst.com>
parents: 854
diff changeset
34 `'$(TARGET)-pkg-config' portaudio-2.0 --cflags --libs`
666
e9828e3cf4f0 new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
35 endef