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 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup cmake 1.0 |
---|
5 | PortGroup cxx11 1.0 |
---|
6 | PortGroup github 1.0 |
---|
7 | |
---|
8 | github.setup cginternals glbinding 2.1.1 v |
---|
9 | categories devel |
---|
10 | platforms darwin |
---|
11 | maintainers gmail.com:ken.cunningham.webuse openmaintainer |
---|
12 | license MIT |
---|
13 | |
---|
14 | description glbinding is an MIT licensed, cross-platform C++ binding for the OpenGL API |
---|
15 | long_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 | |
---|
24 | checksums rmd160 1c95c08d50d0e14c890d890fbfb1d0c612c16562 \ |
---|
25 | sha256 2ce7d20d92703a855ce2ccf1f349d6721c0d9d8aab9da42aa303f0831290f77c |
---|
26 | |
---|
27 | pre-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 | |
---|
34 | depends_build-append port:py27-pystache \ |
---|
35 | port:glfw |
---|
36 | |
---|
37 | configure.args-append -DPYTHON_EXECUTABLE:FILEPATH=${prefix}/bin/python2.7 |
---|
38 | cmake.out_of_source yes |
---|
39 | patchfiles-append patch-glbinding-cmake-installdirs.diff |
---|
40 | |
---|
41 | variant docs description "install documentation" { |
---|
42 | configure.args-append -DOPTION_BUILD_DOCS:BOOL=ON |
---|
43 | depends_build-append port:doxygen |
---|
44 | } |
---|
45 | |
---|
46 | variant examples description "install examples" { |
---|
47 | configure.args-append -DOPTION_BUILD_EXAMPLES:BOOL=ON |
---|
48 | depends_build-append port:glew \ |
---|
49 | port:cpplocate |
---|
50 | } |
---|