source: trunk/dports/graphics/Coin/Portfile @ 92602

Last change on this file since 92602 was 92602, checked in by ryandesign@…, 5 years ago

Coin needs mesa

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 92602 2012-05-02 06:00:56Z ryandesign@macports.org $
2
3PortSystem              1.0
4
5name                    Coin
6version                 3.1.3
7revision                2
8description             cross platform C++ OpenGL scene graph library
9long_description        Coin is a high-level 3D graphics library with a   \
10        C++ Application Programming Interface. Coin uses scene-graph data \
11        structures to render real-time graphics suitable for mostly all   \
12        kinds of scientific and engineering visualization applications.
13
14categories              graphics devel
15homepage                http://www.coin3d.org/lib/coin/
16platforms               darwin
17maintainers             css
18master_sites            http://ftp.coin3d.org/coin/src/all/
19checksums               md5     1538682f8d92cdf03e845c786879fbea \
20                        sha1    8e9f05628461963623686d3ec53102214e233dd1 \
21                        rmd160  e57fd6a4876a06874429f9ad6b96f166f5609362
22
23depends_lib             port:mesa \
24                        port:simage \
25                        port:xorg-libsm \
26                        port:xorg-libXext \
27                        port:xorg-libXt
28
29configure.args          --with-simage=${prefix} --mandir=${prefix}/share/man
30
31post-build {
32        reinplace -E {s|-arch [a-z0-9_]+||g} \
33                ${worksrcpath}/Coin.pc \
34                ${worksrcpath}/coin-default.cfg
35}
36
37platform darwin {
38        configure.args-append   --disable-framework --enable-darwin-x11
39
40variant aqua description {Install as a MacOS X framework without X11.} {
41        configure.args-delete   --disable-framework --enable-darwin-x11
42        configure.args-append   --with-framework-prefix=${destroot}${frameworks_dir} --without-x
43        depends_lib-delete      port:xorg-libsm \
44                                port:xorg-libXext \
45                                port:xorg-libXt
46}
47}
48
49variant devel description {Activate developer features, including debug libraries.} {
50        configure.args-append   --enable-next-minor --enable-debug
51}
52
53variant manpages description {Include API documentation in manpages.} {
54        depends_build-append    port:doxygen
55        configure.args-append   --enable-man --mandir=${prefix}/share/man
56        post-destroot {
57                file rename ${destroot}${prefix}/share/man/man3/threads.3 \
58                        ${destroot}${prefix}/share/man/man3/threads-coin.3
59                file rename ${destroot}${prefix}/share/man/man3/manips.3 \
60                        ${destroot}${prefix}/share/man/man3/manips-coin.3
61        }
62}
63
64variant threadsafe description {Allow threadsafe scene graph traversals.} {
65        configure.args-append   --enable-threadsafe
66}
Note: See TracBrowser for help on using the repository browser.