[38637] trunk/dports/graphics

ryandesign at macports.org ryandesign at macports.org
Sat Jul 26 03:32:47 PDT 2008


Revision: 38637
          http://trac.macosforge.org/projects/macports/changeset/38637
Author:   ryandesign at macports.org
Date:     2008-07-26 03:32:45 -0700 (Sat, 26 Jul 2008)
Log Message:
-----------
OpenSceneGraph: new port, version 2.4.0; see #15969

Added Paths:
-----------
    trunk/dports/graphics/OpenSceneGraph/
    trunk/dports/graphics/OpenSceneGraph/Portfile
    trunk/dports/graphics/OpenSceneGraph/files/
    trunk/dports/graphics/OpenSceneGraph/files/patch-CMakeLists.txt.diff
    trunk/dports/graphics/OpenSceneGraph/files/patch-pthreads-CMakeLists.txt.diff

Added: trunk/dports/graphics/OpenSceneGraph/Portfile
===================================================================
--- trunk/dports/graphics/OpenSceneGraph/Portfile	                        (rev 0)
+++ trunk/dports/graphics/OpenSceneGraph/Portfile	2008-07-26 10:32:45 UTC (rev 38637)
@@ -0,0 +1,46 @@
+# $Id$
+
+PortSystem              1.0
+
+name                    OpenSceneGraph
+version                 2.4.0
+maintainers             ryandesign openmaintainer
+platforms               darwin
+categories              graphics
+homepage                http://www.openscenegraph.org/
+master_sites            ${homepage}files/${distname}
+use_zip                 yes
+use_parallel_build      yes
+worksrcdir              ${name}
+
+description             high-performance 3D graphics toolkit
+
+long_description        ${name} is a high-performance 3D graphics toolkit \
+                        useful in fields such as visual simulation, games, \
+                        virtual reality, scientific visualization and modelling
+
+checksums               md5     4d57fe285a1c6601893b1e0b99ca0bd3 \
+                        sha1    93e44719dcb46494560a19af6e1fee1cd030282c \
+                        rmd160  0b13d06a72799ca2625ba0244473444f87b9a0cb
+
+patchfiles              patch-pthreads-CMakeLists.txt.diff \
+                        patch-CMakeLists.txt.diff
+
+depends_build           port:cmake
+
+depends_lib             port:freetype \
+                        port:gdal
+
+configure.cmd           cmake
+configure.pre_args      -DCMAKE_INSTALL_PREFIX=${prefix}
+configure.args          -DCMAKE_BUILD_TYPE=Release
+
+universal_variant       no
+# patch-CMakeLists.txt.diff removes the built-in universal support. We need a
+# MacPorts-controlled universal build, but this universal variant is untested.
+#variant universal {
+#    configure.args-append   -DCMAKE_OSX_ARCHITECTURES="${configure.universal_archs}" \
+#                            -DCMAKE_CXX_FLAGS="${configure.universal_cxxflags}"
+#}
+
+livecheck.name          osg


Property changes on: trunk/dports/graphics/OpenSceneGraph/Portfile
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

