freeglut-3.0.0-foss-2016a-Mesa-11.2.1.eb 1.36 KB
Newer Older
Lukáš Krupčík's avatar
Lukáš Krupčík committed
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 28 29 30 31 32 33 34 35
easyblock = 'CMakeMake'

name = 'freeglut'
version = '3.0.0'

homepage = 'http://freeglut.sourceforge.net/'
description = "freeglut is a completely OpenSourced alternative to the OpenGL Utility Toolkit (GLUT) library."

toolchain = {'name': 'foss', 'version': '2016a'}

sources = [SOURCE_TAR_GZ]
source_urls = ['http://prdownloads.sourceforge.net/%(name)s']

mesa_ver = '11.2.1'
versionsuffix = '-Mesa-%s' % mesa_ver

builddependencies = [('CMake', '3.4.3')]

dependencies = [
    ('libX11', '1.6.3'),
    ('libXext', '1.3.3'),
    ('libXrandr', '1.5.0'),
    ('libXi', '1.7.6'),
    ('Mesa', mesa_ver),
]

configopts = ' -DX11_X11_LIB="$EBROOTLIBX11/lib/libX11.so" '
configopts += ' -DX11_X11_INCLUDE_PATH="$EBROOTLIBX11/include/X11" '
configopts += ' -DX11_Xext_LIB="$EBROOTLIBXEXT/lib/libXext.so" '
configopts += ' -DX11_Xrandr_LIB="$EBROOTLIBXRANDR/lib/libXrandr.so" '
configopts += ' -DX11_Xrandr_INCLUDE_PATH="$EBROOTLIBXRANDR/include/X11/extensions/" '
configopts += ' -DX11_Xi_LIB="$EBROOTLIBXIlib/libXrandr.so" '
configopts += ' -DX11_Xi_INCLUDE_PATH="$EBROOTLIBXI/include/X11/extensions/" '

sanity_check_paths = {
Lukáš Krupčík's avatar
Lukáš Krupčík committed
36 37 38 39
    'files': [
        ('lib/libglut.a', 'lib64/libglut.a'), ('lib/libglut.%s' %
                                               SHLIB_EXT, 'lib64/libglut.%s' %
                                               SHLIB_EXT)], 'dirs': ['include/GL'], }
Lukáš Krupčík's avatar
Lukáš Krupčík committed
40 41

moduleclass = 'lib'