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 a cross-platform C++ binding for OpenGL |
---|
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 | # prevent failed builds on incompatible systems |
---|
28 | pre-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 | |
---|
35 | depends_build-append port:py27-pystache \ |
---|
36 | port:glfw |
---|
37 | |
---|
38 | configure.args-append -DPYTHON_EXECUTABLE:FILEPATH=${prefix}/bin/python2.7 |
---|
39 | cmake.out_of_source yes |
---|
40 | |
---|
41 | # one patch to override folder layout logic to match macports |
---|
42 | patchfiles-append patch-glbinding-cmake-installdirs.diff |
---|
43 | |
---|
44 | variant docs description "install documentation" { |
---|
45 | configure.args-append -DOPTION_BUILD_DOCS:BOOL=ON |
---|
46 | depends_build-append port:doxygen |
---|
47 | } |
---|
48 | |
---|
49 | variant examples description "install examples" { |
---|
50 | configure.args-append -DOPTION_BUILD_EXAMPLES:BOOL=ON |
---|
51 | depends_build-append port:glew \ |
---|
52 | port:cpplocate |
---|
53 | } |
---|