[61767] trunk/dports/graphics

nox at macports.org nox at macports.org
Sun Dec 20 20:38:51 PST 2009


Revision: 61767
          http://trac.macports.org/changeset/61767
Author:   nox at macports.org
Date:     2009-12-20 20:38:48 -0800 (Sun, 20 Dec 2009)
Log Message:
-----------
Create new port OpenSceneGraph-devel

The development branch of OpenSceneGraph, working on x86_64 for Snow
Leopard, which lacks 64-bit support for its QuickTime 7 and Carbon APIs.
This port also correctly set its libraries' install names, thus avoiding
the need to mess with `DYLD` environment variables.

Added Paths:
-----------
    trunk/dports/graphics/OpenSceneGraph-devel/
    trunk/dports/graphics/OpenSceneGraph-devel/Portfile
    trunk/dports/graphics/OpenSceneGraph-devel/files/
    trunk/dports/graphics/OpenSceneGraph-devel/files/patch-disable-quicktime.diff
    trunk/dports/graphics/OpenSceneGraph-devel/files/patch-src-osgDB-Registry.cpp.diff

Added: trunk/dports/graphics/OpenSceneGraph-devel/Portfile
===================================================================
--- trunk/dports/graphics/OpenSceneGraph-devel/Portfile	                        (rev 0)
+++ trunk/dports/graphics/OpenSceneGraph-devel/Portfile	2009-12-21 04:38:48 UTC (rev 61767)
@@ -0,0 +1,59 @@
+# $Id$
+
+PortSystem      1.0
+PortGroup       cmake 1.0
+
+name            OpenSceneGraph-devel
+conflicts       OpenSceneGraph
+set my_name     OpenSceneGraph
+version         2.9.6
+platforms       darwin
+categories      graphics
+license         OpenSceneGraphv0.0/wxWindowsv3/LGPLv2.1
+maintainers     nox openmaintainer
+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.
+
+homepage        http://www.openscenegraph.org/
+master_sites    ${homepage}downloads/developer_releases/
+distname        ${my_name}-${version}
+use_zip         yes
+
+checksums       md5     f27a69499f3eadf1d8ad2ee22f6d5e85 \
+                sha1    60a8cdace04be8daa99be9c0be22d06ff352c1f0 \
+                rmd160  0832fe72de46b73aba06a9ee3aec6de4f9d9fb9c
+
+patchfiles      patch-disable-quicktime.diff \
+                patch-src-osgDB-Registry.cpp.diff
+
+post-patch {
+    reinplace s:@PREFIX@:${prefix}: ${worksrcpath}/src/osgDB/Registry.cpp
+}
+
+depends_lib \
+    port:curl \
+    port:ffmpeg \
+    port:freetype \
+    port:gdal \
+    port:giflib \
+    port:jasper \
+    port:jpeg \
+    port:libpng \
+    port:tiff \
+    port:zlib
+
+configure.args-append \
+    -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib \
+    -DOSG_CONFIG_HAS_BEEN_RUN_BEFORE=YES \
+    -DOSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX=imageio \
+    -DOSG_WINDOWING_SYSTEM=Cocoa
+
+use_parallel_build yes
+
+livecheck.type  regex
+livecheck.url   ${homepage}downloads/developer_releases/
+livecheck.regex ${my_name}-(\[0-9.\]+)/


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

