Ticket #10833: Portfile.2

File Portfile.2, 1.4 KB (added by cssdev, 18 years ago)

Fixed build process and manual install of header and library files.

Line 
1# $Id: $
2
3PortSystem              1.0
4name                    freevr
5version                 0.5g
6description             virtual reality interface and integration library
7categories              graphics devel x11
8long_description        FreeVR is an open-source virtual reality interface \
9        and integration library. It has been designed to work with a wide  \
10        variety of input and output hardware, with many device interfaces  \
11        already implemented. One of the design goals was for FreeVR        \
12        applications to be easily run in existing virtual reality          \
13        facitilies, as well as newly established VR systems. The other     \
14        major design goal is to make it easier for VR applications to be   \
15        shared among active VR research sites using different hardware     \
16        from each other.
17
18homepage                http://www.freevr.org/
19platforms               darwin
20maintainers             css@macports.org
21master_sites            http://www.aces.dri.edu/freevr/Downloads/
22distname                ${name}_${version}-alpha
23worksrcdir              ${name}_${version}
24checksums               md5 c6d4a726cb62e89a77e5318f36b4b39f
25use_configure           no
26depends_lib             lib:libX11:XFree86
27
28patch {
29        reinplace "s|/sw|${prefix}|" \
30        ${worksrcpath}/src/Make-config
31}
32
33build.dir               ${worksrcpath}/src
34variant darwin {
35        build.target    darwin-X-glx
36}
37
38destroot {
39        xinstall -m 755 -s ${worksrcpath}/src/travel ${destroot}${prefix}/bin
40        xinstall -m 644 ${worksrcpath}/src/libfreevr.a ${destroot}${prefix}/lib
41        eval xinstall -m 644 -W ${worksrcpath}/src \
42                [glob ${worksrcpath}/src/vr_*.h] freevr.h ${destroot}${prefix}/include
43}