[135604] trunk/dports/graphics
mojca at macports.org
mojca at macports.org
Mon Apr 27 16:03:06 PDT 2015
Revision: 135604
https://trac.macports.org/changeset/135604
Author: mojca at macports.org
Date: 2015-04-27 16:03:06 -0700 (Mon, 27 Apr 2015)
Log Message:
-----------
H3D: new ports (closes #38920 to #38926)
* hapi (#38920)
* h3dapi (#38921)
* h3dui (#38922)
* h3dmedx3d (#38923)
* h3dphysics (#38924)
* h3dload (#38925)
* h3dviewer (#38926)
Modified Paths:
--------------
trunk/dports/graphics/h3dutil/Portfile
trunk/dports/graphics/h3dutil/files/patch-CMakeLists.txt.diff
Added Paths:
-----------
trunk/dports/graphics/h3dapi/
trunk/dports/graphics/h3dapi/Portfile
trunk/dports/graphics/h3dapi/files/
trunk/dports/graphics/h3dapi/files/patch-CMakeLists.txt.diff
trunk/dports/graphics/h3dapi/files/patch-include-H3D-X3DParticleEmitterNode.h.diff
trunk/dports/graphics/h3dmedx3d/
trunk/dports/graphics/h3dmedx3d/Portfile
trunk/dports/graphics/h3dmedx3d/files/
trunk/dports/graphics/h3dmedx3d/files/patch-build-CMakeLists.txt.diff
trunk/dports/graphics/h3dphysics/
trunk/dports/graphics/h3dphysics/Portfile
trunk/dports/graphics/h3dphysics/files/
trunk/dports/graphics/h3dphysics/files/patch-build-CMakeLists.txt.diff
trunk/dports/graphics/h3dui/
trunk/dports/graphics/h3dui/Portfile
trunk/dports/graphics/h3dui/files/
trunk/dports/graphics/h3dui/files/patch-build-CMakeLists.txt.diff
trunk/dports/graphics/hapi/
trunk/dports/graphics/hapi/Portfile
trunk/dports/graphics/hapi/files/
trunk/dports/graphics/hapi/files/patch-build-CMakeLists.txt.diff
Added: trunk/dports/graphics/h3dapi/Portfile
===================================================================
--- trunk/dports/graphics/h3dapi/Portfile (rev 0)
+++ trunk/dports/graphics/h3dapi/Portfile 2015-04-27 23:03:06 UTC (rev 135604)
@@ -0,0 +1,91 @@
+# -*- 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
+PortGroup wxWidgets 1.0
+
+name h3dapi
+version 2.3.0
+categories graphics
+platforms darwin
+maintainers sensegraphics.com:support
+license GPL-2+
+
+description Headers and libraries for H3DAPI development.
+long_description H3DAPI provides is a scenegraph based API with one \
+ unified scene graph to handle both graphics and haptics\
+ based on the X3D standard.
+
+subport h3dload {
+ description Command line X3D browser based on H3DAPI.
+ long_description X3D browser with custom extensions for haptics and medical simulation.
+}
+subport h3dviewer {
+ description X3D browser based on H3DAPI.
+ long_description X3D browser with custom extensions for haptics and medical simulation.
+}
+
+homepage http://www.h3dapi.org
+master_sites ftp://www.h3dapi.org/pub/releases/source
+
+checksums rmd160 ca60af0fcd89c309cd030ab509a640b28fd6b470 \
+ sha256 231104455feea6217c103ab0cbb2187e448000e6f02f9a1f2abb0161a13bbbd1
+
+cmake.out_of_source yes
+
+patchfiles patch-CMakeLists.txt.diff \
+ patch-include-H3D-X3DParticleEmitterNode.h.diff
+
+if {${subport} eq ${name}} {
+
+ depends_lib port:hapi \
+ port:glew \
+ port:xercesc3 \
+ port:ftgl \
+ port:libvorbis \
+ port:audiofile \
+ port:spidermonkey \
+ port:fontconfig
+
+ configure.post_args \
+ ${worksrcpath}/build
+
+} elseif {${subport} eq "h3dload"} {
+
+ depends_lib port:h3dapi
+
+ configure.post_args \
+ ${worksrcpath}/H3DLoad/build
+
+} elseif {${subport} eq "h3dviewer"} {
+
+ wxWidgets.use wxWidgets-3.0
+
+ depends_lib port:h3dapi \
+ port:h3dui \
+ port:h3dmedx3d \
+ port:h3dphysics \
+ port:${wxWidgets.port}
+
+ configure.post_args \
+ ${worksrcpath}/H3DViewer/build
+
+ configure.args -DOSX_BUNDLE_INSTALL_DESTINATION=${applications_dir} \
+ -DCMAKE_PREFIX_PATH=${prefix} \
+ -DwxWidgets_CONFIG_EXECUTABLE=${wxWidgets.wxconfig}
+
+ post-destroot {
+ file attributes ${destroot}${applications_dir}/H3DViewer.app/Contents/Resources/H3DViewer.icns -permissions a+r
+ # TODO: this seems a bit weird (test if symlinks work as well)
+ set plugin_dir ${destroot}${applications_dir}/H3DViewer.app/Contents/Resources/Plugins
+ xinstall -d ${plugin_dir}
+ foreach file { medx3d ui physics } {
+ xinstall ${prefix}/lib/libh3d${file}.dylib ${plugin_dir}
+ }
+ }
+}
+
+livecheck.type regex
+livecheck.url ${master_sites}/
+livecheck.regex h3dapi-(\[0-9.\]+)${extract.suffix}
Property changes on: trunk/dports/graphics/h3dapi/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/graphics/h3dapi/files/patch-CMakeLists.txt.diff
===================================================================
--- trunk/dports/graphics/h3dapi/files/patch-CMakeLists.txt.diff (rev 0)
+++ trunk/dports/graphics/h3dapi/files/patch-CMakeLists.txt.diff 2015-04-27 23:03:06 UTC (rev 135604)
@@ -0,0 +1,26 @@
+--- build/CMakeLists.txt.orig
++++ build/CMakeLists.txt
+@@ -641,8 +641,8 @@
+
+ IF( NOT GENERATE_CPACK_PROJECT )
+ # Install header files on non-windows system (e.g. Unix).
+- INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/include/H3D/H3DApi.h
+- DESTINATION ${H3DAPI_SOURCE_DIR}/../include/H3D )
++# INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/include/H3D/H3DApi.h
++# DESTINATION ${H3DAPI_SOURCE_DIR}/../include/H3D )
+ ENDIF( NOT GENERATE_CPACK_PROJECT )
+
+ # Intall directories.
+--- H3DViewer/build/CMakeLists.txt.orig
++++ H3DViewer/build/CMakeLists.txt
+@@ -251,8 +251,8 @@
+
+ IF( NOT ( GENERATE_CPACK_PROJECT OR GENERATE_H3DVIEWER_CPACK_PROJECT ) )
+ # Install header files on non-windows system (e.g. Unix).
+- INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/include/H3DViewerConfig.h
+- DESTINATION ${H3DViewer_SOURCE_DIR}/../src )
++# INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/include/H3DViewerConfig.h
++# DESTINATION ${H3DViewer_SOURCE_DIR}/../src )
+ ENDIF( NOT ( GENERATE_CPACK_PROJECT OR GENERATE_H3DVIEWER_CPACK_PROJECT ) )
+
+ # Link against requiredLibs.
Added: trunk/dports/graphics/h3dapi/files/patch-include-H3D-X3DParticleEmitterNode.h.diff
===================================================================
--- trunk/dports/graphics/h3dapi/files/patch-include-H3D-X3DParticleEmitterNode.h.diff (rev 0)
+++ trunk/dports/graphics/h3dapi/files/patch-include-H3D-X3DParticleEmitterNode.h.diff 2015-04-27 23:03:06 UTC (rev 135604)
@@ -0,0 +1,11 @@
+--- include/H3D/X3DParticleEmitterNode.h.orig
++++ include/H3D/X3DParticleEmitterNode.h
+@@ -158,7 +158,7 @@
+ return time_lived > total_time_to_live;
+ }
+
+- bool operator<( const Particle &p ) {
++ inline bool operator<( const Particle &p ) const {
+ return distance_from_viewer > p.distance_from_viewer;
+ }
+
Added: trunk/dports/graphics/h3dmedx3d/Portfile
===================================================================
--- trunk/dports/graphics/h3dmedx3d/Portfile (rev 0)
+++ trunk/dports/graphics/h3dmedx3d/Portfile 2015-04-27 23:03:06 UTC (rev 135604)
@@ -0,0 +1,32 @@
+# -*- 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 h3dmedx3d
+version 1.4.0
+categories graphics
+platforms darwin
+maintainers sensegraphics.com:support
+license GPL-2+
+
+description Extension for H3DAPI for support of the volume rendering component of X3D.
+long_description ${description}
+
+homepage http://www.h3dapi.org
+master_sites ftp://www.h3dapi.org/pub/releases/source
+
+checksums rmd160 be169a9c2344f90aee5d35ef77c55a49e2a1713f \
+ sha256 97e9bf56b91a1e77ee8f2d737bdae601d02bac54a1bbc57a7d0f280841db9b01
+
+depends_lib port:h3dapi
+
+patchfiles patch-build-CMakeLists.txt.diff
+
+configure.post_args ${worksrcpath}/build
+cmake.out_of_source yes
+
+livecheck.type regex
+livecheck.url ${master_sites}/
+livecheck.regex h3dmedx3d-(\[0-9.\]+)${extract.suffix}
Property changes on: trunk/dports/graphics/h3dmedx3d/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/graphics/h3dmedx3d/files/patch-build-CMakeLists.txt.diff
===================================================================
--- trunk/dports/graphics/h3dmedx3d/files/patch-build-CMakeLists.txt.diff (rev 0)
+++ trunk/dports/graphics/h3dmedx3d/files/patch-build-CMakeLists.txt.diff 2015-04-27 23:03:06 UTC (rev 135604)
@@ -0,0 +1,13 @@
+--- build/CMakeLists.txt.orig
++++ build/CMakeLists.txt
+@@ -108,8 +108,8 @@
+
+ IF( NOT GENERATE_CPACK_PROJECT )
+ # Install header files on non-windows system (e.g. Unix).
+- INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/include/H3D/MedX3D/MedX3D.h
+- DESTINATION ${MedX3D_SOURCE_DIR}/../include/H3D/MedX3D )
++# INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/include/H3D/MedX3D/MedX3D.h
++# DESTINATION ${MedX3D_SOURCE_DIR}/../include/H3D/MedX3D )
+ ENDIF( NOT GENERATE_CPACK_PROJECT )
+
+ IF(MSVC)
Added: trunk/dports/graphics/h3dphysics/Portfile
===================================================================
--- trunk/dports/graphics/h3dphysics/Portfile (rev 0)
+++ trunk/dports/graphics/h3dphysics/Portfile 2015-04-27 23:03:06 UTC (rev 135604)
@@ -0,0 +1,34 @@
+# -*- 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 h3dphysics
+version 1.3.0
+categories graphics
+platforms darwin
+maintainers sensegraphics.com:support
+license GPL-2+
+
+description Extension for H3DAPI for support of rigid and soft body physics.
+long_description ${description}
+
+homepage http://www.h3dapi.org
+master_sites ftp://www.h3dapi.org/pub/releases/source
+
+checksums rmd160 cc7a1217db6e21672dc638999dade2a006ae5f0e \
+ sha256 785e3eb7c8cf66c375848c8d2f0bf32c3aea83ba826a309976ee5e48eca528e2
+
+depends_lib port:h3dapi \
+ port:ode \
+ port:bullet
+
+patchfiles patch-build-CMakeLists.txt.diff
+
+configure.post_args ${worksrcpath}/build
+cmake.out_of_source yes
+
+livecheck.type regex
+livecheck.url ${master_sites}/
+livecheck.regex h3dphysics-(\[0-9.\]+)${extract.suffix}
Property changes on: trunk/dports/graphics/h3dphysics/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/graphics/h3dphysics/files/patch-build-CMakeLists.txt.diff
===================================================================
--- trunk/dports/graphics/h3dphysics/files/patch-build-CMakeLists.txt.diff (rev 0)
+++ trunk/dports/graphics/h3dphysics/files/patch-build-CMakeLists.txt.diff 2015-04-27 23:03:06 UTC (rev 135604)
@@ -0,0 +1,13 @@
+--- build/CMakeLists.txt.orig
++++ build/CMakeLists.txt
+@@ -252,8 +252,8 @@
+
+ IF( NOT GENERATE_CPACK_PROJECT )
+ # Install header files on non-windows system (e.g. Unix).
+- INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/include/H3D/H3DPhysics/H3DPhysics.h
+- DESTINATION ${H3DPhysics_SOURCE_DIR}/../include/H3D/H3DPhysics )
++# INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/include/H3D/H3DPhysics/H3DPhysics.h
++# DESTINATION ${H3DPhysics_SOURCE_DIR}/../include/H3D/H3DPhysics )
+ ENDIF( NOT GENERATE_CPACK_PROJECT )
+
+ ADD_LIBRARY(H3DPhysics SHARED ${H3DPhysics_SRCS}
Added: trunk/dports/graphics/h3dui/Portfile
===================================================================
--- trunk/dports/graphics/h3dui/Portfile (rev 0)
+++ trunk/dports/graphics/h3dui/Portfile 2015-04-27 23:03:06 UTC (rev 135604)
@@ -0,0 +1,32 @@
+# -*- 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 h3dui
+version 2.3.0
+categories graphics
+platforms darwin
+maintainers sensegraphics.com:support
+license GPL-2+
+
+description Extension for H3DAPI for support of touchable 3D menues.
+long_description ${description}
+
+homepage http://www.h3dapi.org
+master_sites ftp://www.h3dapi.org/pub/releases/source
+
+checksums rmd160 5468159b06ff944f3fe898b0e28019f9db4dd7f3 \
+ sha256 33ff32ed629fbab411814a41c8767e23281937a56dfcd34d3f360d076d394136
+
+depends_lib port:h3dapi
+
+patchfiles patch-build-CMakeLists.txt.diff
+
+configure.post_args ${worksrcpath}/build
+cmake.out_of_source yes
+
+livecheck.type regex
+livecheck.url ${master_sites}/
+livecheck.regex h3dui-(\[0-9.\]+)${extract.suffix}
Property changes on: trunk/dports/graphics/h3dui/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/graphics/h3dui/files/patch-build-CMakeLists.txt.diff
===================================================================
--- trunk/dports/graphics/h3dui/files/patch-build-CMakeLists.txt.diff (rev 0)
+++ trunk/dports/graphics/h3dui/files/patch-build-CMakeLists.txt.diff 2015-04-27 23:03:06 UTC (rev 135604)
@@ -0,0 +1,13 @@
+--- build/CMakeLists.txt.orig
++++ build/CMakeLists.txt
+@@ -246,8 +246,8 @@
+
+ IF( NOT GENERATE_CPACK_PROJECT )
+ # Install header files on non-windows system (e.g. Unix).
+- INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/include/H3D/UI/UI.h
+- DESTINATION ${UI_SOURCE_DIR}/../include/H3D/UI )
++# INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/include/H3D/UI/UI.h
++# DESTINATION ${UI_SOURCE_DIR}/../include/H3D/UI )
+ ENDIF( NOT GENERATE_CPACK_PROJECT )
+
+ SET( DEFAULT_BIN_INSTALL "bin" )
Modified: trunk/dports/graphics/h3dutil/Portfile
===================================================================
--- trunk/dports/graphics/h3dutil/Portfile 2015-04-27 22:23:32 UTC (rev 135603)
+++ trunk/dports/graphics/h3dutil/Portfile 2015-04-27 23:03:06 UTC (rev 135604)
@@ -27,12 +27,11 @@
port:freeimage \
port:zlib
-# unconventional setup
-worksrcdir ${distname}/build
-cmake.out_of_source yes
-
patchfiles patch-CMakeLists.txt.diff
+configure.post_args ${worksrcpath}/build
+cmake.out_of_source yes
+
livecheck.type regex
livecheck.url [lindex ${master_sites} 0]
livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}
Modified: trunk/dports/graphics/h3dutil/files/patch-CMakeLists.txt.diff
===================================================================
--- trunk/dports/graphics/h3dutil/files/patch-CMakeLists.txt.diff 2015-04-27 22:23:32 UTC (rev 135603)
+++ trunk/dports/graphics/h3dutil/files/patch-CMakeLists.txt.diff 2015-04-27 23:03:06 UTC (rev 135604)
@@ -1,11 +1,13 @@
---- CMakeLists.txt.orig 2014-01-14 04:31:17.000000000 -0600
-+++ CMakeLists.txt 2015-03-09 03:22:13.000000000 -0500
-@@ -286,8 +286,6 @@
+--- build/CMakeLists.txt.orig
++++ build/CMakeLists.txt
+@@ -286,8 +286,8 @@
CONFIGURE_FILE( ${H3DUtil_SOURCE_DIR}/../include/H3DUtil/H3DUtil.cmake ${CMAKE_CURRENT_BINARY_DIR}/include/H3DUtil/H3DUtil.h )
IF( NOT GENERATE_CPACK_PROJECT )
- INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/include/H3DUtil/H3DUtil.h
- DESTINATION ${H3DUtil_SOURCE_DIR}/../include/H3DUtil )
++# INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/include/H3DUtil/H3DUtil.h
++# DESTINATION ${H3DUtil_SOURCE_DIR}/../include/H3DUtil )
ENDIF( NOT GENERATE_CPACK_PROJECT )
INSTALL( TARGETS H3DUtil
Added: trunk/dports/graphics/hapi/Portfile
===================================================================
--- trunk/dports/graphics/hapi/Portfile (rev 0)
+++ trunk/dports/graphics/hapi/Portfile 2015-04-27 23:03:06 UTC (rev 135604)
@@ -0,0 +1,36 @@
+# -*- 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 hapi
+version 1.3.0
+categories graphics
+platforms darwin
+maintainers sensegraphics.com:support
+license GPL-2+
+
+description Header and library files for HAPI haptics engine.
+
+long_description HAPI is a C++ open source cross-platform haptics library. \
+ It is extendable and simple to use. It allows for building \
+ applications with haptics cababilities or to add haptics \
+ to existing applications.
+
+homepage http://www.h3dapi.org
+master_sites ftp://www.h3dapi.org/pub/releases/source
+
+checksums rmd160 993358fe1bfdc3c00532ef444b22b8a2e73cfb6f \
+ sha256 ca423ed1e96bea9ad5ae3bfd3b539024ee10274ffb02c6c3ceb98519f21d815f
+
+depends_lib port:h3dutil
+
+patchfiles patch-build-CMakeLists.txt.diff
+
+configure.post_args ${worksrcpath}/build
+cmake.out_of_source yes
+
+livecheck.type regex
+livecheck.url ${master_sites}/
+livecheck.regex hapi-(\[0-9.\]+)${extract.suffix}
Property changes on: trunk/dports/graphics/hapi/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/graphics/hapi/files/patch-build-CMakeLists.txt.diff
===================================================================
--- trunk/dports/graphics/hapi/files/patch-build-CMakeLists.txt.diff (rev 0)
+++ trunk/dports/graphics/hapi/files/patch-build-CMakeLists.txt.diff 2015-04-27 23:03:06 UTC (rev 135604)
@@ -0,0 +1,13 @@
+--- build/CMakeLists.txt.orig
++++ build/CMakeLists.txt
+@@ -589,8 +589,8 @@
+
+ IF( NOT GENERATE_CPACK_PROJECT )
+ # Install header files on non-windows system (e.g. Unix).
+- INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/include/HAPI/HAPI.h
+- DESTINATION ${HAPI_SOURCE_DIR}/../include/HAPI )
++# INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/include/HAPI/HAPI.h
++# DESTINATION ${HAPI_SOURCE_DIR}/../include/HAPI )
+ ENDIF( NOT GENERATE_CPACK_PROJECT )
+
+ # Where to install HAPI
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150427/65383e11/attachment-0001.html>
More information about the macports-changes
mailing list