Subject: Re: [ecasound] Ecasound 2.3.5 released
From: Junichi Uekawa (dancer_AT_netfort.gr.jp)
Date: Sat Nov 13 2004 - 04:39:03 EET
Hi,
Congrats on releasing 2.3.5.
The following is a patch that I've had pending for the last year or two and
never got around to doing.
The patch will allow use of --datadir= option to ./configure, so that
ecasound uses that value instead of hard-coding PREFIX/share/ecasound.
(Which I am using for the Debian package)
regards,
junichi
diff -ur ecasound2.2-2.3.5/libecasound.orig/Makefile.am ecasound2.2-2.3.5/libecasound/Makefile.am
--- ecasound2.2-2.3.5/libecasound.orig/Makefile.am 2004-11-13 11:03:21.000000000 +0900
+++ ecasound2.2-2.3.5/libecasound/Makefile.am 2004-11-13 11:32:12.000000000 +0900
@@ -49,6 +49,9 @@
-I$(top_srcdir)/kvutils \
$(ECA_S_EXTRA_CPPFLAGS)
+# Add this to CPPFLAGS
+CPPFLAGS += "-DPKGDATADIR=\"${pkgdatadir}\""
+
# ----------------------------------------------------------------------
# header files
# ----------------------------------------------------------------------
diff -ur ecasound2.2-2.3.5/libecasound.orig/eca-resources.cpp ecasound2.2-2.3.5/libecasound/eca-resources.cpp
--- ecasound2.2-2.3.5/libecasound.orig/eca-resources.cpp 2004-11-13 11:03:21.000000000 +0900
+++ ecasound2.2-2.3.5/libecasound/eca-resources.cpp 2004-11-13 11:13:46.000000000 +0900
@@ -36,8 +36,7 @@
ECA_RESOURCES::ECA_RESOURCES(void)
: resources_found_rep(true)
{
- string ecasound_prefix (ECA_PREFIX);
- string ecasound_resource_path = ecasound_prefix + "/share/ecasound";
+ string ecasound_resource_path (PKGDATADIR);
globalrc_repp = new RESOURCE_FILE();
globalrc_repp->resource_file(ecasound_resource_path + "/ecasoundrc");
This archive was generated by hypermail 2b28 : Sat Nov 13 2004 - 04:39:16 EET