summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorPawel MOLL <pawel.moll@st.com>2008-03-07 17:18:16 +0100
committerTakashi Iwai <tiwai@suse.de>2008-03-07 17:18:16 +0100
commitd587383d6b2dba9731959d5b5ad11e672fb361c7 (patch)
tree795aa143fd2ebe6071054223dd4dcff5dfce4064 /modules
parentdf87a4be3de3fe86cefa73bc435469d163b3dcce (diff)
downloadalsa-lib-d587383d6b2dba9731959d5b5ad11e672fb361c7.tar.gz
Fix for alsa-lib cross-compilation problems with ALSA_CONFIG_DIR and ALSA_PLUGIN_DIR
"./configure" options for selecting ALSA configuration (default /usr/share/alsa) and plugin (/usr/lib/alsa-lib) directories introduced by alsa-hg/alsa-lib changeset 2284 cause problems with cross-compilation and packaging - there is no way to redefine them in runtime, during installation phase. This patch adds a level of indirection between constants and their usage - alsaconfigdir for ALSA_CONFIG_DIR and alsaplugindir for ALSA_PLUGIN_DIR - which can be redefined during "make install" stage. Signed-off-by: Pawel MOLL <pawel.moll@st.com>
Diffstat (limited to 'modules')
-rw-r--r--modules/mixer/simple/Makefile.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/mixer/simple/Makefile.am b/modules/mixer/simple/Makefile.am
index 7e49e074..dee1ed9f 100644
--- a/modules/mixer/simple/Makefile.am
+++ b/modules/mixer/simple/Makefile.am
@@ -1,4 +1,5 @@
-pkglibdir = @ALSA_PLUGIN_DIR@/smixer
+alsaplugindir = @ALSA_PLUGIN_DIR@
+pkglibdir = $(alsaplugindir)/smixer
pythonlibs = @PYTHON_LIBS@
pythonincludes = @PYTHON_INCLUDES@