diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2008-11-15 21:33:07 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2008-11-15 21:33:07 +0000 |
commit | e7df5afeb9634a0d95499049efb5c4887069290d (patch) | |
tree | 307e4abcfc17552130058735e2d9dbd8e1f64784 /package/multimedia/libsndfile | |
parent | 4190cc1c4166160a2802efb1c090dd42ff2e7d6e (diff) |
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 <markus.heidelberg@web.de>
Diffstat (limited to 'package/multimedia/libsndfile')
-rw-r--r-- | package/multimedia/libsndfile/Config.in | 7 | ||||
-rw-r--r-- | package/multimedia/libsndfile/libsndfile-srconly.patch | 11 | ||||
-rw-r--r-- | package/multimedia/libsndfile/libsndfile.mk | 65 |
3 files changed, 83 insertions, 0 deletions
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 |