[111739] trunk/dports/science/collada-dom

ryandesign at macports.org ryandesign at macports.org
Mon Sep 30 07:18:46 PDT 2013


Revision: 111739
          https://trac.macports.org/changeset/111739
Author:   ryandesign at macports.org
Date:     2013-09-30 07:18:46 -0700 (Mon, 30 Sep 2013)
Log Message:
-----------
collada-dom: update to 2.4.0 (#40117)

Modified Paths:
--------------
    trunk/dports/science/collada-dom/Portfile

Added Paths:
-----------
    trunk/dports/science/collada-dom/files/patch-CMakeLists.txt.diff

Modified: trunk/dports/science/collada-dom/Portfile
===================================================================
--- trunk/dports/science/collada-dom/Portfile	2013-09-30 13:47:41 UTC (rev 111738)
+++ trunk/dports/science/collada-dom/Portfile	2013-09-30 14:18:46 UTC (rev 111739)
@@ -1,14 +1,16 @@
+# -*- 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
 # $Id$
 
 PortSystem      1.0
+PortGroup       cmake 1.0
 
 name            collada-dom
-version         2.2
-revision        1
+version         2.4.0
 set branch      [join [lrange [split ${version} .] 0 1] .]
 categories      science devel
 maintainers     nomaintainer
 platforms       darwin
+
 description     COLLADA Document Object Model (DOM)
 
 long_description \
@@ -17,77 +19,16 @@
     instance document.
 
 homepage        http://collada.org/mediawiki/index.php/Portal:COLLADA_DOM
-master_sites    sourceforge
-use_zip         yes
+master_sites    sourceforge:project/collada-dom/Collada%20DOM/Collada%20DOM%20${branch}
 
-checksums       md5     bbb76ef2a8037c945c5cdf26829dcb7d \
-                sha1    e6b72ca4c0327fbc342ab87a1d9d76530a980b5d \
-                rmd160  b2d4387dfe97d97b30b702f39e4ee312dba6d13a
+checksums       rmd160  e8ddb9430d667856eb0fbf69106cd877784f42f1 \
+                sha256  5ca2d12f744bdceff0066ed3067b3b23d6859581fb0d657f98ba4487d8fa3896
 
-worksrcdir      ${name}/dom
+extract.suffix .tgz
 
-patchfiles \
-    patch-src-dae-daeUtils.cpp.diff \
-    patch-test-1.4-domTest.cpp.diff \
-    patch-test-1.5-domTest.cpp.diff
+patchfiles      patch-CMakeLists.txt.diff
 
-post-patch {
-    reinplace {s/filter-out x86 ppc/& x86_64/} ${worksrcpath}/Makefile
-    reinplace {s/\$(subst x86,i386,\$(archs))/$(subst i386_64,x86_64,&)/} \
-        ${worksrcpath}/make/common.mk
-    reinplace s:/usr/include:${prefix}/include: ${worksrcpath}/make/dom.mk
-    reinplace "s:-lxml2:-L${prefix}/lib &:" ${worksrcpath}/make/dom.mk
-    reinplace -E s:-Iexternal-libs/(pcre|boost):-I${prefix}/include: \
-        ${worksrcpath}/make/dom.mk \
-        ${worksrcpath}/make/domTest.mk
-    reinplace s:external-libs/pcre/lib/\\\$(buildID)/:${prefix}/lib/: \
-        ${worksrcpath}/make/dom.mk
-    reinplace {/libpcre/s/\.a/\.dylib/g} ${worksrcpath}/make/dom.mk
-    reinplace -E \
-        s:external-libs/boost/lib/\\\$\\(buildID\\)/(libboost_\[a-z\]*)\.a:${prefix}/lib/\\1.dylib: \
-        ${worksrcpath}/make/dom.mk ${worksrcpath}/make/domTest.mk
-    reinplace {s/# minizip/dependentLibs += $(outPath)libminizip.a/} \
-        ${worksrcpath}/make/dom.mk
-}
-
 depends_lib \
     port:boost \
     port:libxml2 \
     port:pcre
-
-use_configure   no
-
-variant universal {}
-
-build.args \
-    colladaVersion=all \
-    parsers=libxml
-
-if {[variant_isset universal]} {
-    build.args-append arch="${configure.universal_archs}"
-} else {
-    build.args-append arch=${build_arch}
-}
-
-test.run        yes
-test.args       ${build.args}
-
-destroot {
-    foreach v {1.4 1.5} {
-        set fw Collada[join [split ${v} .] ""]Dom
-        set path ${prefix}/Library/Frameworks/${fw}.framework
-        copy ${worksrcpath}/build/mac-${v}/${fw}.framework \
-            ${destroot}${path}
-        set dylib [lindex [glob -tails -types d -directory ${destroot}${path} Versions/*] 0]/${fw}
-        system "install_name_tool -id ${path}/${dylib} ${destroot}${path}/${dylib}"
-    }
-
-    set docdir ${prefix}/share/doc/${name}
-    xinstall -d ${destroot}${docdir}
-    xinstall -m 644 -W ${worksrcpath} license.txt license/minizip-license.txt \
-        readme.txt ${destroot}${docdir}
-}
-
-livecheck.type  regex
-livecheck.url   http://sourceforge.net/projects/collada-dom/
-livecheck.regex {collada-dom-(\d+(?:\.\d+)*)}

Added: trunk/dports/science/collada-dom/files/patch-CMakeLists.txt.diff
===================================================================
--- trunk/dports/science/collada-dom/files/patch-CMakeLists.txt.diff	                        (rev 0)
+++ trunk/dports/science/collada-dom/files/patch-CMakeLists.txt.diff	2013-09-30 14:18:46 UTC (rev 111739)
@@ -0,0 +1,11 @@
+--- CMakeLists.txt.orig	2012-06-01 07:52:21.000000000 -0400
++++ CMakeLists.txt	2013-07-27 00:16:47.000000000 -0400
+@@ -127,7 +127,7 @@
+ 
+ if( APPLE OR ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
+   # apple doesn't have 64bit versions of file opening functions, so add them
+-  add_definitions("-Dfopen64=fopen -Dfseeko64=fseeko -Dfseek64=fseek -Dftell64=ftell -Dftello64=ftello")
++  add_definitions(-DUSE_FILE32API)
+ endif()
+ 
+ set(COLLADA_DOM_INCLUDE_INSTALL_DIR "include/collada-dom${COLLADA_DOM_SOVERSION}")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130930/8979c466/attachment-0001.html>


More information about the macports-changes mailing list