Ticket #52910: Portfile.2

File Portfile.2, 2.5 KB (added by kencu (Ken), 8 years ago)

Portfile.update.20161220

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 a cross-platform C++ binding for OpenGL
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   
27# prevent failed builds on incompatible systems
28pre-fetch {
29    if {${os.platform} eq "darwin" && ${os.major} < 13} {
30        ui_error "Presently requires 10.9 or later (requires Thread-Local Storage)"
31        return -code error "incompatible Mac operating system version"
32    }
33}
34
35depends_build-append    port:py27-pystache \
36                        port:glfw
37
38configure.args-append   -DPYTHON_EXECUTABLE:FILEPATH=${prefix}/bin/python2.7
39cmake.out_of_source     yes
40
41# one patch to override folder layout logic to match macports
42patchfiles-append       patch-glbinding-cmake-installdirs.diff
43
44variant docs description "install documentation" {
45    configure.args-append   -DOPTION_BUILD_DOCS:BOOL=ON
46    depends_build-append    port:doxygen
47}
48
49variant examples description "install examples" {
50    configure.args-append   -DOPTION_BUILD_EXAMPLES:BOOL=ON
51    depends_build-append    port:glew \
52                            port:cpplocate
53}