Skip to content
Snippets Groups Projects
Commit 3caaeff2 authored by alice's avatar alice
Browse files

community/basisu: enable sse2 on x86

parent 0d34bf7d
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# Maintainer: Holger Jaekel <holger.jaekel@gmx.de> # Maintainer: Holger Jaekel <holger.jaekel@gmx.de>
pkgname=basisu pkgname=basisu
pkgver=1.16.4 pkgver=1.16.4
pkgrel=0 pkgrel=1
pkgdesc="Basis Universal GPU Texture Codec" pkgdesc="Basis Universal GPU Texture Codec"
url="https://github.com/BinomialLLC/basis_universal" url="https://github.com/BinomialLLC/basis_universal"
arch="all" arch="all"
...@@ -20,10 +20,10 @@ source="basisu-$pkgver.tar.gz::https://github.com/BinomialLLC/basis_universal/ar ...@@ -20,10 +20,10 @@ source="basisu-$pkgver.tar.gz::https://github.com/BinomialLLC/basis_universal/ar
builddir="$srcdir"/basis_universal-$pkgver builddir="$srcdir"/basis_universal-$pkgver
build() { build() {
_sse=OFF case "$CARCH" in
if [ "$CARCH" = "x86_64" ]; then x86*) local sse=ON ;;
_sse=ON *) local sse=OFF ;;
fi esac
if [ "$CBUILD" != "$CHOST" ]; then if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
...@@ -33,7 +33,7 @@ build() { ...@@ -33,7 +33,7 @@ build() {
-DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=ON \ -DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=MinSizeRel \ -DCMAKE_BUILD_TYPE=MinSizeRel \
-DSSE=$_sse \ -DSSE=$sse \
$CMAKE_CROSSOPTS $CMAKE_CROSSOPTS
cmake --build build cmake --build build
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment