
* New package: sumo This PR adds the sumo package, as well as the fox package as a dependency. It also updates and adds some fixes for openscenegraph. For fox, the patch is for the development version. That patch should not be necessary in future versions as it has been applied upstream. The stable version is 1.6.57 and is marked as preferred. This is the version needed for sumo. Added dependencies for openscenegraph as well as set constraints on qt versions. * Update var/spack/repos/builtin/packages/sumo/package.py I had intended to set this version constraint but somehow did not. Co-Authored-By: Adam J. Stewart <ajstewart426@gmail.com> * Add dependency types to sumo recipe - googletest: 'test' - swig: 'build' - java: 'build', 'run' Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
47 lines
1.7 KiB
Python
47 lines
1.7 KiB
Python
# Copyright 2013-2020 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 Fox(AutotoolsPackage):
|
|
"""FOX is a C++ based Toolkit for developing Graphical User Interfaces
|
|
easily and effectively. It offers a wide, and growing, collection of
|
|
Controls, and provides state of the art facilities such as drag and drop,
|
|
selection, as well as OpenGL widgets for 3D graphical manipulation. FOX
|
|
also implements icons, images, and user-convenience features such as status
|
|
line help, and tooltips. Tooltips may even be used for 3D objects!"""
|
|
|
|
homepage = "http://fox-toolkit.org/"
|
|
url = "http://fox-toolkit.org/ftp/fox-1.7.67.tar.gz"
|
|
|
|
version('1.7.67', sha256='7e511685119ef096fa90d334da46f0e50cfed8d414df32d80a7850442052f57d')
|
|
version('1.6.57', preferred=True, sha256='65ef15de9e0f3a396dc36d9ea29c158b78fad47f7184780357b929c94d458923')
|
|
|
|
patch('no_rexdebug.patch', when='@1.7.67')
|
|
|
|
variant('opengl', default=False, description='opengl support')
|
|
|
|
depends_on('bzip2')
|
|
depends_on('jpeg')
|
|
depends_on('libpng')
|
|
depends_on('libtiff')
|
|
depends_on('zlib')
|
|
depends_on('libx11')
|
|
depends_on('libsm')
|
|
depends_on('libxft')
|
|
depends_on('libxext')
|
|
depends_on('libxcursor')
|
|
depends_on('libxi')
|
|
depends_on('libxrandr')
|
|
depends_on('gl', when='+opengl')
|
|
|
|
def configure_args(self):
|
|
# Make the png link flags explicit or it will try to pick up libpng15
|
|
# from system
|
|
args = ['LDFLAGS={0}'.format(self.spec['libpng'].libs.search_flags)]
|
|
args += self.with_or_without('opengl')
|
|
return args
|