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 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup cmake 1.0 |
---|
6 | |
---|
7 | name mojoshader |
---|
8 | categories games graphics devel |
---|
9 | platforms darwin |
---|
10 | maintainers gwmail.gwu.edu:egall openmaintainer |
---|
11 | license zlib |
---|
12 | |
---|
13 | description MojoShader is a library to work with Direct3D shaders on alternate \ |
---|
14 | 3D APIs and non-Windows platforms. |
---|
15 | |
---|
16 | long_description ${description} The primary motivation is moving shaders to OpenGL \ |
---|
17 | languages on the fly. The developer deals with profiles that \ |
---|
18 | represent various target languages, such as GLSL. |
---|
19 | |
---|
20 | homepage http://icculus.org/${name}/ |
---|
21 | |
---|
22 | fetch.type hg |
---|
23 | hg.url http://hg.icculus.org/icculus/${name}/ |
---|
24 | hg.tag 3de60f597ebd |
---|
25 | version 1125 |
---|
26 | |
---|
27 | depends_build-append \ |
---|
28 | port:re2c \ |
---|
29 | port:lemon |
---|
30 | depends_lib-append port:libsdl |
---|
31 | |
---|
32 | test.run yes |
---|
33 | |
---|
34 | destroot { |
---|
35 | xinstall ${worksrcpath}/lib${name}.a ${destroot}${prefix}/lib |
---|
36 | xinstall ${worksrcpath}/${name}-compiler ${destroot}${prefix}/bin |
---|
37 | # Add a prefix to binaries with names that look like they might conflict |
---|
38 | foreach generic_bin {lemon finderrors glcaps bestprofile availableprofiles \ |
---|
39 | testparse testoutput} { |
---|
40 | xinstall ${worksrcpath}/${generic_bin} ${destroot}${prefix}/bin/${name}-${generic_bin} |
---|
41 | } |
---|
42 | eval xinstall [glob ${worksrcpath}/*.h] ${destroot}${prefix}/include |
---|
43 | xinstall -d ${destroot}${prefix}/share/${name} |
---|
44 | xinstall -W ${worksrcpath} -m 644 README.txt LICENSE.txt ${destroot}${prefix}/share/${name} |
---|
45 | } |
---|