diff options
author | Paul Sherwood <paul.sherwood@codethink.co.uk> | 2015-09-25 08:47:49 +0000 |
---|---|---|
committer | Paul Sherwood <paul.sherwood@codethink.co.uk> | 2015-09-26 08:27:41 +0100 |
commit | 3a2f641e4e70e76ffa77629c6208970c1a7af667 (patch) | |
tree | e6635788976c616017c05b5ea93432f9b2dc769e /baserock/strata/swift | |
parent | c844667a718e8640d9ae2b7640a3b0dc0fb53b0e (diff) | |
download | definitions-3a2f641e4e70e76ffa77629c6208970c1a7af667.tar.gz |
Proposed re-org of definitions repobaserock/ps/reorganise-definitions
Diffstat (limited to 'baserock/strata/swift')
-rw-r--r-- | baserock/strata/swift/gf-complete.morph | 20 | ||||
-rw-r--r-- | baserock/strata/swift/liberasurecode.morph | 5 | ||||
-rw-r--r-- | baserock/strata/swift/xattr.morph | 8 |
3 files changed, 33 insertions, 0 deletions
diff --git a/baserock/strata/swift/gf-complete.morph b/baserock/strata/swift/gf-complete.morph new file mode 100644 index 00000000..e8965c76 --- /dev/null +++ b/baserock/strata/swift/gf-complete.morph @@ -0,0 +1,20 @@ +name: gf-complete +kind: chunk +build-system: autotools +pre-configure-commands: +- ./autogen.sh +configure-commands: +- | + cpu="$(echo $TARGET | cut -d '-' -f 1)" + case "$cpu" in + x86_64) + SSE= + ;; + *) + # Disable SSE4 for any architecture which are not x86_64 bits + # see more information about architecture which support SSE in + # https://en.wikipedia.org/wiki/SSE4#Supporting_CPUs. + SSE=--disable-sse + ;; + esac + ./configure --prefix="$PREFIX" "$SSE" diff --git a/baserock/strata/swift/liberasurecode.morph b/baserock/strata/swift/liberasurecode.morph new file mode 100644 index 00000000..68839403 --- /dev/null +++ b/baserock/strata/swift/liberasurecode.morph @@ -0,0 +1,5 @@ +name: liberasurecode +kind: chunk +build-system: autotools +pre-configure-commands: +- autoreconf -ivf diff --git a/baserock/strata/swift/xattr.morph b/baserock/strata/swift/xattr.morph new file mode 100644 index 00000000..65f47dae --- /dev/null +++ b/baserock/strata/swift/xattr.morph @@ -0,0 +1,8 @@ +name: xattr +kind: chunk +configure-commands: +- cp -r /usr/lib/python2.7/site-packages/cffi . +build-commands: +- python setup.py build +install-commands: +- python setup.py install --prefix "$PREFIX" --root "$DESTDIR" |