summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'graphics')
-rw-r--r--graphics/osg/DESCR7
-rw-r--r--graphics/osg/Makefile42
-rw-r--r--graphics/osg/PLIST606
-rw-r--r--graphics/osg/buildlink3.mk28
-rw-r--r--graphics/osg/distinfo9
-rw-r--r--graphics/osg/patches/patch-ab13
-rw-r--r--graphics/osg/patches/patch-ac34
-rw-r--r--graphics/osg/patches/patch-ad57
-rw-r--r--graphics/osg/patches/patch-ae24
9 files changed, 820 insertions, 0 deletions
diff --git a/graphics/osg/DESCR b/graphics/osg/DESCR
new file mode 100644
index 00000000000..1c71b14ddd9
--- /dev/null
+++ b/graphics/osg/DESCR
@@ -0,0 +1,7 @@
+The OpenSceneGraph is an open source high performance 3D graphics toolkit, used
+by application developers in fields such as visual simulation, games, virtual
+reality, scientific visualization and modelling. Written entirely in Standard
+C++ and OpenGL it runs on all Windows platforms, OSX, GNU/Linux, IRIX, Solaris,
+HP-Ux, AIX and FreeBSD operating systems. The OpenSceneGraph is now well
+established as the world leading scene graph technology, used widely in the
+vis-sim, space, scientific, oil-gas, games and virtual reality industries.
diff --git a/graphics/osg/Makefile b/graphics/osg/Makefile
new file mode 100644
index 00000000000..61d34173d00
--- /dev/null
+++ b/graphics/osg/Makefile
@@ -0,0 +1,42 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/08/26 13:08:48 adam Exp $
+
+DISTNAME= OpenSceneGraph-${OSGVER}
+PKGNAME= osg-${OSGVER}
+CATEGORIES= graphics devel
+MASTER_SITES= http://www.openscenegraph.org/downloads/stable_releases/OpenSceneGraph-${OSGVER}/source/
+EXTRACT_SUFX= .zip
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://www.openscenegraph.org/
+COMMENT= High performance 3D graphics toolkit
+
+LICENSE= gnu-lgpl-v2.1
+
+OSGVER= 2.8.3
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_CMAKE= yes
+USE_LANGUAGES= c c++
+PKGCONFIG_OVERRIDE= packaging/pkgconfig/openscenegraph.pc.in
+PKGCONFIG_OVERRIDE+= packaging/pkgconfig/openthreads.pc.in
+
+CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release
+
+.include "../../graphics/cairo/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../graphics/glu/buildlink3.mk"
+.include "../../graphics/jasper/buildlink3.mk"
+.include "../../graphics/jpeg/buildlink3.mk"
+.include "../../graphics/libungif/buildlink3.mk"
+.include "../../graphics/librsvg/buildlink3.mk"
+.include "../../graphics/MesaLib/buildlink3.mk"
+.include "../../graphics/openexr/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../graphics/tiff/buildlink3.mk"
+.include "../../multimedia/xine-lib/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXrandr/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/osg/PLIST b/graphics/osg/PLIST
new file mode 100644
index 00000000000..82a3185b0ac
--- /dev/null
+++ b/graphics/osg/PLIST
@@ -0,0 +1,606 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2010/08/26 13:08:49 adam Exp $
+bin/osgarchive
+bin/osgconv
+bin/osgfilecache
+bin/osgversion
+bin/osgviewer
+include/OpenThreads/Atomic
+include/OpenThreads/Barrier
+include/OpenThreads/Block
+include/OpenThreads/Condition
+include/OpenThreads/Config
+include/OpenThreads/Exports
+include/OpenThreads/Mutex
+include/OpenThreads/ReadWriteMutex
+include/OpenThreads/ReentrantMutex
+include/OpenThreads/ScopedLock
+include/OpenThreads/Thread
+include/OpenThreads/Version
+include/osg/AlphaFunc
+include/osg/AnimationPath
+include/osg/ApplicationUsage
+include/osg/ArgumentParser
+include/osg/Array
+include/osg/AudioStream
+include/osg/AutoTransform
+include/osg/Billboard
+include/osg/BlendColor
+include/osg/BlendEquation
+include/osg/BlendFunc
+include/osg/BoundingBox
+include/osg/BoundingSphere
+include/osg/BoundsChecking
+include/osg/BufferObject
+include/osg/Camera
+include/osg/CameraNode
+include/osg/CameraView
+include/osg/ClampColor
+include/osg/ClearNode
+include/osg/ClipNode
+include/osg/ClipPlane
+include/osg/ClusterCullingCallback
+include/osg/CollectOccludersVisitor
+include/osg/ColorMask
+include/osg/ColorMatrix
+include/osg/ComputeBoundsVisitor
+include/osg/Config
+include/osg/ConvexPlanarOccluder
+include/osg/ConvexPlanarPolygon
+include/osg/CoordinateSystemNode
+include/osg/CopyOp
+include/osg/CullFace
+include/osg/CullSettings
+include/osg/CullStack
+include/osg/CullingSet
+include/osg/DeleteHandler
+include/osg/Depth
+include/osg/DisplaySettings
+include/osg/DrawPixels
+include/osg/Drawable
+include/osg/Endian
+include/osg/Export
+include/osg/Fog
+include/osg/FragmentProgram
+include/osg/FrameBufferObject
+include/osg/FrameStamp
+include/osg/FrontFace
+include/osg/GL
+include/osg/GL2Extensions
+include/osg/GLExtensions
+include/osg/GLObjects
+include/osg/GLU
+include/osg/Geode
+include/osg/Geometry
+include/osg/GraphicsContext
+include/osg/GraphicsThread
+include/osg/Group
+include/osg/Hint
+include/osg/Image
+include/osg/ImageSequence
+include/osg/ImageStream
+include/osg/ImageUtils
+include/osg/KdTree
+include/osg/LOD
+include/osg/Light
+include/osg/LightModel
+include/osg/LightSource
+include/osg/LineSegment
+include/osg/LineStipple
+include/osg/LineWidth
+include/osg/LogicOp
+include/osg/Material
+include/osg/Math
+include/osg/Matrix
+include/osg/MatrixTransform
+include/osg/Matrixd
+include/osg/Matrixf
+include/osg/MixinVector
+include/osg/Multisample
+include/osg/Node
+include/osg/NodeCallback
+include/osg/NodeTrackerCallback
+include/osg/NodeVisitor
+include/osg/Notify
+include/osg/Object
+include/osg/OccluderNode
+include/osg/OcclusionQueryNode
+include/osg/OperationThread
+include/osg/PagedLOD
+include/osg/Plane
+include/osg/Point
+include/osg/PointSprite
+include/osg/PolygonMode
+include/osg/PolygonOffset
+include/osg/PolygonStipple
+include/osg/Polytope
+include/osg/PositionAttitudeTransform
+include/osg/PrimitiveSet
+include/osg/Program
+include/osg/Projection
+include/osg/ProxyNode
+include/osg/Quat
+include/osg/Referenced
+include/osg/RenderInfo
+include/osg/Scissor
+include/osg/Sequence
+include/osg/ShadeModel
+include/osg/Shader
+include/osg/ShadowVolumeOccluder
+include/osg/Shape
+include/osg/ShapeDrawable
+include/osg/State
+include/osg/StateAttribute
+include/osg/StateAttributeCallback
+include/osg/StateSet
+include/osg/Stats
+include/osg/Stencil
+include/osg/StencilTwoSided
+include/osg/Switch
+include/osg/TemplatePrimitiveFunctor
+include/osg/TexEnv
+include/osg/TexEnvCombine
+include/osg/TexEnvFilter
+include/osg/TexGen
+include/osg/TexGenNode
+include/osg/TexMat
+include/osg/Texture
+include/osg/Texture1D
+include/osg/Texture2D
+include/osg/Texture2DArray
+include/osg/Texture3D
+include/osg/TextureCubeMap
+include/osg/TextureRectangle
+include/osg/Timer
+include/osg/TransferFunction
+include/osg/Transform
+include/osg/TriangleFunctor
+include/osg/TriangleIndexFunctor
+include/osg/Uniform
+include/osg/Vec2
+include/osg/Vec2b
+include/osg/Vec2d
+include/osg/Vec2f
+include/osg/Vec2s
+include/osg/Vec3
+include/osg/Vec3b
+include/osg/Vec3d
+include/osg/Vec3f
+include/osg/Vec3s
+include/osg/Vec4
+include/osg/Vec4b
+include/osg/Vec4d
+include/osg/Vec4f
+include/osg/Vec4s
+include/osg/Vec4ub
+include/osg/Version
+include/osg/VertexProgram
+include/osg/View
+include/osg/Viewport
+include/osg/buffered_value
+include/osg/fast_back_stack
+include/osg/io_utils
+include/osg/observer_ptr
+include/osg/ref_ptr
+include/osgAnimation/Action
+include/osgAnimation/ActionAnimation
+include/osgAnimation/ActionBlendIn
+include/osgAnimation/ActionBlendOut
+include/osgAnimation/ActionCallback
+include/osgAnimation/ActionStripAnimation
+include/osgAnimation/ActionVisitor
+include/osgAnimation/Animation
+include/osgAnimation/AnimationManagerBase
+include/osgAnimation/AnimationUpdateCallback
+include/osgAnimation/BasicAnimationManager
+include/osgAnimation/Bone
+include/osgAnimation/BoneMapVisitor
+include/osgAnimation/Channel
+include/osgAnimation/CubicBezier
+include/osgAnimation/EaseMotion
+include/osgAnimation/Export
+include/osgAnimation/FrameAction
+include/osgAnimation/Interpolator
+include/osgAnimation/Keyframe
+include/osgAnimation/LinkVisitor
+include/osgAnimation/MorphGeometry
+include/osgAnimation/RigGeometry
+include/osgAnimation/RigTransform
+include/osgAnimation/RigTransformHardware
+include/osgAnimation/RigTransformSoftware
+include/osgAnimation/Sampler
+include/osgAnimation/Skeleton
+include/osgAnimation/StackedMatrixElement
+include/osgAnimation/StackedQuaternionElement
+include/osgAnimation/StackedRotateAxisElement
+include/osgAnimation/StackedScaleElement
+include/osgAnimation/StackedTransform
+include/osgAnimation/StackedTransformElement
+include/osgAnimation/StackedTranslateElement
+include/osgAnimation/StatsHandler
+include/osgAnimation/StatsVisitor
+include/osgAnimation/Target
+include/osgAnimation/Timeline
+include/osgAnimation/TimelineAnimationManager
+include/osgAnimation/UpdateBone
+include/osgAnimation/UpdateMaterial
+include/osgAnimation/UpdateMatrixTransform
+include/osgAnimation/Vec3Packed
+include/osgAnimation/VertexInfluence
+include/osgDB/Archive
+include/osgDB/AuthenticationMap
+include/osgDB/ConvertUTF
+include/osgDB/DatabasePager
+include/osgDB/DotOsgWrapper
+include/osgDB/DynamicLibrary
+include/osgDB/Export
+include/osgDB/Field
+include/osgDB/FieldReader
+include/osgDB/FieldReaderIterator
+include/osgDB/FileCache
+include/osgDB/FileNameUtils
+include/osgDB/FileUtils
+include/osgDB/ImageOptions
+include/osgDB/ImagePager
+include/osgDB/Input
+include/osgDB/Output
+include/osgDB/ParameterOutput
+include/osgDB/PluginQuery
+include/osgDB/ReadFile
+include/osgDB/ReaderWriter
+include/osgDB/Registry
+include/osgDB/Serializer
+include/osgDB/SharedStateManager
+include/osgDB/Version
+include/osgDB/WriteFile
+include/osgDB/fstream
+include/osgFX/AnisotropicLighting
+include/osgFX/BumpMapping
+include/osgFX/Cartoon
+include/osgFX/Effect
+include/osgFX/Export
+include/osgFX/MultiTextureControl
+include/osgFX/Registry
+include/osgFX/Scribe
+include/osgFX/SpecularHighlights
+include/osgFX/Technique
+include/osgFX/Validator
+include/osgFX/Version
+include/osgGA/AnimationPathManipulator
+include/osgGA/CameraViewSwitchManipulator
+include/osgGA/DriveManipulator
+include/osgGA/EventQueue
+include/osgGA/EventVisitor
+include/osgGA/Export
+include/osgGA/FlightManipulator
+include/osgGA/GUIActionAdapter
+include/osgGA/GUIEventAdapter
+include/osgGA/GUIEventHandler
+include/osgGA/KeySwitchMatrixManipulator
+include/osgGA/MatrixManipulator
+include/osgGA/NodeTrackerManipulator
+include/osgGA/StateSetManipulator
+include/osgGA/TerrainManipulator
+include/osgGA/TrackballManipulator
+include/osgGA/UFOManipulator
+include/osgGA/Version
+include/osgManipulator/AntiSquish
+include/osgManipulator/Command
+include/osgManipulator/CommandManager
+include/osgManipulator/Constraint
+include/osgManipulator/Dragger
+include/osgManipulator/Export
+include/osgManipulator/Projector
+include/osgManipulator/RotateCylinderDragger
+include/osgManipulator/RotateSphereDragger
+include/osgManipulator/Scale1DDragger
+include/osgManipulator/Scale2DDragger
+include/osgManipulator/ScaleAxisDragger
+include/osgManipulator/Selection
+include/osgManipulator/TabBoxDragger
+include/osgManipulator/TabPlaneDragger
+include/osgManipulator/TabPlaneTrackballDragger
+include/osgManipulator/TrackballDragger
+include/osgManipulator/Translate1DDragger
+include/osgManipulator/Translate2DDragger
+include/osgManipulator/TranslateAxisDragger
+include/osgManipulator/TranslatePlaneDragger
+include/osgManipulator/Version
+include/osgParticle/AccelOperator
+include/osgParticle/AngularAccelOperator
+include/osgParticle/BoxPlacer
+include/osgParticle/CenteredPlacer
+include/osgParticle/ConnectedParticleSystem
+include/osgParticle/ConstantRateCounter
+include/osgParticle/Counter
+include/osgParticle/Emitter
+include/osgParticle/ExplosionDebrisEffect
+include/osgParticle/ExplosionEffect
+include/osgParticle/Export
+include/osgParticle/FireEffect
+include/osgParticle/FluidFrictionOperator
+include/osgParticle/FluidProgram
+include/osgParticle/ForceOperator
+include/osgParticle/Interpolator
+include/osgParticle/LinearInterpolator
+include/osgParticle/ModularEmitter
+include/osgParticle/ModularProgram
+include/osgParticle/MultiSegmentPlacer
+include/osgParticle/Operator
+include/osgParticle/Particle
+include/osgParticle/ParticleEffect
+include/osgParticle/ParticleProcessor
+include/osgParticle/ParticleSystem
+include/osgParticle/ParticleSystemUpdater
+include/osgParticle/Placer
+include/osgParticle/PointPlacer
+include/osgParticle/PrecipitationEffect
+include/osgParticle/Program
+include/osgParticle/RadialShooter
+include/osgParticle/RandomRateCounter
+include/osgParticle/SectorPlacer
+include/osgParticle/SegmentPlacer
+include/osgParticle/Shooter
+include/osgParticle/SmokeEffect
+include/osgParticle/SmokeTrailEffect
+include/osgParticle/VariableRateCounter
+include/osgParticle/Version
+include/osgParticle/range
+include/osgShadow/ConvexPolyhedron
+include/osgShadow/DebugShadowMap
+include/osgShadow/Export
+include/osgShadow/LightSpacePerspectiveShadowMap
+include/osgShadow/MinimalCullBoundsShadowMap
+include/osgShadow/MinimalDrawBoundsShadowMap
+include/osgShadow/MinimalShadowMap
+include/osgShadow/OccluderGeometry
+include/osgShadow/ParallelSplitShadowMap
+include/osgShadow/ProjectionShadowMap
+include/osgShadow/ShadowMap
+include/osgShadow/ShadowTechnique
+include/osgShadow/ShadowTexture
+include/osgShadow/ShadowVolume
+include/osgShadow/ShadowedScene
+include/osgShadow/SoftShadowMap
+include/osgShadow/StandardShadowMap
+include/osgShadow/Version
+include/osgShadow/ViewDependentShadowTechnique
+include/osgSim/BlinkSequence
+include/osgSim/ColorRange
+include/osgSim/DOFTransform
+include/osgSim/ElevationSlice
+include/osgSim/Export
+include/osgSim/GeographicLocation
+include/osgSim/HeightAboveTerrain
+include/osgSim/Impostor
+include/osgSim/ImpostorSprite
+include/osgSim/InsertImpostorsVisitor
+include/osgSim/LightPoint
+include/osgSim/LightPointNode
+include/osgSim/LightPointSystem
+include/osgSim/LineOfSight
+include/osgSim/MultiSwitch
+include/osgSim/ObjectRecordData
+include/osgSim/OverlayNode
+include/osgSim/ScalarBar
+include/osgSim/ScalarsToColors
+include/osgSim/Sector
+include/osgSim/ShapeAttribute
+include/osgSim/SphereSegment
+include/osgSim/Version
+include/osgSim/VisibilityGroup
+include/osgTerrain/Export
+include/osgTerrain/GeometryTechnique
+include/osgTerrain/Layer
+include/osgTerrain/Locator
+include/osgTerrain/Terrain
+include/osgTerrain/TerrainTechnique
+include/osgTerrain/TerrainTile
+include/osgTerrain/ValidDataOperator
+include/osgTerrain/Version
+include/osgText/Export
+include/osgText/FadeText
+include/osgText/Font
+include/osgText/Font3D
+include/osgText/KerningType
+include/osgText/String
+include/osgText/Text
+include/osgText/Text3D
+include/osgText/TextBase
+include/osgText/Version
+include/osgUtil/ConvertVec
+include/osgUtil/CubeMapGenerator
+include/osgUtil/CullVisitor
+include/osgUtil/DelaunayTriangulator
+include/osgUtil/DisplayRequirementsVisitor
+include/osgUtil/DrawElementTypeSimplifier
+include/osgUtil/EdgeCollector
+include/osgUtil/Export
+include/osgUtil/GLObjectsVisitor
+include/osgUtil/HalfWayMapGenerator
+include/osgUtil/HighlightMapGenerator
+include/osgUtil/IntersectVisitor
+include/osgUtil/IntersectionVisitor
+include/osgUtil/LineSegmentIntersector
+include/osgUtil/OperationArrayFunctor
+include/osgUtil/Optimizer
+include/osgUtil/PlaneIntersector
+include/osgUtil/PolytopeIntersector
+include/osgUtil/PositionalStateContainer
+include/osgUtil/ReflectionMapGenerator
+include/osgUtil/RenderBin
+include/osgUtil/RenderLeaf
+include/osgUtil/RenderStage
+include/osgUtil/ReversePrimitiveFunctor
+include/osgUtil/SceneGraphBuilder
+include/osgUtil/SceneView
+include/osgUtil/Simplifier
+include/osgUtil/SmoothingVisitor
+include/osgUtil/StateGraph
+include/osgUtil/Statistics
+include/osgUtil/TangentSpaceGenerator
+include/osgUtil/Tessellator
+include/osgUtil/TransformAttributeFunctor
+include/osgUtil/TransformCallback
+include/osgUtil/TriStripVisitor
+include/osgUtil/UpdateVisitor
+include/osgUtil/Version
+include/osgViewer/CompositeViewer
+include/osgViewer/Export
+include/osgViewer/GraphicsWindow
+include/osgViewer/GraphicsWindowX11
+include/osgViewer/PixelBufferX11
+include/osgViewer/Renderer
+include/osgViewer/Scene
+include/osgViewer/Version
+include/osgViewer/View
+include/osgViewer/Viewer
+include/osgViewer/ViewerBase
+include/osgViewer/ViewerEventHandlers
+include/osgViewer/api/X11/GraphicsWindowX11
+include/osgViewer/api/X11/PixelBufferX11
+include/osgVolume/Export
+include/osgVolume/FixedFunctionTechnique
+include/osgVolume/Layer
+include/osgVolume/Locator
+include/osgVolume/Property
+include/osgVolume/RayTracedTechnique
+include/osgVolume/Version
+include/osgVolume/Volume
+include/osgVolume/VolumeTechnique
+include/osgVolume/VolumeTile
+include/osgWidget/Box
+include/osgWidget/Browser
+include/osgWidget/Canvas
+include/osgWidget/EventInterface
+include/osgWidget/Export
+include/osgWidget/Frame
+include/osgWidget/Input
+include/osgWidget/Label
+include/osgWidget/Lua
+include/osgWidget/PdfReader
+include/osgWidget/Python
+include/osgWidget/ScriptEngine
+include/osgWidget/StyleInterface
+include/osgWidget/StyleManager
+include/osgWidget/Table
+include/osgWidget/Types
+include/osgWidget/UIObjectParent
+include/osgWidget/Util
+include/osgWidget/Version
+include/osgWidget/ViewerEventHandlers
+include/osgWidget/VncClient
+include/osgWidget/Widget
+include/osgWidget/Window
+include/osgWidget/WindowManager
+lib/libOpenThreads.so
+lib/libOpenThreads.so.11
+lib/libOpenThreads.so.2.4.0
+lib/libosg.so
+lib/libosg.so.${PKGVERSION}
+lib/libosg.so.65
+lib/libosgAnimation.so
+lib/libosgAnimation.so.${PKGVERSION}
+lib/libosgAnimation.so.65
+lib/libosgDB.so
+lib/libosgDB.so.${PKGVERSION}
+lib/libosgDB.so.65
+lib/libosgFX.so
+lib/libosgFX.so.${PKGVERSION}
+lib/libosgFX.so.65
+lib/libosgGA.so
+lib/libosgGA.so.${PKGVERSION}
+lib/libosgGA.so.65
+lib/libosgManipulator.so
+lib/libosgManipulator.so.${PKGVERSION}
+lib/libosgManipulator.so.65
+lib/libosgParticle.so
+lib/libosgParticle.so.${PKGVERSION}
+lib/libosgParticle.so.65
+lib/libosgShadow.so
+lib/libosgShadow.so.${PKGVERSION}
+lib/libosgShadow.so.65
+lib/libosgSim.so
+lib/libosgSim.so.${PKGVERSION}
+lib/libosgSim.so.65
+lib/libosgTerrain.so
+lib/libosgTerrain.so.${PKGVERSION}
+lib/libosgTerrain.so.65
+lib/libosgText.so
+lib/libosgText.so.${PKGVERSION}
+lib/libosgText.so.65
+lib/libosgUtil.so
+lib/libosgUtil.so.${PKGVERSION}
+lib/libosgUtil.so.65
+lib/libosgViewer.so
+lib/libosgViewer.so.${PKGVERSION}
+lib/libosgViewer.so.65
+lib/libosgVolume.so
+lib/libosgVolume.so.${PKGVERSION}
+lib/libosgVolume.so.65
+lib/libosgWidget.so
+lib/libosgWidget.so.${PKGVERSION}
+lib/libosgWidget.so.65
+lib/osgPlugins-${PKGVERSION}/osgdb_3dc.so
+lib/osgPlugins-${PKGVERSION}/osgdb_3ds.so
+lib/osgPlugins-${PKGVERSION}/osgdb_ac.so
+lib/osgPlugins-${PKGVERSION}/osgdb_bmp.so
+lib/osgPlugins-${PKGVERSION}/osgdb_bsp.so
+lib/osgPlugins-${PKGVERSION}/osgdb_bvh.so
+lib/osgPlugins-${PKGVERSION}/osgdb_cfg.so
+lib/osgPlugins-${PKGVERSION}/osgdb_curl.so
+lib/osgPlugins-${PKGVERSION}/osgdb_dds.so
+lib/osgPlugins-${PKGVERSION}/osgdb_dot.so
+lib/osgPlugins-${PKGVERSION}/osgdb_dw.so
+lib/osgPlugins-${PKGVERSION}/osgdb_dxf.so
+lib/osgPlugins-${PKGVERSION}/osgdb_exr.so
+lib/osgPlugins-${PKGVERSION}/osgdb_geo.so
+lib/osgPlugins-${PKGVERSION}/osgdb_gif.so
+lib/osgPlugins-${PKGVERSION}/osgdb_glsl.so
+lib/osgPlugins-${PKGVERSION}/osgdb_gz.so
+lib/osgPlugins-${PKGVERSION}/osgdb_hdr.so
+lib/osgPlugins-${PKGVERSION}/osgdb_ive.so
+lib/osgPlugins-${PKGVERSION}/osgdb_jp2.so
+lib/osgPlugins-${PKGVERSION}/osgdb_jpeg.so
+lib/osgPlugins-${PKGVERSION}/osgdb_logo.so
+lib/osgPlugins-${PKGVERSION}/osgdb_lwo.so
+lib/osgPlugins-${PKGVERSION}/osgdb_lws.so
+lib/osgPlugins-${PKGVERSION}/osgdb_md2.so
+lib/osgPlugins-${PKGVERSION}/osgdb_mdl.so
+lib/osgPlugins-${PKGVERSION}/osgdb_normals.so
+lib/osgPlugins-${PKGVERSION}/osgdb_obj.so
+lib/osgPlugins-${PKGVERSION}/osgdb_openflight.so
+lib/osgPlugins-${PKGVERSION}/osgdb_osg.so
+lib/osgPlugins-${PKGVERSION}/osgdb_osga.so
+lib/osgPlugins-${PKGVERSION}/osgdb_osganimation.so
+lib/osgPlugins-${PKGVERSION}/osgdb_osgfx.so
+lib/osgPlugins-${PKGVERSION}/osgdb_osgparticle.so
+lib/osgPlugins-${PKGVERSION}/osgdb_osgshadow.so
+lib/osgPlugins-${PKGVERSION}/osgdb_osgsim.so
+lib/osgPlugins-${PKGVERSION}/osgdb_osgterrain.so
+lib/osgPlugins-${PKGVERSION}/osgdb_osgtext.so
+lib/osgPlugins-${PKGVERSION}/osgdb_osgtgz.so
+lib/osgPlugins-${PKGVERSION}/osgdb_osgviewer.so
+lib/osgPlugins-${PKGVERSION}/osgdb_osgvolume.so
+lib/osgPlugins-${PKGVERSION}/osgdb_osgwidget.so
+lib/osgPlugins-${PKGVERSION}/osgdb_pic.so
+lib/osgPlugins-${PKGVERSION}/osgdb_ply.so
+lib/osgPlugins-${PKGVERSION}/osgdb_png.so
+lib/osgPlugins-${PKGVERSION}/osgdb_pnm.so
+lib/osgPlugins-${PKGVERSION}/osgdb_rgb.so
+lib/osgPlugins-${PKGVERSION}/osgdb_rot.so
+lib/osgPlugins-${PKGVERSION}/osgdb_scale.so
+lib/osgPlugins-${PKGVERSION}/osgdb_shp.so
+lib/osgPlugins-${PKGVERSION}/osgdb_stl.so
+lib/osgPlugins-${PKGVERSION}/osgdb_svg.so
+lib/osgPlugins-${PKGVERSION}/osgdb_tga.so
+lib/osgPlugins-${PKGVERSION}/osgdb_tgz.so
+lib/osgPlugins-${PKGVERSION}/osgdb_tiff.so
+lib/osgPlugins-${PKGVERSION}/osgdb_trans.so
+lib/osgPlugins-${PKGVERSION}/osgdb_txf.so
+lib/osgPlugins-${PKGVERSION}/osgdb_txp.so
+lib/osgPlugins-${PKGVERSION}/osgdb_vtf.so
+lib/osgPlugins-${PKGVERSION}/osgdb_x.so
+lib/osgPlugins-${PKGVERSION}/osgdb_xine.so
+lib/osgPlugins-${PKGVERSION}/osgdb_zip.so
+lib/pkgconfig/openscenegraph.pc
+lib/pkgconfig/openthreads.pc
diff --git a/graphics/osg/buildlink3.mk b/graphics/osg/buildlink3.mk
new file mode 100644
index 00000000000..d5af27e9986
--- /dev/null
+++ b/graphics/osg/buildlink3.mk
@@ -0,0 +1,28 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2010/08/26 13:08:48 adam Exp $
+
+BUILDLINK_TREE+= osg
+
+.if !defined(OSG_BUILDLINK3_MK)
+OSG_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.osg+= osg>=2.8.3
+BUILDLINK_PKGSRCDIR.osg?= ../../graphics/osg
+
+.include "../../graphics/cairo/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../graphics/glu/buildlink3.mk"
+.include "../../graphics/jasper/buildlink3.mk"
+.include "../../graphics/jpeg/buildlink3.mk"
+.include "../../graphics/libungif/buildlink3.mk"
+.include "../../graphics/librsvg/buildlink3.mk"
+.include "../../graphics/MesaLib/buildlink3.mk"
+.include "../../graphics/openexr/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../graphics/tiff/buildlink3.mk"
+.include "../../multimedia/xine-lib/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXrandr/buildlink3.mk"
+.endif # OSG_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -osg
diff --git a/graphics/osg/distinfo b/graphics/osg/distinfo
new file mode 100644
index 00000000000..e39bfa93599
--- /dev/null
+++ b/graphics/osg/distinfo
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1.1.1 2010/08/26 13:08:48 adam Exp $
+
+SHA1 (OpenSceneGraph-2.8.3.zip) = 90502e4cbd47aac1689cc39d25ab62bbe0bba9fc
+RMD160 (OpenSceneGraph-2.8.3.zip) = 40a4988f4aefff7dbb6aab5225204ae41c945277
+Size (OpenSceneGraph-2.8.3.zip) = 6740017 bytes
+SHA1 (patch-ab) = 3707347bed3d597bc50ad81f0e5c974ffb60100a
+SHA1 (patch-ac) = bc35c9b0a9c7612137c66018b36b35b9897065be
+SHA1 (patch-ad) = 846f4f93104812125bffc8644948637de206bdc0
+SHA1 (patch-ae) = d882f09acac61f74a25cf3efc8f3b7b3756adae3
diff --git a/graphics/osg/patches/patch-ab b/graphics/osg/patches/patch-ab
new file mode 100644
index 00000000000..6b06b40e270
--- /dev/null
+++ b/graphics/osg/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2010/08/26 13:08:49 adam Exp $
+
+--- src/osgDB/FileUtils.cpp.orig 2009-01-12 17:28:37.000000000 +0200
++++ src/osgDB/FileUtils.cpp 2009-01-12 17:30:14.000000000 +0200
+@@ -47,7 +47,7 @@
+ #if (MAC_OS_X_VERSION_MAX_ALLOWED <= 1040)
+ #define stat64 stat
+ #endif
+-#elif defined(__CYGWIN__) || defined(__FreeBSD__) || (defined(__hpux) && !defined(_LARGEFILE64_SOURCE))
++#elif defined(__CYGWIN__) || defined(__FreeBSD__) || defined (__NetBSD__) || (defined(__hpux) && !defined(_LARGEFILE64_SOURCE))
+ #define stat64 stat
+ #endif
+
diff --git a/graphics/osg/patches/patch-ac b/graphics/osg/patches/patch-ac
new file mode 100644
index 00000000000..cfddf4ab225
--- /dev/null
+++ b/graphics/osg/patches/patch-ac
@@ -0,0 +1,34 @@
+$NetBSD: patch-ac,v 1.1.1.1 2010/08/26 13:08:49 adam Exp $
+
+--- ./include/osg/Math.orig 2008-11-23 13:35:43.000000000 +0200
++++ ./include/osg/Math 2009-01-14 09:49:00.000000000 +0200
+@@ -14,7 +14,7 @@
+ #ifndef __OSG_MATH
+ #define __OSG_MATH
+
+-#include <math.h>
++#include <cmath>
+
+ #include <osg/Export>
+
+@@ -200,14 +200,14 @@
+ inline bool isNaN(float v) { return _isnan(v)!=0; }
+ inline bool isNaN(double v) { return _isnan(v)!=0; }
+ #else
+- #if defined(__APPLE__)
++// #if defined(__APPLE__)
+ inline bool isNaN(float v) { return std::isnan(v); }
+ inline bool isNaN(double v) { return std::isnan(v); }
+- #else
+- // Need to use to std::isnan to avoid undef problem from <cmath>
+- inline bool isNaN(float v) { return isnan(v); }
+- inline bool isNaN(double v) { return isnan(v); }
+- #endif
++// #else
++// // Need to use to std::isnan to avoid undef problem from <cmath>
++// inline bool isNaN(float v) { return isnan(v); }
++// inline bool isNaN(double v) { return isnan(v); }
++// #endif
+ #endif
+
+
diff --git a/graphics/osg/patches/patch-ad b/graphics/osg/patches/patch-ad
new file mode 100644
index 00000000000..3601630f675
--- /dev/null
+++ b/graphics/osg/patches/patch-ad
@@ -0,0 +1,57 @@
+$NetBSD: patch-ad,v 1.1.1.1 2010/08/26 13:08:49 adam Exp $
+
+--- ./src/OpenThreads/pthreads/PThread.c++.orig 2009-06-22 12:51:46.000000000 +0200
++++ ./src/OpenThreads/pthreads/PThread.c++ 2009-06-22 16:55:54.000000000 +0200
+@@ -124,6 +124,15 @@
+ {
+ #if defined(__sgi)
+ pthread_setrunon_np( pd->cpunum );
++#elif defined(__NetBSD__) && defined(HAVE_PTHREAD_SETAFFINITY_NP)
++ cpuset_t *cset;
++ cset = cpuset_create();
++ if (cset != NULL)
++ {
++ cpuset_set(pd->cpunum, cset);
++ pthread_setaffinity_np(pthread_self(), cpuset_size(cset), cset);
++ cpuset_destroy(cset);
++ }
+ #elif defined(HAVE_PTHREAD_SETAFFINITY_NP) || defined(HAVE_THREE_PARAM_SCHED_SETAFFINITY) || defined(HAVE_TWO_PARAM_SCHED_SETAFFINITY)
+ cpu_set_t cpumask;
+ CPU_ZERO( &cpumask );
+@@ -537,6 +546,18 @@
+ status = pthread_attr_setscope( &thread_attr, PTHREAD_SCOPE_BOUND_NP );
+ return status;
+
++#elif defined(__NetBSD__) && defined(HAVE_PTHREAD_SETAFFINITY_NP)
++ if (pd->isRunning && Thread::CurrentThread()==this)
++ {
++ cpuset_t *cset;
++ cset = cpuset_create();
++ if (cset != NULL)
++ {
++ cpuset_set(pd->cpunum, cset);
++ pthread_setaffinity_np(pthread_self(), cpuset_size(cset), cset);
++ cpuset_destroy(cset);
++ }
++ }
+ #elif defined(HAVE_PTHREAD_SETAFFINITY_NP) || defined(HAVE_THREE_PARAM_SCHED_SETAFFINITY) || defined(HAVE_TWO_PARAM_SCHED_SETAFFINITY)
+
+ if (pd->isRunning && Thread::CurrentThread()==this)
+@@ -974,7 +995,16 @@
+ }
+ else
+ {
+-#if defined(HAVE_PTHREAD_SETAFFINITY_NP) || defined(HAVE_THREE_PARAM_SCHED_SETAFFINITY) || defined(HAVE_TWO_PARAM_SCHED_SETAFFINITY)
++#if defined(__NetBSD__) && defined(HAVE_PTHREAD_SETAFFINITY_NP)
++ cpuset_t *cset;
++ cset = cpuset_create();
++ if (cset != NULL)
++ {
++ cpuset_set(cpunum, cset);
++ pthread_setaffinity_np(pthread_self(), cpuset_size(cset), cset);
++ cpuset_destroy(cset);
++ }
++#elif defined(HAVE_PTHREAD_SETAFFINITY_NP) || defined(HAVE_THREE_PARAM_SCHED_SETAFFINITY) || defined(HAVE_TWO_PARAM_SCHED_SETAFFINITY)
+ cpu_set_t cpumask;
+ CPU_ZERO( &cpumask );
+ CPU_SET( cpunum, &cpumask );
diff --git a/graphics/osg/patches/patch-ae b/graphics/osg/patches/patch-ae
new file mode 100644
index 00000000000..a611399696c
--- /dev/null
+++ b/graphics/osg/patches/patch-ae
@@ -0,0 +1,24 @@
+$NetBSD: patch-ae,v 1.1.1.1 2010/08/26 13:08:49 adam Exp $
+
+--- ./CMakeLists.txt.orig 2009-06-22 19:23:08.000000000 +0200
++++ ./CMakeLists.txt 2009-06-22 19:23:54.000000000 +0200
+@@ -457,12 +457,13 @@
+ ENDIF(CMAKE_BUILD_TYPE STREQUAL "Debug")
+ ENDIF(CYGWIN)
+
+-IF(UNIX AND NOT WIN32 AND NOT APPLE)
+- IF(CMAKE_SIZEOF_VOID_P MATCHES "8")
+- SET(LIB_POSTFIX "64" CACHE STRING "suffix for 32/64 dir placement")
+- MARK_AS_ADVANCED(LIB_POSTFIX)
+- ENDIF(CMAKE_SIZEOF_VOID_P MATCHES "8")
+-ENDIF(UNIX AND NOT WIN32 AND NOT APPLE)
++# pkgsrc does not use lib64
++#IF(UNIX AND NOT WIN32 AND NOT APPLE)
++# IF(CMAKE_SIZEOF_VOID_P MATCHES "8")
++# SET(LIB_POSTFIX "64" CACHE STRING "suffix for 32/64 dir placement")
++# MARK_AS_ADVANCED(LIB_POSTFIX)
++# ENDIF(CMAKE_SIZEOF_VOID_P MATCHES "8")
++#ENDIF(UNIX AND NOT WIN32 AND NOT APPLE)
+ IF(NOT DEFINED LIB_POSTFIX)
+ SET(LIB_POSTFIX "")
+ ENDIF(NOT DEFINED LIB_POSTFIX)