audiofile: new package
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Mon, 23 Apr 2012 03:31:36 +0000 (03:31 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 25 Apr 2012 10:07:36 +0000 (12:07 +0200)
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/multimedia/Config.in
package/multimedia/audiofile/Config.in [new file with mode: 0644]
package/multimedia/audiofile/audiofile.mk [new file with mode: 0644]

index a05d1d983a7e641daf27bc0886fddb279571b142..effec38f5334dc8d2c462f9a9d115fea35a1db6b 100644 (file)
@@ -1,6 +1,7 @@
 menu "Audio and video libraries and applications"
 source "package/multimedia/alsa-lib/Config.in"
 source "package/multimedia/alsa-utils/Config.in"
+source "package/multimedia/audiofile/Config.in"
 source "package/multimedia/aumix/Config.in"
 source "package/multimedia/faad2/Config.in"
 source "package/multimedia/flac/Config.in"
diff --git a/package/multimedia/audiofile/Config.in b/package/multimedia/audiofile/Config.in
new file mode 100644 (file)
index 0000000..4f9952c
--- /dev/null
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_AUDIOFILE
+       bool "audiofile"
+       depends on BR2_INSTALL_LIBSTDCPP
+       help
+         The Audio File Library handles reading and writing audio files
+         in many common formats.
+
+         http://www.68k.org/~michael/audiofile/
+
+comment "audiofile requires a toolchain with C++ support enabled"
+       depends on !BR2_INSTALL_LIBSTDCPP
diff --git a/package/multimedia/audiofile/audiofile.mk b/package/multimedia/audiofile/audiofile.mk
new file mode 100644 (file)
index 0000000..a49cc3e
--- /dev/null
@@ -0,0 +1,19 @@
+#############################################################
+#
+# audiofile
+#
+#############################################################
+
+AUDIOFILE_VERSION = 0.3.3
+AUDIOFILE_SITE = http://audiofile.68k.org
+AUDIOFILE_INSTALL_STAGING = YES
+AUDIOFILE_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99'
+
+# Useless and needs alsa-lib
+define AUDIOFILE_DISABLE_EXAMPLES
+       $(SED) 's/examples//' $(@D)/Makefile.in
+endef
+
+AUDIOFILE_POST_PATCH_HOOKS += AUDIOFILE_DISABLE_EXAMPLES
+
+$(eval $(call AUTOTARGETS))