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.
This commit is contained in:
parent
74fe729be2
commit
b54576abaf
@ -7,9 +7,9 @@
|
||||
|
||||
|
||||
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'
|
||||
)
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user