From e7df5afeb9634a0d95499049efb5c4887069290d Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Sat, 15 Nov 2008 21:33:07 +0000 Subject: package/audio: rename audio category to multimedia Prepare for the merge of audio and video packages. Many packages cannot properly be assigned to either audio or video, because they have support for both (libogg, mplayer, vlc). Signed-off-by: Markus Heidelberg --- package/multimedia/libsndfile/Config.in | 7 +++ .../multimedia/libsndfile/libsndfile-srconly.patch | 11 ++++ package/multimedia/libsndfile/libsndfile.mk | 65 ++++++++++++++++++++++ 3 files changed, 83 insertions(+) create mode 100644 package/multimedia/libsndfile/Config.in create mode 100644 package/multimedia/libsndfile/libsndfile-srconly.patch create mode 100644 package/multimedia/libsndfile/libsndfile.mk (limited to 'package/multimedia/libsndfile') diff --git a/package/multimedia/libsndfile/Config.in b/package/multimedia/libsndfile/Config.in new file mode 100644 index 000000000..ccc4dad6f --- /dev/null +++ b/package/multimedia/libsndfile/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_LIBSNDFILE + bool "libsndfile" + help + Libsndfile is a C library for reading and writing files containing + sampled sound (such as MS Windows WAV and the Apple/SGI AIFF format) + through one standard library interface. + diff --git a/package/multimedia/libsndfile/libsndfile-srconly.patch b/package/multimedia/libsndfile/libsndfile-srconly.patch new file mode 100644 index 000000000..1796b80c0 --- /dev/null +++ b/package/multimedia/libsndfile/libsndfile-srconly.patch @@ -0,0 +1,11 @@ +--- libsndfile-1.0.17/Makefile.in.orig 2006-12-06 17:26:46.000000000 +0100 ++++ libsndfile-1.0.17/Makefile.in 2006-12-06 17:31:11.000000000 +0100 +@@ -209,7 +209,7 @@ + target_cpu = @target_cpu@ + target_os = @target_os@ + target_vendor = @target_vendor@ +-SUBDIRS = man doc Win32 Octave src examples regtest tests ++SUBDIRS = src + DIST_SUBDIRS = $(SUBDIRS) + EXTRA_DIST = reconfigure.mk acinclude.m4 libsndfile.spec.in \ + sndfile.pc.in Mingw-make-dist.sh diff --git a/package/multimedia/libsndfile/libsndfile.mk b/package/multimedia/libsndfile/libsndfile.mk new file mode 100644 index 000000000..637845228 --- /dev/null +++ b/package/multimedia/libsndfile/libsndfile.mk @@ -0,0 +1,65 @@ +############################################################# +# +# libsndfile +# +############################################################# +LIBSNDFILE_VERSION:=1.0.17 +LIBSNDFILE_SOURCE:=libsndfile-$(LIBSNDFILE_VERSION).tar.gz +LIBSNDFILE_SITE:=http://www.mega-nerd.com/libsndfile/$(LIBUSB_SOURCE) +LIBSNDFILE_DIR:=$(BUILD_DIR)/libsndfile-$(LIBSNDFILE_VERSION) +LIBSNDFILE_BINARY:=src/.libs/libsndfile.so +LIBSNDFILE_TARGET_BINARY:=usr/lib/libsndfile.so + +$(DL_DIR)/$(LIBSNDFILE_SOURCE): + $(WGET) -P $(DL_DIR) $(LIBSNDFILE_SITE)/$(LIBSNDFILE_SOURCE) + +$(LIBSNDFILE_DIR)/.unpacked: $(DL_DIR)/$(LIBSNDFILE_SOURCE) + $(ZCAT) $(DL_DIR)/$(LIBSNDFILE_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - + toolchain/patch-kernel.sh $(LIBSNDFILE_DIR) package/multimedia/libsndfile/ \*.patch + $(CONFIG_UPDATE) $(LIBSNDFILE_DIR) + touch $@ + +$(LIBSNDFILE_DIR)/.configured: $(LIBSNDFILE_DIR)/.unpacked + (cd $(LIBSNDFILE_DIR); rm -f config.cache; \ + $(TARGET_CONFIGURE_OPTS) \ + $(TARGET_CONFIGURE_ARGS) \ + ./configure \ + --target=$(GNU_TARGET_NAME) \ + --host=$(GNU_TARGET_NAME) \ + --build=$(GNU_HOST_NAME) \ + --prefix=/usr \ + --sysconfdir=/etc \ + ) + touch $@ + +$(LIBSNDFILE_DIR)/$(LIBSNDFILE_BINARY): $(LIBSNDFILE_DIR)/.configured + $(MAKE) CC=$(TARGET_CC) -C $(LIBSNDFILE_DIR) + +$(TARGET_DIR)/$(LIBSNDFILE_TARGET_BINARY): $(LIBSNDFILE_DIR)/$(LIBSNDFILE_BINARY) + $(MAKE) prefix=$(STAGING_DIR)/usr -C $(LIBSNDFILE_DIR) install + $(MAKE) prefix=$(TARGET_DIR)/usr -C $(LIBSNDFILE_DIR) install +ifneq ($(BR2_HAVE_MANPAGES),y) + rm -Rf $(TARGET_DIR)/usr/share/man + rm -Rf $(STAGING_DIR)/usr/share/man +endif + +libsndfile: uclibc $(TARGET_DIR)/$(LIBSNDFILE_TARGET_BINARY) + +libsndfile-source: $(DL_DIR)/$(LIBSNDFILE_SOURCE) + +libsndfile-clean: + $(MAKE) prefix=$(STAGING_DIR)/usr -C $(LIBSNDFILE_DIR) uninstall + $(MAKE) prefix=$(TARGET_DIR)/usr -C $(LIBSNDFILE_DIR) uninstall + -$(MAKE) -C $(LIBSNDFILE_DIR) clean + +libsndfile-dirclean: + rm -rf $(LIBSNDFILE_DIR) + +############################################################# +# +# Toplevel Makefile options +# +############################################################# +ifeq ($(strip $(BR2_PACKAGE_LIBSNDFILE)),y) +TARGETS+=libsndfile +endif -- cgit v1.2.3