[beast: 3/14] SFI: provide INSTALLPATH_BEASTEXECDIR and INSTALLPATH_PYBEASTDIR
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 3/14] SFI: provide INSTALLPATH_BEASTEXECDIR and INSTALLPATH_PYBEASTDIR
- Date: Sat, 19 Mar 2016 13:12:51 +0000 (UTC)
commit d5d63fe5b3894f37f348d0174191a8266a028f15
Author: Tim Janik <timj gnu org>
Date: Mon Dec 7 00:42:23 2015 +0100
SFI: provide INSTALLPATH_BEASTEXECDIR and INSTALLPATH_PYBEASTDIR
Signed-off-by: Tim Janik <timj gnu org>
configure.ac | 9 ++++++---
sfi/glib-extra.cc | 2 ++
sfi/glib-extra.hh | 2 ++
3 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 3f79c62..f20016e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -75,28 +75,31 @@ AC_SUBST(LT_VERSION_INFO)
# Define package directories per major/minor version
bseincludedir="\${includedir}/bse-$MAJOR"
bselibdir="\${libdir}/bse-$MAJOR.$MINOR.$MICRO"
+beastexecdir="\${libexecdir}/beast-$MAJOR.$MINOR.$MICRO"
datadir="\${datarootdir}/beast"
docdir="${datarootdir}/doc/beast" # "beast-$MAJOR"
# Substitute directories in Makefiles
AC_SUBST(bseincludedir)
AC_SUBST(bselibdir)
+AC_SUBST(beastexecdir)
AC_SUBST(datadir)
AC_SUBST(docdir)
# Provide directories for C++
-bak_prefix="$prefix"; bak_exec_prefix="$exec_prefix"; bak_libdir="$libdir"
+bak_prefix="$prefix"; bak_exec_prefix="$exec_prefix"; bak_libdir="$libdir"; bak_libexecdir="$libexecdir"
bak_datarootdir="$datarootdir"; bak_datadir="$datadir"; bak_includedir="$includedir"
test "x$prefix" = xNONE && prefix="$ac_default_prefix" ; test "x$exec_prefix" = xNONE &&
exec_prefix="$prefix"
-libdir=`eval echo "${libdir}"` ; datarootdir=`eval echo "${datarootdir}"` ;
+libdir=`eval echo "${libdir}"` ; libexecdir=`eval echo "${libexecdir}"` ; datarootdir=`eval echo
"${datarootdir}"` ;
datadir=`eval echo "${datadir}"`; bseincludedir=`eval echo "${bseincludedir}"`
AC_DEFINE_UNQUOTED(CONFIGURE_INSTALLPATH_BSEINCLUDEDIR, ["`eval echo "${bseincludedir}"`"], [Sfidl standard
include directory])
AC_DEFINE_UNQUOTED(CONFIGURE_INSTALLPATH_BINDIR, ["`eval echo "${bindir}"`"], [Directory to install and
execute programs])
AC_DEFINE_UNQUOTED(CONFIGURE_INSTALLPATH_LOCALEBASE, ["`eval echo ${localedir}`"], [Base directory for
locale specific message catalogs])
AC_DEFINE_UNQUOTED(CONFIGURE_INSTALLPATH_LADSPA, ["`eval echo ${libdir}/ladspa`"], [Searchpath for LADSPA
plugins])
AC_DEFINE_UNQUOTED(CONFIGURE_INSTALLPATH_BSELIBDIR, ["`eval echo ${bselibdir}`"], [Directory to install
plugins and drivers])
+AC_DEFINE_UNQUOTED(CONFIGURE_INSTALLPATH_BEASTEXECDIR, ["`eval echo ${beastexecdir}`"], [Directory under
whic to install Beast executable files])
AC_DEFINE_UNQUOTED(CONFIGURE_INSTALLPATH_DATADIR, ["`eval echo ${datadir}`"], [Directory to install samples,
effects, scripts, etc])
AC_DEFINE_UNQUOTED(CONFIGURE_INSTALLPATH_DOCDIR, ["`eval echo ${docdir}`"], [Directory to install
documentation])
AC_DEFINE_UNQUOTED(CONFIGURE_INSTALLPATH_USER_DATA, ["~/beast"], [Searchpath for user owned Beast resources])
-prefix="$bak_prefix"; exec_prefix="$bak_exec_prefix"; libdir="$bak_libdir"
+prefix="$bak_prefix"; exec_prefix="$bak_exec_prefix"; libdir="$bak_libdir"; libexecdir="$bak_libexecdir"
datarootdir="$bak_datarootdir"; datadir="$bak_datadir"; includedir="$bak_includedir"
# Build tree checks
diff --git a/sfi/glib-extra.cc b/sfi/glib-extra.cc
index 70ad82a..811e518 100644
--- a/sfi/glib-extra.cc
+++ b/sfi/glib-extra.cc
@@ -1054,6 +1054,8 @@ installpath (InstallpathType installpath_type)
case INSTALLPATH_DATADIR_IMAGES: return installpath (INSTALLPATH_DATADIR) + "/images";
case INSTALLPATH_DATADIR_KEYS: return installpath (INSTALLPATH_DATADIR) + "/keys";
case INSTALLPATH_DATADIR_SKINS: return installpath (INSTALLPATH_DATADIR) + "/skins";
+ case INSTALLPATH_BEASTEXECDIR: return CONFIGURE_INSTALLPATH_BEASTEXECDIR;
+ case INSTALLPATH_PYBEASTDIR: return installpath (INSTALLPATH_BEASTEXECDIR) +
"/pybeast";
}
return "";
}
diff --git a/sfi/glib-extra.hh b/sfi/glib-extra.hh
index a812021..362bf34 100644
--- a/sfi/glib-extra.hh
+++ b/sfi/glib-extra.hh
@@ -355,6 +355,8 @@ enum InstallpathType {
INSTALLPATH_DATADIR_IMAGES,
INSTALLPATH_DATADIR_KEYS,
INSTALLPATH_DATADIR_SKINS,
+ INSTALLPATH_BEASTEXECDIR,
+ INSTALLPATH_PYBEASTDIR,
};
/// Provide installation directories and searchpaths for various types of data.
std::string installpath (InstallpathType installpath_type);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]