diff options
author | Andraž Levstik | 2008-01-12 19:27:47 +0100 |
---|---|---|
committer | Andraž Levstik | 2008-01-12 19:27:47 +0100 |
commit | 4da9c5fb26b24ce3bab4d8f1523ea2d851a29107 (patch) | |
tree | a564a468d37038ac03959f0e257d568a720db247 /FUNCTIONS | |
parent | 60952b3a2d80aea5312ba71f39c099c53f7fa09c (diff) |
FUNCTIONS: default_build_configure and default_build_make added
Diffstat (limited to 'FUNCTIONS')
-rwxr-xr-x | FUNCTIONS | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -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 +} |