1 DESCRIPTION = "A portable audio library"
4 MAINTAINER = "Michael 'Mickey' Lauer <mickey@Vanille.de>"
6 PV = "v19-cvs-${CVSDATE}"
9 SRC_URI = "http://www.portaudio.com/archives/pa_snapshot_v19.tar.gz"
10 S = "${WORKDIR}/portaudio"
14 TESTS = " pa_devs patest1 patest_hang patest_many patest_prime patest_sine patest_stop patest_write_sine \
15 pa_fuzz patest_buffer patest_in_overflow patest_maxsines patest_read_record patest_sine8 patest_sync \
16 pa_minlat patest_callbackstop patest_latency patest_multi_sine patest_record patest_sine_formats patest_toomanysines \
17 paqa_devs patest_clip patest_leftright patest_out_underflow patest_ringmix patest_sine_time patest_underflow \
18 paqa_errs patest_dither patest_longsine patest_pink patest_saw patest_start_stop patest_wire"
20 do_configure_prepend() {
21 echo "TEMPLATE = subdirs" >portaudio.pro
22 echo "SUBDIRS = lib tests" >>portaudio.pro
25 cat <<EOF >lib/lib.pro
27 CONFIG = console debug warn_on
31 DEFINES = PA_USE_OSS=1 HAVE_LIBPTHREAD=1
32 DEFINES += PA_LITTLE_ENDIAN
34 INCLUDEPATH = ../pa_common
37 ../pa_common/pa_allocation.c \
38 ../pa_common/pa_converters.c \
39 ../pa_common/pa_cpuload.c \
40 ../pa_common/pa_dither.c \
41 ../pa_common/pa_front.c \
42 ../pa_common/pa_process.c \
43 ../pa_common/pa_skeleton.c \
44 ../pa_common/pa_stream.c \
45 ../pa_common/pa_trace.c \
47 ../pa_unix_oss/pa_unix_oss.c \
48 ../pa_unix/pa_unix_hostapis.c \
49 ../pa_unix/pa_unix_util.c
53 echo "TEMPLATE = subdirs" >tests/tests.pro
54 echo "SUBDIRS = \\" >>tests/tests.pro
59 cat <<EOF >tests/$test/$test.pro
61 CONFIG = console debug warn_on thread
63 INCLUDEPATH = ../../pa_common/
64 LIBS = -L../../lib -lportaudio -lm
65 SOURCES = ../../pa_tests/$test.c
67 echo "$test \\" >>tests/tests.pro
69 echo >>tests/tests.pro
73 oe_libinstall -so -C lib libportaudio ${STAGING_LIBDIR}
74 install -m 0644 pa_common/portaudio.h ${STAGING_INCDIR}/portaudio.h
78 install -d ${D}${libdir}
79 install -d ${D}${bindir}
80 install -d ${D}${includedir}
81 oe_libinstall -so -C lib libportaudio ${D}${libdir}
82 install -m 0644 pa_common/portaudio.h ${D}${includedir}
83 install -m 0755 bin/* ${D}${bindir}/
86 PACKAGES = "libportaudio0 portaudio-dev portaudio-examples"
87 FILES_libportaudio0 = "${libdir}"
88 FILES_portaudio-examples = "${bindir}"