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