summaryrefslogtreecommitdiffstats
path: root/FUNCTIONS
diff options
context:
space:
mode:
authorJaka Kranjc2007-11-13 12:49:44 +0000
committerJaka Kranjc2007-11-13 18:33:23 +0000
commitfc6e98fe18bdc17a5a2bd1d0486afcab6fea2e7d (patch)
tree87ab7f1904eb4195c50cdca21a00ab14382b527c /FUNCTIONS
parent585cceb713e18cc975d9aa6b1c97ce505f1b2d6c (diff)
FUNCTIONS:
cmake flags use : which is an internal sorcery delimiter. In order to facilitate the passing of depends flags, use % instead and call prepare_cmake_flags at the start of BUILD.
Diffstat (limited to 'FUNCTIONS')
-rwxr-xr-xFUNCTIONS12
1 files changed, 12 insertions, 0 deletions
diff --git a/FUNCTIONS b/FUNCTIONS
index 15e12c3d36..3e66ac47bd 100755
--- a/FUNCTIONS
+++ b/FUNCTIONS
@@ -526,6 +526,18 @@ function build_qt3_or_4()
make
}
+# cmake flags use : which is an internal sorcery delimiter.
+# In order to facilitate the passing of depends flags, use % instead and call
+# this function at the start of BUILD. Don't use it anywhere else.
+# Example:
+# DEPENDS: depends kdelibs4 -DCRUFT%BOOL=FALSE; ...
+# BUILD: prepare_cmake_flags; ...
+function prepare_cmake_flags()
+{
+ OPTS="${OPTS//%/:}"
+}
+
+
#-------------------------------------------------------------------------
## Print the version of the running kernel.
#-------------------------------------------------------------------------