diff options
-rw-r--r-- | rules/libsndfile.in | 30 | ||||
-rw-r--r-- | rules/libsndfile.make | 80 |
2 files changed, 110 insertions, 0 deletions
diff --git a/rules/libsndfile.in b/rules/libsndfile.in new file mode 100644 index 000000000..26cd8cb77 --- /dev/null +++ b/rules/libsndfile.in @@ -0,0 +1,30 @@ +## SECTION=multimedia_libs + +menuconfig LIBSNDFILE + tristate + prompt "libsndfile " + select LIBOGG if LIBSNDFILE_EXT_LIBS + select LIBVORBIS if LIBSNDFILE_EXT_LIBS + select FLAC if LIBSNDFILE_EXT_LIBS + help + Library for reading/writing audio files + + libsndfile is a library of C routines for reading and + writing files containing sampled audio data. + + Various versions of WAV (integer, floating point, GSM, and + compressed formats); Microsoft PCM, A-law and u-law formats; + AIFF, AIFC and RIFX; various AU/SND formats (Sun/NeXT, Dec + AU, G721 and G723 ADPCM); RAW header-less PCM files; Amiga + IFF/8SVX/16SV PCM files; Ensoniq PARIS (.PAF); Apple's Core + Audio Format (CAF) and others. + +if LIBSNDFILE + +config LIBSNDFILE_EXT_LIBS + bool "support ogg, vorbis, flac (needs external libs)" + +config LIBSNDFILE_TOOLS + bool "libsndfile tools" + +endif diff --git a/rules/libsndfile.make b/rules/libsndfile.make new file mode 100644 index 000000000..972c146b4 --- /dev/null +++ b/rules/libsndfile.make @@ -0,0 +1,80 @@ +# -*-makefile-*- +# +# Copyright (C) 2013 by Marc Kleine-Budde <mkl@pengutronix.de> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_LIBSNDFILE) += libsndfile + +# +# Paths and names +# +LIBSNDFILE_VERSION := 1.0.25 +LIBSNDFILE_MD5 := e2b7bb637e01022c7d20f95f9c3990a2 +LIBSNDFILE := libsndfile-$(LIBSNDFILE_VERSION) +LIBSNDFILE_SUFFIX := tar.gz +LIBSNDFILE_URL := http://www.mega-nerd.com/libsndfile/files/$(LIBSNDFILE).$(LIBSNDFILE_SUFFIX) +LIBSNDFILE_SOURCE := $(SRCDIR)/$(LIBSNDFILE).$(LIBSNDFILE_SUFFIX) +LIBSNDFILE_DIR := $(BUILDDIR)/$(LIBSNDFILE) +LIBSNDFILE_LICENSE := LGPLv2.1 + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# autoconf +# +LIBSNDFILE_CONF_TOOL := autoconf +LIBSNDFILE_CONF_OPT := \ + $(CROSS_AUTOCONF_USR) \ + $(GLOBAL_LARGE_FILE_OPTION) \ + --disable-octave \ + --disable-alsa \ + --$(call ptx/endis,PTXCONF_LIBSNDFILE_EXT_LIBS)-external-libs + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +LIBSNDFILE_PROGS := \ + sndfile-cmp \ + sndfile-concat \ + sndfile-convert \ + sndfile-deinterleave \ + sndfile-info \ + sndfile-interleave \ + sndfile-metadata-get \ + sndfile-metadata-set \ + sndfile-play \ + sndfile-regtest \ + sndfile-salvage + +$(STATEDIR)/libsndfile.targetinstall: + @$(call targetinfo) + + @$(call install_init, libsndfile) + @$(call install_fixup, libsndfile,PRIORITY,optional) + @$(call install_fixup, libsndfile,SECTION,base) + @$(call install_fixup, libsndfile,AUTHOR,"Marc Kleine-Budde <mkl@pengutronix.de>") + @$(call install_fixup, libsndfile,DESCRIPTION,missing) + + @$(call install_lib, libsndfile, 0, 0, 0644, libsndfile) + +ifdef PTXCONF_LIBSNDFILE_TOOLS + @$(foreach prog, $(LIBSNDFILE_PROGS), \ + $(call install_copy, libsndfile, 0, 0, 0755, -, /usr/bin/$(prog));) +endif + + @$(call install_finish, libsndfile) + + @$(call touch) + +# vim: syntax=make |