summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/kconfig/packages.kconfig6
-rw-r--r--core/mk/packages.mk3
-rw-r--r--packages/audio/audio.kconfig27
-rw-r--r--packages/audio/audio.mk29
-rw-r--r--packages/audio/libsndfile/libsndfile.kconfig50
-rw-r--r--packages/audio/libsndfile/libsndfile.mk35
6 files changed, 149 insertions, 1 deletions
diff --git a/core/kconfig/packages.kconfig b/core/kconfig/packages.kconfig
index 1103d62..18c38c0 100644
--- a/core/kconfig/packages.kconfig
+++ b/core/kconfig/packages.kconfig
@@ -1,6 +1,6 @@
################################################################################
# Embtoolkit
-# Copyright(C) 2009-2011 Abdoulaye Walsimou GAYE.
+# Copyright(C) 2009-2014 Abdoulaye Walsimou GAYE.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -40,6 +40,10 @@ menu "Flash manipulation tools"
source packages/system/mtdutils/mtdutils.kconfig
endmenu
+menu "Audio packages"
+source packages/audio/audio.kconfig
+endmenu
+
menu "Compression packages"
source packages/compression/compression.kconfig
endmenu
diff --git a/core/mk/packages.mk b/core/mk/packages.mk
index 5a2fef1..09736c1 100644
--- a/core/mk/packages.mk
+++ b/core/mk/packages.mk
@@ -47,6 +47,9 @@ endif
# Flash manipulation tools: mtd-utils
ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_MTDUTILS) += mtdutils_install
+# audio packages
+include packages/audio/audio.mk
+
# Compression packages
include packages/compression/compression.mk
diff --git a/packages/audio/audio.kconfig b/packages/audio/audio.kconfig
new file mode 100644
index 0000000..5646ccf
--- /dev/null
+++ b/packages/audio/audio.kconfig
@@ -0,0 +1,27 @@
+################################################################################
+# Embtoolkit
+# Copyright(C) 2014 GAYE Abdoulaye Walsimou.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+################################################################################
+#
+# \file misc.kconfig
+# \brief misc.kconfig of Embtoolkit
+# \author GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
+# \date May 2014
+################################################################################
+
+# libsndfile
+source packages/audio/libsndfile/libsndfile.kconfig
diff --git a/packages/audio/audio.mk b/packages/audio/audio.mk
new file mode 100644
index 0000000..63a87ac
--- /dev/null
+++ b/packages/audio/audio.mk
@@ -0,0 +1,29 @@
+################################################################################
+# Embtoolkit
+# Copyright(C) 2014 GAYE Abdoulaye Walsimou.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+################################################################################
+#
+# \file misc.mk
+# \brief misc.mk of Embtoolkit
+# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# \date May 2014
+################################################################################
+
+embtk_pkgincdir := packages/audio
+
+# libsndfile
+$(call embtk_include_pkg,libsndfile)
diff --git a/packages/audio/libsndfile/libsndfile.kconfig b/packages/audio/libsndfile/libsndfile.kconfig
new file mode 100644
index 0000000..ef9612f
--- /dev/null
+++ b/packages/audio/libsndfile/libsndfile.kconfig
@@ -0,0 +1,50 @@
+################################################################################
+# Embtoolkit
+# Copyright(C) 2010-2014 Abdoulaye Walsimou GAYE.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+################################################################################
+#
+# \file libsndfile.kconfig
+# \brief libsndfile.kconfig of Embtoolkit.
+# \author Ricardo Crudo <ricardo.crudo@gmail.com>
+# \date May 2014
+################################################################################
+
+config EMBTK_HAVE_LIBSNDFILE
+ bool "Have 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.
+
+choice
+ prompt "libsndfile version to use"
+ depends on EMBTK_HAVE_LIBSNDFILE
+ help
+ libsndfile version to use
+
+ config EMBTK_LIBSNDFILE_VERSION_1_0_25
+ bool "libsndfile-1.0.25"
+endchoice
+
+config EMBTK_LIBSNDFILE_VERSION_STRING
+ string
+ default "1.0.25" if EMBTK_LIBSNDFILE_VERSION_1_0_25
+
+config EMBTK_LIBSNDFILE_NEED_PATCH
+ bool
+config EMBTK_LIBSNDFILE_NEED_AUTORECONF
+ bool
diff --git a/packages/audio/libsndfile/libsndfile.mk b/packages/audio/libsndfile/libsndfile.mk
new file mode 100644
index 0000000..858b083
--- /dev/null
+++ b/packages/audio/libsndfile/libsndfile.mk
@@ -0,0 +1,35 @@
+################################################################################
+# Embtoolkit
+# Copyright(C) 2009-2014 Abdoulaye Walsimou GAYE.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+################################################################################
+#
+# \file libsndfile.mk
+# \brief libsndfile.mk of Embtoolkit.
+# \author Ricardo Crudo <ricardo.crudo@gmail.com>
+# \date May 2014
+################################################################################
+
+LIBSNDFILE_NAME := libsndfile
+LIBSNDFILE_VERSION := $(call embtk_get_pkgversion,libsndfile)
+LIBSNDFILE_SITE := http://www.mega-nerd.com/libsndfile/files
+LIBSNDFILE_PACKAGE := libsndfile-$(LIBSNDFILE_VERSION).tar.gz
+LIBSNDFILE_SRC_DIR := $(embtk_pkgb)/libsndfile-$(LIBSNDFILE_VERSION)
+LIBSNDFILE_BUILD_DIR := $(embtk_pkgb)/libsndfile-$(LIBSNDFILE_VERSION)
+
+LIBSNDFILE_INCLUDES := sndfile.h
+LIBSNDFILE_LIBS := libsndfile.*
+LIBSNDFILE_PKGCONFIGS := sndfile.pc