diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-08-15 18:39:10 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-08-15 18:41:30 +0200 |
commit | 8c1cc1d9cfa9a2146dbfcd52a08d0f1f512ef607 (patch) | |
tree | 8ad082a80cd0341b38578395281018eef84ba3e0 | |
parent | c79838c3a14eed1cee24731f89d7b1171751d304 (diff) | |
download | aports-8c1cc1d9cfa9a2146dbfcd52a08d0f1f512ef607.tar.bz2 aports-8c1cc1d9cfa9a2146dbfcd52a08d0f1f512ef607.tar.xz |
testing/opencolorio: enable SSE2 only on x86_64
-rw-r--r-- | testing/opencolorio/APKBUILD | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/testing/opencolorio/APKBUILD b/testing/opencolorio/APKBUILD index fa2187a59f..9a8e43e643 100644 --- a/testing/opencolorio/APKBUILD +++ b/testing/opencolorio/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Mark Riedesel <mark@klowner.com> pkgname=opencolorio pkgver=1.0.9 -pkgrel=0 +pkgrel=1 pkgdesc="A color management framework for visual effects and animation" url="http://opencolorio.org" arch="all" @@ -17,11 +17,17 @@ source="$pkgname-$pkgver.tar.gz::http://github.com/imageworks/OpenColorIO/archiv builddir="$srcdir/OpenColorIO-$pkgver" build() { + local pyver use_sse2 cd "$builddir" - # Just to be sure we're using alpine dev packages + # Just to be sure we're using Alpine packages. rm -f ext/lcms* ext/tinyxml* ext/yaml* + case "$CARCH" in + x86_64) use_sse2=TRUE ;; + *) use_sse2=FALSE ;; + esac + local pyver for pyver in python3 python2; do mkdir build-$pyver && cd build-$pyver @@ -32,6 +38,7 @@ build() { -DOCIO_BUILD_NUKE=OFF \ -DOCIO_BUILD_SHARED=ON \ -DOCIO_BUILD_STATIC=OFF \ + -DOCIO_USE_SSE="$use_sse2" \ -DPYTHON=/usr/bin/$pyver \ -DUSE_EXTERNAL_YAML=TRUE \ -DUSE_EXTERNAL_TINYXML=TRUE \ |