Added: trunk/dports/graphics/OpenSceneGraph/files/patch-CMakeLists.txt.diff
===================================================================
--- trunk/dports/graphics/OpenSceneGraph/files/patch-CMakeLists.txt.diff	                        (rev 0)
+++ trunk/dports/graphics/OpenSceneGraph/files/patch-CMakeLists.txt.diff	2008-07-26 10:32:45 UTC (rev 38637)
@@ -0,0 +1,42 @@
+--- CMakeLists.txt	2008-04-25 04:46:25.000000000 -0500
++++ CMakeLists.txt	2008-07-26 04:20:57.000000000 -0500
+@@ -434,39 +434,6 @@
+     ENDIF(OSG_USE_AGGRESSIVE_WARNINGS)
+ ENDIF(OSG_AGGRESSIVE_WARNING_FLAGS)
+ 
+-# Set defaults for Universal Binaries. We want 32-bit Intel/PPC on 10.4 
+-# and 32/64-bit Intel/PPC on >= 10.5. Anything <= 10.3 doesn't support.
+-IF(APPLE)
+-    # These are just defaults/recommendations, but how we want to build
+-    # out of the box. But the user needs to be able to change these options.
+-    # So we must only set the values the first time CMake is run, or we 
+-    # will overwrite any changes the user sets.
+-    # FORCE is used because the options are not reflected in the UI otherwise.
+-    # Seems like a good place to add version specific compiler flags too.
+-    IF(NOT OSG_CONFIG_HAS_BEEN_RUN_BEFORE)
+-        # This is really fragile, but CMake doesn't provide the OS system 
+-        # version information we need. (Darwin versions can be changed 
+-        # independently of OS X versions.)
+-        # It does look like CMake handles the CMAKE_OSX_SYSROOT automatically.
+-        IF(EXISTS /Developer/SDKs/10.5.sdk)
+-            SET(CMAKE_OSX_ARCHITECTURES "ppc;i386;ppc64;x86_64" CACHE STRING "Build architectures for OSX" FORCE)
+-            SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.5 -ftree-vectorize -fvisibility-inlines-hidden" CACHE STRING "Flags used by the compiler during all build types." FORCE)
+-        ELSE(EXISTS /Developer/SDKs/10.5.sdk)
+-            IF(EXISTS /Developer/SDKs/MacOSX10.4u.sdk)
+-                SET(CMAKE_OSX_ARCHITECTURES "ppc;i386" CACHE STRING "Build architectures for OSX" FORCE)
+-                SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.4 -ftree-vectorize -fvisibility-inlines-hidden" CACHE STRING "Flags used by the compiler during all build types." FORCE)
+-            ELSE(EXISTS /Developer/SDKs/MacOSX10.4u.sdk)
+-                # No Universal Binary support
+-                # Should break down further to set the -mmacosx-version-min,
+-                # but the SDK detection is too unreliable here.
+-            ENDIF(EXISTS /Developer/SDKs/MacOSX10.4u.sdk)
+-        ENDIF(EXISTS /Developer/SDKs/10.5.sdk)
+-    ENDIF(NOT OSG_CONFIG_HAS_BEEN_RUN_BEFORE)
+-    
+-    OPTION(OSG_BUILD_APPLICATION_BUNDLES "Enable the building of applications and examples as OSX Bundles" OFF)
+-    
+-ENDIF(APPLE)
+-
+ OPTION(BUILD_REF_DOCS "Build OpenSceneGraph reference documentation using doxygen (use: make DoxygenDoc)" OFF)
+ 
+ IF(BUILD_REF_DOCS)

Added: trunk/dports/graphics/OpenSceneGraph/files/patch-pthreads-CMakeLists.txt.diff
===================================================================
--- trunk/dports/graphics/OpenSceneGraph/files/patch-pthreads-CMakeLists.txt.diff	                        (rev 0)
+++ trunk/dports/graphics/OpenSceneGraph/files/patch-pthreads-CMakeLists.txt.diff	2008-07-26 10:32:45 UTC (rev 38637)
@@ -0,0 +1,11 @@
+--- src/OpenThreads/pthreads/CMakeLists.txt	(revision 8357)
++++ src/OpenThreads/pthreads/CMakeLists.txt	(revision 8358)
+@@ -27,7 +27,7 @@
+ ENDIF(OPENTHREADS_SONAMES)
+ 
+ SET(CMAKE_REQUIRED_LIBRARIES_SAFE "${CMAKE_REQUIRED_LIBRARIES}")
+-SET(CMAKE_REQUIRED_LIBRARIES "${CMAKE_REQUIRED_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}")
++SET(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
+ 
+ CHECK_FUNCTION_EXISTS(pthread_yield HAVE_PTHREAD_YIELD)
+ IF(HAVE_PTHREAD_YIELD)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080726/7f78f229/attachment-0001.html 


More information about the macports-changes mailing list