summaryrefslogtreecommitdiffstats
path: root/FUNCTIONS
diff options
context:
space:
mode:
authorAndraž Levstik2008-01-12 19:27:47 +0100
committerAndraž Levstik2008-01-12 19:27:47 +0100
commit4da9c5fb26b24ce3bab4d8f1523ea2d851a29107 (patch)
treea564a468d37038ac03959f0e257d568a720db247 /FUNCTIONS
parent60952b3a2d80aea5312ba71f39c099c53f7fa09c (diff)
FUNCTIONS: default_build_configure and default_build_make added
Diffstat (limited to 'FUNCTIONS')
-rwxr-xr-xFUNCTIONS28
1 files changed, 28 insertions, 0 deletions
diff --git a/FUNCTIONS b/FUNCTIONS
index 6473db6ae7..94b3603027 100755
--- a/FUNCTIONS
+++ b/FUNCTIONS
@@ -695,4 +695,32 @@ function default_kde3_build() {
}
+#---
+## Default configure
+#---
+function default_build_configure() {
+# this is here so that config_query_option can be used without
+# extra junk
+local up_spell_name=$(echo $SPELL | tr "a-z" "A-Z") &&
+OPTS="$(eval echo \$${up_spell_name}_OPTS) $OPTS" &&
+OPTS="$OPTS --build=${BUILD}"
+#If these switches are used, they _may_ stop distcc and ccache from working
+# for some spells (bug 3798)
+# We could write wrappers for all of the possible binaries
+[[ $CROSS_INSTALL == on ]] && OPTS="$OPTS --host=${HOST}"
+
+./configure --prefix=${INSTALL_ROOT}/usr \
+ --sysconfdir=${INSTALL_ROOT}/etc \
+ --localstatedir=${INSTALL_ROOT}/var \
+ --mandir=${INSTALL_ROOT}/usr/share/man \
+ --infodir=${INSTALL_ROOT}/usr/share/info \
+ $OPTS
+}
+
+#---
+## Default make
+#---
+function default_build_make(){
+ make
+}