Added: trunk/dports/graphics/OpenSceneGraph-devel/files/patch-disable-quicktime.diff
===================================================================
--- trunk/dports/graphics/OpenSceneGraph-devel/files/patch-disable-quicktime.diff	                        (rev 0)
+++ trunk/dports/graphics/OpenSceneGraph-devel/files/patch-disable-quicktime.diff	2009-12-21 04:38:48 UTC (rev 61767)
@@ -0,0 +1,41 @@
+--- CMakeLists.txt.orig	2009-12-20 23:45:08.000000000 +0100
++++ CMakeLists.txt	2009-12-20 23:48:36.000000000 +0100
+@@ -464,34 +464,10 @@
+     ADD_DEFINITIONS(-DGLU_TESS_CALLBACK_TRIPLEDOT)
+ ENDIF(OSG_GLU_TESS_CALLBACK_TRIPLEDOT)
+ 
+-# Platform specific:
+-# (We can approach this one of two ways. We can try to FIND everything
+-# and simply check if we found the packages before actually building
+-# or we can hardcode the cases. The advantage of the former is that
+-# packages that are installed on platforms that don't require them
+-# will still get built (presuming no compatibility issues). But this
+-# also means modules that are redundant may get built. For example,
+-# OS X doesn't need GIF, JPEG, PNG, TIFF, etc because it uses QuickTime.
+-# Also, it will clutter the CMake menu with "NOT_FOUND".
+-# The downside to the latter is that it is harder to build those
+-# potentially redundant modules.)
+-
+-# Image readers/writers depend on 3rd party libraries except for OS X which
+-# can use Quicktime.
+-IF(NOT APPLE)
+-    FIND_PACKAGE(GIFLIB)
+-    FIND_PACKAGE(JPEG)
+-    FIND_PACKAGE(PNG)
+-    FIND_PACKAGE(TIFF)
+-
+-    # QuickTime is required for OS X, but optional for Windows.
+-    IF(WIN32)
+-        FIND_PACKAGE(QuickTime)
+-    ENDIF()
+-
+-ELSE()
+-    FIND_PACKAGE(QuickTime)
+-ENDIF()
++FIND_PACKAGE(GIFLIB)
++FIND_PACKAGE(JPEG)
++FIND_PACKAGE(PNG)
++FIND_PACKAGE(TIFF)
+ 
+ ################################################################################
+ # Create bin and lib directories if required

Added: trunk/dports/graphics/OpenSceneGraph-devel/files/patch-src-osgDB-Registry.cpp.diff
===================================================================
--- trunk/dports/graphics/OpenSceneGraph-devel/files/patch-src-osgDB-Registry.cpp.diff	                        (rev 0)
+++ trunk/dports/graphics/OpenSceneGraph-devel/files/patch-src-osgDB-Registry.cpp.diff	2009-12-21 04:38:48 UTC (rev 61767)
@@ -0,0 +1,33 @@
+--- src/osgDB/Registry.cpp.orig	2009-12-21 03:42:08.000000000 +0100
++++ src/osgDB/Registry.cpp	2009-12-21 03:46:42.000000000 +0100
+@@ -730,29 +730,7 @@
+ 
+ std::string Registry::createLibraryNameForNodeKit(const std::string& name)
+ {
+-#if defined(__CYGWIN__)
+-    return "cyg"+name+".dll";
+-#elif defined(__MINGW32__)
+-    return "lib"+name+".dll";
+-#elif defined(WIN32)
+-    #ifdef _DEBUG
+-        return name+OSG_DEBUG_POSTFIX_WITH_QUOTES +".dll";
+-    #else
+-        return name+".dll";
+-    #endif
+-#elif macintosh
+-    #ifdef _DEBUG
+-        return name+OSGDEBUG_POSTFIX_WITH_QUOTES;
+-    #else
+-        return name;
+-    #endif
+-#else
+-    #ifdef _DEBUG
+-        return "lib"+name+OSG_DEBUG_POSTFIX_WITH_QUOTES + ADDQUOTES(OSG_PLUGIN_EXTENSION);
+-    #else
+-        return "lib"+name+ADDQUOTES(OSG_PLUGIN_EXTENSION);
+-    #endif
+-#endif
++    return "@PREFIX@/lib/lib"+name+".dylib";
+ }
+ 
+ Registry::LoadStatus Registry::loadLibrary(const std::string& fileName)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091220/28bcb95b/attachment.html>


More information about the macports-changes mailing list