diff options
3 files changed, 83 insertions, 32 deletions
diff --git a/meta-oe/recipes-support/portaudio/files/ldflags.patch b/meta-oe/recipes-support/portaudio/files/ldflags.patch new file mode 100644 index 0000000000..aca93a51f2 --- /dev/null +++ b/meta-oe/recipes-support/portaudio/files/ldflags.patch | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | Upstream forgot to pass LDFLAGS to everything apart from the main library. | ||
| 2 | |||
| 3 | Upstream-Status: Pending | ||
| 4 | Signed-off-by: Ross Burton <ross.burton@intel.com> | ||
| 5 | |||
| 6 | diff --git a/Makefile.in b/Makefile.in | ||
| 7 | index 5e1a764..61ecdd1 100644 | ||
| 8 | --- a/Makefile.in | ||
| 9 | +++ b/Makefile.in | ||
| 10 | @@ -171,20 +171,20 @@ lib/$(PALIB): lib-stamp $(LTOBJS) $(MAKEFILE) $(PAINC) | ||
| 11 | @WITH_ASIO_TRUE@ $(LIBTOOL) --mode=link --tag=CXX $(CXX) $(PA_LDFLAGS) -o lib/$(PALIB) $(LTOBJS) $(DLL_LIBS) | ||
| 12 | |||
| 13 | $(ALL_TESTS): bin/%: lib/$(PALIB) $(MAKEFILE) $(PAINC) test/%.c | ||
| 14 | - @WITH_ASIO_FALSE@ $(LIBTOOL) --mode=link $(CC) -o $@ $(CFLAGS) $(top_srcdir)/test/$*.c lib/$(PALIB) $(LIBS) | ||
| 15 | - @WITH_ASIO_TRUE@ $(LIBTOOL) --mode=link --tag=CXX $(CXX) -o $@ $(CXXFLAGS) $(top_srcdir)/test/$*.c lib/$(PALIB) $(LIBS) | ||
| 16 | + @WITH_ASIO_FALSE@ $(LIBTOOL) --mode=link $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(top_srcdir)/test/$*.c lib/$(PALIB) $(LIBS) | ||
| 17 | + @WITH_ASIO_TRUE@ $(LIBTOOL) --mode=link --tag=CXX $(CXX) -o $@ $(CXXFLAGS) $(LDFLAGS) $(top_srcdir)/test/$*.c lib/$(PALIB) $(LIBS) | ||
| 18 | |||
| 19 | $(EXAMPLES): bin/%: lib/$(PALIB) $(MAKEFILE) $(PAINC) examples/%.c | ||
| 20 | - @WITH_ASIO_FALSE@ $(LIBTOOL) --mode=link $(CC) -o $@ $(CFLAGS) $(top_srcdir)/examples/$*.c lib/$(PALIB) $(LIBS) | ||
| 21 | - @WITH_ASIO_TRUE@ $(LIBTOOL) --mode=link --tag=CXX $(CXX) -o $@ $(CXXFLAGS) $(top_srcdir)/examples/$*.c lib/$(PALIB) $(LIBS) | ||
| 22 | + @WITH_ASIO_FALSE@ $(LIBTOOL) --mode=link $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(top_srcdir)/examples/$*.c lib/$(PALIB) $(LIBS) | ||
| 23 | + @WITH_ASIO_TRUE@ $(LIBTOOL) --mode=link --tag=CXX $(CXX) -o $@ $(CXXFLAGS) $(LDFLAGS) $(top_srcdir)/examples/$*.c lib/$(PALIB) $(LIBS) | ||
| 24 | |||
| 25 | $(SELFTESTS): bin/%: lib/$(PALIB) $(MAKEFILE) $(PAINC) qa/%.c | ||
| 26 | - @WITH_ASIO_FALSE@ $(LIBTOOL) --mode=link $(CC) -o $@ $(CFLAGS) $(top_srcdir)/qa/$*.c lib/$(PALIB) $(LIBS) | ||
| 27 | - @WITH_ASIO_TRUE@ $(LIBTOOL) --mode=link --tag=CXX $(CXX) -o $@ $(CXXFLAGS) $(top_srcdir)/qa/$*.c lib/$(PALIB) $(LIBS) | ||
| 28 | + @WITH_ASIO_FALSE@ $(LIBTOOL) --mode=link $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(top_srcdir)/qa/$*.c lib/$(PALIB) $(LIBS) | ||
| 29 | + @WITH_ASIO_TRUE@ $(LIBTOOL) --mode=link --tag=CXX $(CXX) -o $@ $(CXXFLAGS) $(LDFLAGS) $(top_srcdir)/qa/$*.c lib/$(PALIB) $(LIBS) | ||
| 30 | |||
| 31 | bin/paloopback: lib/$(PALIB) $(MAKEFILE) $(PAINC) $(LOOPBACK_OBJS) | ||
| 32 | - @WITH_ASIO_FALSE@ $(LIBTOOL) --mode=link $(CC) -o $@ $(CFLAGS) $(LOOPBACK_OBJS) lib/$(PALIB) $(LIBS) | ||
| 33 | - @WITH_ASIO_TRUE@ $(LIBTOOL) --mode=link --tag=CXX $(CXX) -o $@ $(CXXFLAGS) $(LOOPBACK_OBJS) lib/$(PALIB) $(LIBS) | ||
| 34 | + @WITH_ASIO_FALSE@ $(LIBTOOL) --mode=link $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(LOOPBACK_OBJS) lib/$(PALIB) $(LIBS) | ||
| 35 | + @WITH_ASIO_TRUE@ $(LIBTOOL) --mode=link --tag=CXX $(CXX) -o $@ $(CXXFLAGS) $(LDFLAGS) $(LOOPBACK_OBJS) lib/$(PALIB) $(LIBS) | ||
| 36 | |||
| 37 | install: lib/$(PALIB) portaudio-2.0.pc | ||
| 38 | $(INSTALL) -d $(DESTDIR)$(libdir) | ||
| 39 | @@ -224,10 +224,10 @@ distclean: clean | ||
| 40 | $(CC) -c $(CFLAGS) $< -o $@ | ||
| 41 | |||
| 42 | %.lo: %.c $(MAKEFILE) $(PAINC) | ||
| 43 | - $(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) $< -o $@ | ||
| 44 | + $(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) $(LDFLAGS) $< -o $@ | ||
| 45 | |||
| 46 | %.lo: %.cpp $(MAKEFILE) $(PAINC) | ||
| 47 | - $(LIBTOOL) --mode=compile --tag=CXX $(CXX) -c $(CXXFLAGS) $< -o $@ | ||
| 48 | + $(LIBTOOL) --mode=compile --tag=CXX $(CXX) -c $(CXXFLAGS) $(LDFLAGS) $< -o $@ | ||
| 49 | |||
| 50 | %.o: %.cpp $(MAKEFILE) $(PAINC) | ||
| 51 | $(CXX) -c $(CXXFLAGS) $< -o $@ | ||
diff --git a/meta-oe/recipes-support/portaudio/portaudio-v19_20140130.bb b/meta-oe/recipes-support/portaudio/portaudio-v19_20140130.bb new file mode 100644 index 0000000000..8f2b0dbe4c --- /dev/null +++ b/meta-oe/recipes-support/portaudio/portaudio-v19_20140130.bb | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | SUMMARY = "A portable audio library" | ||
| 2 | SECTION = "libs/multimedia" | ||
| 3 | LICENSE = "MIT" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=26107732c2ab637c5710446fcfaf02df" | ||
| 5 | |||
| 6 | PV = "v19+svnr1919" | ||
| 7 | |||
| 8 | SRC_URI = "http://www.portaudio.com/archives/pa_stable_v19_20140130.tgz \ | ||
| 9 | file://ldflags.patch" | ||
| 10 | SRC_URI[md5sum] = "7f220406902af9dca009668e198cbd23" | ||
| 11 | SRC_URI[sha256sum] = "8fe024a5f0681e112c6979808f684c3516061cc51d3acc0b726af98fc96c8d57" | ||
| 12 | |||
| 13 | S = "${WORKDIR}/portaudio" | ||
| 14 | |||
| 15 | inherit autotools pkgconfig | ||
| 16 | |||
| 17 | PACKAGECONFIG ??= "alsa jack" | ||
| 18 | PACKAGECONFIG[alsa] = "--with-alsa, --without-alsa, alsa-lib," | ||
| 19 | PACKAGECONFIG[jack] = "--with-jack, --without-jack, jack," | ||
| 20 | |||
| 21 | EXTRA_OECONF = "--without-oss --without-asihpi" | ||
| 22 | |||
| 23 | do_install_append() { | ||
| 24 | mkdir --parents ${D}${bindir} | ||
| 25 | for b in ${B}/bin/pa*; do | ||
| 26 | # Bit nasty, should always work | ||
| 27 | ${B}/*-libtool --mode install install $b ${D}${bindir} | ||
| 28 | done | ||
| 29 | } | ||
| 30 | |||
| 31 | PACKAGES += "portaudio-examples" | ||
| 32 | FILES_portaudio-examples = "${bindir}" | ||
diff --git a/meta-oe/recipes-support/portaudio/portaudio-v19_svn.bb b/meta-oe/recipes-support/portaudio/portaudio-v19_svn.bb deleted file mode 100644 index c8d7378eb7..0000000000 --- a/meta-oe/recipes-support/portaudio/portaudio-v19_svn.bb +++ /dev/null | |||
| @@ -1,32 +0,0 @@ | |||
| 1 | SUMMARY = "A portable audio library" | ||
| 2 | SECTION = "libs/multimedia" | ||
| 3 | LICENSE = "PortAudio" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=26107732c2ab637c5710446fcfaf02df" | ||
| 5 | |||
| 6 | PV = "v19+svnr${SRCPV}" | ||
| 7 | |||
| 8 | SRCREV = "1387" | ||
| 9 | SRC_URI = "svn://subversion.assembla.com/svn/portaudio/portaudio;module=trunk;protocol=http" | ||
| 10 | S = "${WORKDIR}/trunk" | ||
| 11 | |||
| 12 | inherit autotools pkgconfig | ||
| 13 | |||
| 14 | PACKAGECONFIG ??= "alsa jack" | ||
| 15 | PACKAGECONFIG[alsa] = "--with-alsa, --without-alsa, alsa-lib," | ||
| 16 | PACKAGECONFIG[jack] = "--with-jack, --without-jack, jack," | ||
| 17 | |||
| 18 | EXTRA_OECONF = "--without-oss" | ||
| 19 | |||
| 20 | TESTS = " pa_devs patest1 patest_hang patest_many patest_prime patest_sine patest_stop patest_write_sine \ | ||
| 21 | pa_fuzz patest_buffer patest_in_overflow patest_maxsines patest_read_record patest_sine8 patest_sync \ | ||
| 22 | pa_minlat patest_callbackstop patest_latency patest_multi_sine patest_record patest_sine_formats patest_toomanysines \ | ||
| 23 | paqa_devs patest_clip patest_leftright patest_out_underflow patest_ringmix patest_sine_time patest_underflow \ | ||
| 24 | paqa_errs patest_dither patest_longsine patest_pink patest_saw patest_start_stop patest_wire" | ||
| 25 | |||
| 26 | # DEFINES = PA_USE_OSS=1 HAVE_LIBPTHREAD=1 | ||
| 27 | # DEFINES += PA_LITTLE_ENDIAN | ||
| 28 | |||
| 29 | # INCLUDEPATH = ../pa_common | ||
| 30 | |||
| 31 | PACKAGES += "portaudio-examples" | ||
| 32 | FILES_portaudio-examples = "${bindir}" | ||
