[127233] trunk/dports/graphics/Coin/Portfile

khindenburg at macports.org khindenburg at macports.org
Thu Oct 23 19:06:57 PDT 2014


Revision: 127233
          https://trac.macports.org/changeset/127233
Author:   khindenburg at macports.org
Date:     2014-10-23 19:06:57 -0700 (Thu, 23 Oct 2014)
Log Message:
-----------
coin: add coin-framework subport; remove unused variants;  adjust dependencies, configure options; manpages only for coin #44671 - maintainer timeout

Modified Paths:
--------------
    trunk/dports/graphics/Coin/Portfile

Modified: trunk/dports/graphics/Coin/Portfile
===================================================================
--- trunk/dports/graphics/Coin/Portfile	2014-10-24 01:11:37 UTC (rev 127232)
+++ trunk/dports/graphics/Coin/Portfile	2014-10-24 02:06:57 UTC (rev 127233)
@@ -6,7 +6,7 @@
 
 bitbucket.setup     Coin3D coin 3.1.3 Coin-
 name                Coin
-revision            5
+revision            6
 license             BSD
 description         cross platform C++ OpenGL scene graph library
 long_description    Coin is a high-level 3D graphics library with a   \
@@ -14,6 +14,7 @@
                     structures to render real-time graphics suitable for mostly all   \
                     kinds of scientific and engineering visualization applications.
 
+conflicts           Coin-framework
 categories          graphics devel
 platforms           darwin
 maintainers         css
@@ -23,11 +24,12 @@
 checksums           rmd160  e57fd6a4876a06874429f9ad6b96f166f5609362 \
                     sha256  583478c581317862aa03a19f14c527c3888478a06284b9a46a0155fa5886d417
 
-depends_lib         port:mesa \
+depends_lib-append  port:qt4-mac \
                     port:simage \
-                    port:xorg-libsm \
-                    port:xorg-libXext \
-                    port:xorg-libXt
+                    port:fontconfig \
+                    port:freetype \
+                    port:zlib \
+                    port:bzip2
 
 patchfiles          configure.patch \
                     for.patch \
@@ -36,8 +38,11 @@
                     patch-include-Inventor-C-base-math-undefs.h.diff \
                     patch-Info.plist.in.diff
 
-configure.args      --with-simage=${prefix} \
-                    --mandir=${prefix}/share/man
+configure.args-append \
+                    --disable-debug \
+                    --disable-symbols \
+                    --disable-dependency-tracking \
+                    --without-framework
 
 post-build {
     reinplace -E {s|-arch [a-z0-9_]+||g} \
@@ -45,36 +50,25 @@
         ${worksrcpath}/coin-default.cfg
 }
 
-platform darwin {
-    configure.args-append   --disable-framework --enable-darwin-x11
+if {${name} eq ${subport}} {
 
-    variant aqua conflicts manpages description {Install as an OS X framework without X11.} {
-        patchfiles-append       framework-prefix.patch
-
-        configure.args-replace  --disable-framework --with-framework-prefix=${frameworks_dir}
-        configure.args-replace  --enable-darwin-x11 --without-x
-
-        depends_lib-delete      port:xorg-libsm \
-                                port:xorg-libXext \
-                                port:xorg-libXt
+    variant manpages description {Include API documentation in manpages.} {
+        depends_build-append    port:doxygen
+        configure.args-append   --enable-man --mandir=${prefix}/share/man
+        post-destroot {
+            file rename ${destroot}${prefix}/share/man/man3/threads.3 \
+                ${destroot}${prefix}/share/man/man3/threads-coin.3
+            file rename ${destroot}${prefix}/share/man/man3/manips.3 \
+                ${destroot}${prefix}/share/man/man3/manips-coin.3
+        }
     }
 }
 
-variant devel description {Activate developer features, including debug libraries.} {
-    configure.args-append   --enable-next-minor --enable-debug
-}
+subport Coin-framework {
+    conflicts               Coin
+    revision            6
 
-variant manpages description {Include API documentation in manpages.} {
-    depends_build-append    port:doxygen
-    configure.args-append   --enable-man --mandir=${prefix}/share/man
-    post-destroot {
-        file rename ${destroot}${prefix}/share/man/man3/threads.3 \
-            ${destroot}${prefix}/share/man/man3/threads-coin.3
-        file rename ${destroot}${prefix}/share/man/man3/manips.3 \
-            ${destroot}${prefix}/share/man/man3/manips-coin.3
-    }
+    patchfiles-append       framework-prefix.patch
+    configure.args-replace  --without-framework \
+                            --with-framework-prefix=${frameworks_dir}
 }
-
-variant threadsafe description {Allow threadsafe scene graph traversals.} {
-    configure.args-append   --enable-threadsafe
-}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141023/70f14639/attachment-0001.html>


More information about the macports-changes mailing list