source: trunk/dports/graphics/Coin/Portfile

Last change on this file was 146587, checked in by khindenburg@…, 17 months ago

SoXt, emacs-app, emacs-app-devel, cmake, Coin, simage: remove css, set nomaintainer #50332

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
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: Portfile 146587 2016-03-12 21:17:01Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           qt4 1.0
6PortGroup           bitbucket 1.0
7
8bitbucket.setup     Coin3D coin 3.1.3 Coin-
9name                Coin
10revision            7
11license             BSD
12description         cross platform C++ OpenGL scene graph library
13long_description    Coin is a high-level 3D graphics library with a   \
14                    C++ Application Programming Interface. Coin uses scene-graph data \
15                    structures to render real-time graphics suitable for mostly all   \
16                    kinds of scientific and engineering visualization applications.
17
18conflicts           Coin-framework
19categories          graphics devel
20platforms           darwin
21maintainers         nomaintainer
22bitbucket.tarball_from downloads
23distname            ${name}-${version}
24
25checksums           rmd160  e57fd6a4876a06874429f9ad6b96f166f5609362 \
26                    sha256  583478c581317862aa03a19f14c527c3888478a06284b9a46a0155fa5886d417
27
28depends_lib-append  port:simage \
29                    port:fontconfig \
30                    port:freetype \
31                    port:zlib \
32                    port:bzip2
33
34patchfiles          configure.patch \
35                    for.patch \
36                    clang-name-lookup.diff \
37                    fix-weird-error.diff \
38                    patch-include-Inventor-C-base-math-undefs.h.diff \
39                    patch-Info.plist.in.diff
40
41configure.args-append \
42                    --disable-debug \
43                    --disable-symbols \
44                    --disable-dependency-tracking \
45                    --without-framework
46
47post-build {
48    reinplace -E {s|-arch [a-z0-9_]+||g} \
49        ${worksrcpath}/Coin.pc \
50        ${worksrcpath}/coin-default.cfg
51}
52
53if {${name} eq ${subport}} {
54
55    variant manpages description {Include API documentation in manpages.} {
56        depends_build-append    port:doxygen
57        configure.args-append   --enable-man --mandir=${prefix}/share/man
58        post-destroot {
59            file rename ${destroot}${prefix}/share/man/man3/threads.3 \
60                ${destroot}${prefix}/share/man/man3/threads-coin.3
61            file rename ${destroot}${prefix}/share/man/man3/manips.3 \
62                ${destroot}${prefix}/share/man/man3/manips-coin.3
63        }
64    }
65}
66
67subport Coin-framework {
68    conflicts               Coin
69    revision            6
70
71    patchfiles-append       framework-prefix.patch
72    configure.args-replace  --without-framework \
73                            --with-framework-prefix=${frameworks_dir}
74}
Note: See TracBrowser for help on using the repository browser.