Ticket #42763: Portfile

File Portfile, 2.2 KB (added by l1q1d@…, 11 years ago)
Line 
1# $Id: Portfile 99410 2012-11-04 13:51:51Z ryandesign@macports.org $
2
3PortSystem              1.0
4
5name                    Coin
6version                 3.1.3
7revision                2
8license                 GPL-2
9description             cross platform C++ OpenGL scene graph library
10long_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
15categories              graphics devel
16homepage                http://www.coin3d.org/lib/coin/
17platforms               darwin
18maintainers             css
19master_sites            http://ftp.coin3d.org/coin/src/all/
20checksums               md5     1538682f8d92cdf03e845c786879fbea \
21                        sha1    8e9f05628461963623686d3ec53102214e233dd1 \
22                        rmd160  e57fd6a4876a06874429f9ad6b96f166f5609362
23
24depends_lib             port:mesa \
25                        port:simage \
26                        port:xorg-libsm \
27                        port:xorg-libXext \
28                        port:xorg-libXt
29
30patchfiles      configure.patch for.patch clang-name-lookup.diff fix-weird-error.diff math.patch
31
32configure.args          --with-simage=${prefix} --mandir=${prefix}/share/man
33
34post-build {
35        reinplace -E {s|-arch [a-z0-9_]+||g} \
36                ${worksrcpath}/Coin.pc \
37                ${worksrcpath}/coin-default.cfg
38}
39
40platform darwin {
41        configure.args-append   --disable-framework --enable-darwin-x11
42
43variant 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
52variant devel description {Activate developer features, including debug libraries.} {
53        configure.args-append   --enable-next-minor --enable-debug
54}
55
56variant 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
67variant threadsafe description {Allow threadsafe scene graph traversals.} {
68        configure.args-append   --enable-threadsafe
69}