summaryrefslogtreecommitdiff
path: root/strata/icu-common
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2015-10-16 13:07:23 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2015-10-16 13:29:48 +0900
commitd282001d128f5e427f09bfe2b5f90af2b35e86bc (patch)
treef2518162109da1f985483473c0042bae0e891e46 /strata/icu-common
parent7174fcddab930ae8bb9b6bd5721d7b3ead1b9ba0 (diff)
downloaddefinitions-d282001d128f5e427f09bfe2b5f90af2b35e86bc.tar.gz
Adding common ICU build
A common ICU stratum to share across system builds. This morph adds a conditional statement which possibly should be improved - as per commit ID 8874a7c7, we sed the makefiles specifically for arm builds. Change-Id: I282f6d4f1f599e76a1c196269233e38ea2d57d4f
Diffstat (limited to 'strata/icu-common')
-rw-r--r--strata/icu-common/icu.morph20
1 files changed, 20 insertions, 0 deletions
diff --git a/strata/icu-common/icu.morph b/strata/icu-common/icu.morph
new file mode 100644
index 00000000..42a7bc58
--- /dev/null
+++ b/strata/icu-common/icu.morph
@@ -0,0 +1,20 @@
+name: icu
+kind: chunk
+configure-commands:
+- |
+ # As per commit 8874a7c7, We issue this sed command when
+ # building ICU libraries on arm architectures.
+ cpu=$(echo $TARGET | cut -d '-' -f 1)
+ case "$cpu" in
+ *arm*)
+ sed -e 's/LDFLAGSICUDT/#LDFLAGSICUDT/' -i source/config/mh-linux
+ ;;
+ *)
+ ;;
+ esac
+ cd source
+ ./runConfigureICU Linux --prefix=/usr --sysconfdir=/etc
+build-commands:
+- cd source; unset TARGET ; make
+install-commands:
+- cd source; unset TARGET ; make DESTDIR="$DESTDIR" install