annotate src/portaudio.mk @ 2733:e8d0224638b2

package portaudio: fix detection of $(TARGET)-ar
author Tony Theodore <tonyt@logyst.com>
date Mon, 17 Sep 2012 20:07:48 +1000
parents 52c2d81ac7d5
children f61e6eda0c2b
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' | \
2688
52c2d81ac7d5 Update PortAudio v19 from 20071207 to 20111121
Stefan Hajnoczi <stefanha@gmail.com>
parents: 2525
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)' \
e9828e3cf4f0 new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 --disable-shared \
670
73d6b9460f74 improved coding style in package portaudio
Volker Grabsch <vog@notjusthosting.com>
parents: 666
diff changeset
23 --prefix='$(PREFIX)/$(TARGET)' \
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 \
2733
e8d0224638b2 package portaudio: fix detection of $(TARGET)-ar
Tony Theodore <tonyt@logyst.com>
parents: 2688
diff changeset
26 --with-dxdir=$(PREFIX)/$(TARGET) \
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 \
7fb51f6d31af package portaudio: add test program, disable built-in tests, and remove superflous shared flag
Tony Theodore <tonyt@logyst.com>
parents: 854
diff changeset
33 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-portaudio.exe' \
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