openscenegraph use automatic discovery of installed package to build it.
It is bad as it introduces unwanted references that can affect the
validity of the binary on other nodes.

http://www.gentoo.org/proj/en/qa/automagic.xml

With the following patch I'm giving a chance to the installer to disable
the build with xulrunner even if xulrunner is installed. For now I'm
disabling xulrunner (optionally) in gentoo, as it is a huge dependency.
Maybe later I'll make optional other dependency, too.

--- CMakeLists.txt.old  2009-02-25 10:26:47.000000000 +0100
+++ CMakeLists.txt      2009-02-25 10:33:07.000000000 +0100
@@ -287,6 +287,8 @@
     INCLUDE(Find3rdPartyDependencies)
 ENDIF(WIN32)

+OPTION(ENABLE_XUL "Enable plugin gecko if xulrunner is available" ON) +
 # Common to all platforms:
 FIND_PACKAGE(FreeType)
 FIND_PACKAGE(Inventor)
@@ -302,7 +304,9 @@
 FIND_PACKAGE(ITK)
 FIND_PACKAGE(LibVNCServer)
 FIND_PACKAGE(OurDCMTK)
+IF(ENABLE_XUL)
 FIND_PACKAGE(XUL)
+ENDIF(ENABLE_XUL)

 #use pkg-config to find various modues
 INCLUDE(FindPkgConfig OPTIONAL)



Hope it can make its way in the tree.






_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to