Ticket #38685: Portfile.2

File Portfile.2, 1.7 KB (added by cooljeanius (Eric Gallager), 11 years ago)

Updated portfile

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# $Id$
3
4PortSystem          1.0
5PortGroup           cmake 1.0
6
7name                mojoshader
8categories          games graphics devel
9platforms           darwin
10maintainers         gwmail.gwu.edu:egall openmaintainer
11license             zlib
12
13description         MojoShader is a library to work with Direct3D shaders on alternate \
14                    3D APIs and non-Windows platforms.
15
16long_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
20homepage            http://icculus.org/${name}/
21
22fetch.type          hg
23hg.url              http://hg.icculus.org/icculus/${name}/
24hg.tag              3de60f597ebd
25version             1125
26
27depends_build-append \
28                    port:re2c \
29                    port:lemon
30depends_lib-append  port:libsdl
31
32test.run        yes
33
34destroot {
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}