diff options
author | Toyohisa Kameyama <kameyama@riken.jp> | 2019-08-10 00:24:16 +0900 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2019-08-09 10:24:16 -0500 |
commit | b54576abaf09abb5cabae167c2bc7aef6016ea0f (patch) | |
tree | 10addd8dd5e3650aaf26b9bc025f94b425c7abb8 | |
parent | 74fe729be2b9e2d908a2ecc7a6872199f4153ab0 (diff) | |
download | spack-b54576abaf09abb5cabae167c2bc7aef6016ea0f.tar.gz spack-b54576abaf09abb5cabae167c2bc7aef6016ea0f.tar.bz2 spack-b54576abaf09abb5cabae167c2bc7aef6016ea0f.tar.xz spack-b54576abaf09abb5cabae167c2bc7aef6016ea0f.zip |
sdl2: fix dependency for libxext and build on ARM (#12351)
1. add dependency for libxext2.
2. SSEMATH is off is aarch64.
3. reformat comment for flake8.
-rw-r--r-- | var/spack/repos/builtin/packages/sdl2/package.py | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/sdl2/package.py b/var/spack/repos/builtin/packages/sdl2/package.py index f38074a4e5..708f77d648 100644 --- a/var/spack/repos/builtin/packages/sdl2/package.py +++ b/var/spack/repos/builtin/packages/sdl2/package.py @@ -7,9 +7,9 @@ from spack import * class Sdl2(CMakePackage): - """Simple DirectMedia Layer is a cross-platform development library designed - to provide low level access to audio, keyboard, mouse, joystick, and - graphics hardware via OpenGL and Direct3D.""" + """Simple DirectMedia Layer is a cross-platform development library + designed to provide low level access to audio, keyboard, mouse, joystick, + and graphics hardware via OpenGL and Direct3D.""" homepage = "https://wiki.libsdl.org/FrontPage" url = "https://libsdl.org/release/SDL2-2.0.5.tar.gz" @@ -17,3 +17,11 @@ class Sdl2(CMakePackage): version('2.0.5', 'd4055424d556b4a908aa76fad63abd3c') depends_on('cmake@2.8.5:', type='build') + depends_on('libxext', type='link') + + def cmake_args(self): + return [ + '-DSSEMATH={0}'.format( + 'OFF' if self.spec.satisfies('target=aarch64') else 'ON' + ) + ] |