summaryrefslogtreecommitdiffstats
path: root/package/multimedia
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2009-01-17 00:19:06 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2009-01-17 00:19:06 +0000
commit03e3b81d4c823929a054707637948c281a14431f (patch)
treed71ce667df415f250be967cdf8e5b85aa4f0fb11 /package/multimedia
parent3eecdf6166668c31dc017af2ce3ced67208c1155 (diff)
downloadbuildroot-novena-03e3b81d4c823929a054707637948c281a14431f.tar.gz
buildroot-novena-03e3b81d4c823929a054707637948c281a14431f.zip
Make alsa-lib depend on libpython, if new BR2_PACKAGE_ALSA_LIB_PYTHON is selected
Diffstat (limited to 'package/multimedia')
-rw-r--r--package/multimedia/alsa-lib/Config.in11
-rw-r--r--package/multimedia/alsa-lib/alsa-lib.mk5
2 files changed, 14 insertions, 2 deletions
diff --git a/package/multimedia/alsa-lib/Config.in b/package/multimedia/alsa-lib/Config.in
index 3077d36b1..6d9ee835e 100644
--- a/package/multimedia/alsa-lib/Config.in
+++ b/package/multimedia/alsa-lib/Config.in
@@ -5,3 +5,14 @@ config BR2_PACKAGE_ALSA_LIB
functionality to the Linux operating system.
http://www.alsa-project.org/
+
+config BR2_PACKAGE_ALSA_LIB_PYTHON
+ bool "Python support for alsa-lib"
+ depends on BR2_PACKAGE_ALSA_LIB
+ select BR2_PACKAGE_PYTHON
+ help
+ Add python support for alsa-lib.
+ Python will be built and libpython will be installed
+ in the target directory
+ http://www.alsa-project.org/
+
diff --git a/package/multimedia/alsa-lib/alsa-lib.mk b/package/multimedia/alsa-lib/alsa-lib.mk
index b87062646..5105b2bb7 100644
--- a/package/multimedia/alsa-lib/alsa-lib.mk
+++ b/package/multimedia/alsa-lib/alsa-lib.mk
@@ -17,8 +17,9 @@ else
ALSA_LIB_ABI:=
endif
-ifeq ($(BR2_PACKAGE_PYTHON),y)
+ifeq ($(BR2_PACKAGE_ALSA_LIB_PYTHON),y)
ALSA_LIB_CONFIGURE_OPTS += --with-pythonlibs=-lpython$(PYTHON_VERSION_MAJOR)
+ALSA_LIB_DEPS = libpython
else
ALSA_LIB_CONFIGURE_OPTS += --disable-python
endif
@@ -74,7 +75,7 @@ $(TARGET_DIR)/$(ALSA_LIB_TARGET_BINARY): $(STAGING_DIR)/$(ALSA_LIB_TARGET_BINARY
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/alsa-lib/smixer/*.so
touch -c $@
-alsa-lib: uclibc $(TARGET_DIR)/$(ALSA_LIB_TARGET_BINARY)
+alsa-lib: uclibc $(ALSA_LIB_DEPS) $(TARGET_DIR)/$(ALSA_LIB_TARGET_BINARY)
alsa-lib-source: $(DL_DIR)/$(ALSA-LIB_SOURCE)