summaryrefslogtreecommitdiffstats
path: root/MESON_FUNCTIONS
diff options
context:
space:
mode:
authorTreeve Jelbert2018-02-28 21:59:35 +0100
committerTreeve Jelbert2018-02-28 21:59:35 +0100
commit3108ac2a67374ae5ea591a5fcdc248a557dc6d92 (patch)
treeadddfc9a2b8ea3385058847f9ffe88e5eab8208f /MESON_FUNCTIONS
parent82e77a4f448401dff33b301eb4a8435b1abc2732 (diff)
tweak MESON_FUNCTIONS
Diffstat (limited to 'MESON_FUNCTIONS')
-rwxr-xr-xMESON_FUNCTIONS3
1 files changed, 2 insertions, 1 deletions
diff --git a/MESON_FUNCTIONS b/MESON_FUNCTIONS
index ea2ac89632..ca69368e4d 100755
--- a/MESON_FUNCTIONS
+++ b/MESON_FUNCTIONS
@@ -1,9 +1,10 @@
# special functions for projects shich use meson build system
+PREFIX=${PREFIX:-/usr}
meson_build () {
MESON_BUILD_TYPE="${MESON_BUILD_TYPE:-release}"
# export LANG=$LC_ALL
cd $SOURCE_DIRECTORY
- SCRIPT="meson --prefix ${INSTALL_ROOT}/usr --buildtype ${MESON_BUILD_TYPE} \
+ SCRIPT="meson --prefix ${INSTALL_ROOT}/$PREFIX --buildtype ${MESON_BUILD_TYPE} \
--default-library shared --libdir lib"
for LL in $OPTS; do
SCRIPT+=" -D$LL"