blob: 25c6bd2b3a47b4c622c67e19c2169d940cd92707 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
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."""
homepage = "https://wiki.libsdl.org/FrontPage"
url = "https://libsdl.org/release/SDL2-2.0.5.tar.gz"
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.target.family == 'aarch64' else 'ON'
)
]
|