Ticket #52910: Portfile

File Portfile, 2.3 KB (added by ken-cunningham-webuse, 7 years ago)
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2
3PortSystem          1.0
4PortGroup           cmake 1.0
5PortGroup           cxx11 1.0
6PortGroup           github 1.0
7
8github.setup        cginternals glbinding 2.1.1 v
9categories          devel
10platforms           darwin
11maintainers         gmail.com:ken.cunningham.webuse openmaintainer
12license             MIT
13
14description         glbinding is an MIT licensed, cross-platform C++ binding for the OpenGL API
15long_description    glbinding leverages modern C++11 features like enum classes, lambdas, and \
16                    variadic templates, instead of relying on macros. All OpenGL symbols are \
17                    real functions and variables. It provides type-safe parameters, per feature \
18                    API header, lazy function resolution, multi-context and multi-thread support, \
19                    global and local function callbacks, meta information about the generated OpenGL \
20                    binding and the OpenGL runtime, as well as tools and examples for quick-starting \
21                    your projects. Based on the OpenGL API specification (gl.xml) glbinding is \
22                    generated using python scripts and templates that can be easily adapted to fit custom needs.
23
24checksums           rmd160  1c95c08d50d0e14c890d890fbfb1d0c612c16562 \
25                    sha256  2ce7d20d92703a855ce2ccf1f349d6721c0d9d8aab9da42aa303f0831290f77c
26                   
27pre-fetch {
28    if {${os.platform} eq "darwin" && ${os.major} < 13} {
29        ui_error "Presently requires OS X 10.9 or later (requires Thread-Local Storage)"
30        return -code error "incompatible Mac operating system version"
31    }
32}
33
34depends_build-append port:py27-pystache \
35                     port:glfw
36
37configure.args-append -DPYTHON_EXECUTABLE:FILEPATH=${prefix}/bin/python2.7
38cmake.out_of_source yes
39patchfiles-append patch-glbinding-cmake-installdirs.diff
40
41variant docs description "install documentation" {
42    configure.args-append -DOPTION_BUILD_DOCS:BOOL=ON
43    depends_build-append port:doxygen
44}
45
46variant examples description "install examples" {
47    configure.args-append -DOPTION_BUILD_EXAMPLES:BOOL=ON
48    depends_build-append port:glew \
49                         port:cpplocate
50}