Skip to content
Snippets Groups Projects
Commit 417229f1 authored by Vittorio Giovara's avatar Vittorio Giovara Committed by Tristan Matthews
Browse files

contrib: add sndfile rules

Change-Id: I7fb7a7f64feede2a925edcd8cbdf0191d9c70219
Refs: #46617
parent dc79cd6e
No related branches found
No related tags found
No related merge requests found
4ca9780ed0a915aca8a10ef91bf4bf48b05ecb85285c2c3fe7eef1d46d3e0747e61416b6bddbef369bd69adf4b796ff5f61380e0bc998906b170a93341ba6f78 libsndfile-1.0.25.tar.gz
--- a/programs/sndfile-play.c.orig 2014-06-26 18:33:49.000000000 -0400
+++ b/programs/sndfile-play.c 2014-06-26 18:33:52.000000000 -0400
@@ -63,7 +63,6 @@
#include <sys/soundcard.h>
#elif (defined (__MACH__) && defined (__APPLE__))
- #include <Carbon.h>
#include <CoreAudio/AudioHardware.h>
#elif defined (HAVE_SNDIO_H)
# SNDFILE
SNDFILE_VERSION := 1.0.25
SNDFILE_URL := http://www.mega-nerd.com/libsndfile/files/libsndfile-$(SNDFILE_VERSION).tar.gz
PKGS += sndfile
ifeq ($(call need_pkg,"sndfile"),)
PKGS_FOUND += sndfile
endif
DEPS_sndfile = ogg vorbis flac
$(TARBALLS)/libsndfile-$(SNDFILE_VERSION).tar.gz:
$(call download,$(SNDFILE_URL))
.sum-sndfile: libsndfile-$(SNDFILE_VERSION).tar.gz
sndfile: libsndfile-$(SNDFILE_VERSION).tar.gz .sum-sndfile
$(UNPACK)
$(APPLY) $(SRC)/sndfile/soundcard.patch
$(APPLY) $(SRC)/sndfile/carbon.patch
$(UPDATE_AUTOCONFIG) && cd $(UNPACK_DIR) && mv config.guess config.sub Cfg
$(MOVE)
.sndfile: sndfile
cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
cd $< && $(MAKE) install
touch $@
--- a/programs/sndfile-play.c.orig 2014-06-12 16:00:39.348060215 -0400
+++ b/programs/sndfile-play.c 2014-06-12 16:01:05.660059438 -0400
@@ -52,7 +52,12 @@
#include <sys/time.h>
#endif
-#if defined (__linux__) || defined (__FreeBSD_kernel__) || defined (__FreeBSD__)
+#if defined(__ANDROID__)
+ #include <fcntl.h>
+ #include <sys/ioctl.h>
+ #include <linux/soundcard.h>
+
+#elif defined (__linux__) || defined (__FreeBSD_kernel__) || defined (__FreeBSD__)
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/soundcard.h>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment