pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

osg: Import osg-3.0.1 as wip/osg.



Module Name:	pkgsrc-wip
Committed By:	Mateusz Poszwa <old4%o2.pl@localhost>
Pushed By:	f8l
Date:		Fri Nov 6 19:07:33 2015 +0100
Changeset:	cf880b0d612bb9a5383f0d60e0a496872814e7ef

Modified Files:
	Makefile
Added Files:
	osg/DESCR
	osg/Makefile
	osg/PLIST
	osg/buildlink3.mk
	osg/distinfo
	osg/patches/patch-ab
	osg/patches/patch-ac
	osg/patches/patch-ad
	osg/patches/patch-ae
	osg/patches/patch-af
	osg/patches/patch-applications_present3D_Cluster.cpp
	osg/patches/patch-include_OpenThreads_Atomic
	osg/patches/patch-src_OpenThreads_common_Atomic.cpp
	osg/patches/patch-src_osgPlugins_gif_ReaderWriterGIF.cpp
	osg/patches/patch-src_osgViewer_DarwinUtils.mm

Log Message:
osg: Import osg-3.0.1 as wip/osg.

The OpenSceneGraph is an open source high performance 3D graphics toolkit.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=cf880b0d612bb9a5383f0d60e0a496872814e7ef

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                                           |   1 +
 osg/DESCR                                          |   7 +
 osg/Makefile                                       |  50 ++
 osg/PLIST                                          | 694 +++++++++++++++++++++
 osg/buildlink3.mk                                  |  29 +
 osg/distinfo                                       |  16 +
 osg/patches/patch-ab                               |  13 +
 osg/patches/patch-ac                               |  34 +
 osg/patches/patch-ad                               |  57 ++
 osg/patches/patch-ae                               |  19 +
 osg/patches/patch-af                               |  19 +
 .../patch-applications_present3D_Cluster.cpp       |  30 +
 osg/patches/patch-include_OpenThreads_Atomic       |  15 +
 .../patch-src_OpenThreads_common_Atomic.cpp        |  15 +
 .../patch-src_osgPlugins_gif_ReaderWriterGIF.cpp   |  30 +
 osg/patches/patch-src_osgViewer_DarwinUtils.mm     |  37 ++
 16 files changed, 1066 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 968a84f..44dbf30 100644
--- a/Makefile
+++ b/Makefile
@@ -2031,6 +2031,7 @@ SUBDIR+=	or1ksim
 SUBDIR+=	orbifolder
 SUBDIR+=	org-caldav-git
 SUBDIR+=	orion
+SUBDIR+=	osg
 SUBDIR+=	oslc
 SUBDIR+=	osmo
 SUBDIR+=	osmo-sdr-git
diff --git a/osg/DESCR b/osg/DESCR
new file mode 100644
index 0000000..1c71b14
--- /dev/null
+++ b/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/osg/Makefile b/osg/Makefile
new file mode 100644
index 0000000..9266646
--- /dev/null
+++ b/osg/Makefile
@@ -0,0 +1,50 @@
+# $NetBSD: Makefile,v 1.55 2015/06/30 09:57:36 ryoon Exp $
+
+DISTNAME=	OpenSceneGraph-3.0.1
+PKGNAME=	osg-3.0.1
+PKGREVISION=	37
+CATEGORIES=	graphics devel
+MASTER_SITES=	http://www.openscenegraph.org/downloads/stable_releases/OpenSceneGraph-${PKGVERSION_NOREV}/source/
+EXTRACT_SUFX=	.zip
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	http://www.openscenegraph.org/projects/osg
+COMMENT=	High performance 3D graphics toolkit
+LICENSE=	gnu-lgpl-v2.1
+
+USE_CMAKE=		yes
+USE_LANGUAGES=		c c++
+USE_TOOLS+=		pkg-config
+PKGCONFIG_OVERRIDE=	packaging/pkgconfig/openscenegraph.pc.in
+PKGCONFIG_OVERRIDE+=	packaging/pkgconfig/openthreads.pc.in
+
+CMAKE_ARGS+=		-DCMAKE_BUILD_TYPE=Release
+
+PLIST_VARS+=	quartz x11
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "Darwin"
+PLIST.quartz=	yes
+.else
+PLIST.x11=	yes
+.include "../../graphics/MesaLib/buildlink3.mk"
+.include "../../graphics/glu/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../graphics/tiff/buildlink3.mk"
+.include "../../multimedia/xine-lib/buildlink3.mk"
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXrandr/buildlink3.mk"
+.include "../../graphics/giflib/buildlink3.mk"
+.include "../../mk/jpeg.buildlink3.mk"
+.endif
+
+.include "../../geography/gdal-lib/buildlink3.mk"
+.include "../../graphics/cairo/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../graphics/jasper/buildlink3.mk"
+.include "../../graphics/librsvg/buildlink3.mk"
+.include "../../graphics/openexr/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/osg/PLIST b/osg/PLIST
new file mode 100644
index 0000000..97a084d
--- /dev/null
+++ b/osg/PLIST
@@ -0,0 +1,694 @@
+@comment $NetBSD: PLIST,v 1.4 2014/08/19 13:35:22 joerg Exp $
+bin/osgarchive
+bin/osgconv
+bin/osgfilecache
+bin/osgversion
+bin/osgviewer
+bin/present3D
+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/ArrayDispatchers
+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/BufferIndexBinding
+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/GLBeginEndAdapter
+include/osg/GLExtensions
+include/osg/GLObjects
+include/osg/GLU
+include/osg/Geode
+include/osg/Geometry
+include/osg/GraphicsContext
+include/osg/GraphicsCostEstimator
+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/Observer
+include/osg/ObserverNodePath
+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/ShaderAttribute
+include/osg/ShaderComposer
+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/Texture2DMultisample
+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/UserDataContainer
+include/osg/ValueObject
+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/Callbacks
+include/osgDB/ConvertUTF
+include/osgDB/DataTypes
+include/osgDB/DatabasePager
+include/osgDB/DatabaseRevisions
+include/osgDB/DotOsgWrapper
+include/osgDB/DynamicLibrary
+include/osgDB/Export
+include/osgDB/ExternalFileWriter
+include/osgDB/FileCache
+include/osgDB/FileNameUtils
+include/osgDB/FileUtils
+include/osgDB/ImageOptions
+include/osgDB/ImagePager
+include/osgDB/ImageProcessor
+include/osgDB/Input
+include/osgDB/InputStream
+include/osgDB/ObjectWrapper
+include/osgDB/Options
+include/osgDB/Output
+include/osgDB/OutputStream
+include/osgDB/ParameterOutput
+include/osgDB/PluginQuery
+include/osgDB/ReadFile
+include/osgDB/ReaderWriter
+include/osgDB/Registry
+include/osgDB/Serializer
+include/osgDB/SharedStateManager
+include/osgDB/StreamOperator
+include/osgDB/Version
+include/osgDB/WriteFile
+include/osgDB/XmlParser
+include/osgDB/fstream
+include/osgFX/AnisotropicLighting
+include/osgFX/BumpMapping
+include/osgFX/Cartoon
+include/osgFX/Effect
+include/osgFX/Export
+include/osgFX/MultiTextureControl
+include/osgFX/Outline
+include/osgFX/Registry
+include/osgFX/Scribe
+include/osgFX/SpecularHighlights
+include/osgFX/Technique
+include/osgFX/Validator
+include/osgFX/Version
+include/osgGA/AnimationPathManipulator
+include/osgGA/CameraManipulator
+include/osgGA/CameraViewSwitchManipulator
+include/osgGA/DriveManipulator
+include/osgGA/EventQueue
+include/osgGA/EventVisitor
+include/osgGA/Export
+include/osgGA/FirstPersonManipulator
+include/osgGA/FlightManipulator
+include/osgGA/GUIActionAdapter
+include/osgGA/GUIEventAdapter
+include/osgGA/GUIEventHandler
+include/osgGA/KeySwitchMatrixManipulator
+include/osgGA/MultiTouchTrackballManipulator
+include/osgGA/NodeTrackerManipulator
+include/osgGA/OrbitManipulator
+include/osgGA/SphericalManipulator
+include/osgGA/StandardManipulator
+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/TabBoxTrackballDragger
+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/AngularDampingOperator
+include/osgParticle/BounceOperator
+include/osgParticle/BoxPlacer
+include/osgParticle/CenteredPlacer
+include/osgParticle/CompositePlacer
+include/osgParticle/ConnectedParticleSystem
+include/osgParticle/ConstantRateCounter
+include/osgParticle/Counter
+include/osgParticle/DampingOperator
+include/osgParticle/DomainOperator
+include/osgParticle/Emitter
+include/osgParticle/ExplosionDebrisEffect
+include/osgParticle/ExplosionEffect
+include/osgParticle/ExplosionOperator
+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/OrbitOperator
+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/SinkOperator
+include/osgParticle/SmokeEffect
+include/osgParticle/SmokeTrailEffect
+include/osgParticle/VariableRateCounter
+include/osgParticle/Version
+include/osgParticle/range
+include/osgPresentation/AnimationMaterial
+include/osgPresentation/CompileSlideCallback
+include/osgPresentation/Export
+include/osgPresentation/PickEventHandler
+include/osgPresentation/SlideEventHandler
+include/osgPresentation/SlideShowConstructor
+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/Glyph
+include/osgText/KerningType
+include/osgText/String
+include/osgText/Style
+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/IncrementalCompileOperation
+include/osgUtil/IntersectVisitor
+include/osgUtil/IntersectionVisitor
+include/osgUtil/LineSegmentIntersector
+include/osgUtil/MeshOptimizers
+include/osgUtil/OperationArrayFunctor
+include/osgUtil/Optimizer
+include/osgUtil/PlaneIntersector
+include/osgUtil/PolytopeIntersector
+include/osgUtil/PositionalStateContainer
+include/osgUtil/PrintVisitor
+include/osgUtil/ReflectionMapGenerator
+include/osgUtil/RenderBin
+include/osgUtil/RenderLeaf
+include/osgUtil/RenderStage
+include/osgUtil/ReversePrimitiveFunctor
+include/osgUtil/SceneGraphBuilder
+include/osgUtil/SceneView
+include/osgUtil/ShaderGen
+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/Renderer
+include/osgViewer/Scene
+include/osgViewer/Version
+include/osgViewer/View
+include/osgViewer/Viewer
+include/osgViewer/ViewerBase
+include/osgViewer/ViewerEventHandlers
+${PLIST.quartz}include/osgViewer/api/Carbon/GraphicsHandleCarbon
+${PLIST.quartz}include/osgViewer/api/Carbon/GraphicsWindowCarbon
+${PLIST.quartz}include/osgViewer/api/Carbon/PixelBufferCarbon
+${PLIST.x11}include/osgViewer/api/X11/GraphicsHandleX11
+${PLIST.x11}include/osgViewer/api/X11/GraphicsWindowX11
+${PLIST.x11}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.12
+lib/libOpenThreads.so.2.6.0
+lib/libosg.so
+lib/libosg.so.${PKGVERSION}
+lib/libosg.so.80
+lib/libosgAnimation.so
+lib/libosgAnimation.so.${PKGVERSION}
+lib/libosgAnimation.so.80
+lib/libosgDB.so
+lib/libosgDB.so.${PKGVERSION}
+lib/libosgDB.so.80
+lib/libosgFX.so
+lib/libosgFX.so.${PKGVERSION}
+lib/libosgFX.so.80
+lib/libosgGA.so
+lib/libosgGA.so.${PKGVERSION}
+lib/libosgGA.so.80
+lib/libosgManipulator.so
+lib/libosgManipulator.so.${PKGVERSION}
+lib/libosgManipulator.so.80
+lib/libosgParticle.so
+lib/libosgParticle.so.${PKGVERSION}
+lib/libosgParticle.so.80
+lib/libosgPresentation.so
+lib/libosgPresentation.so.${PKGVERSION}
+lib/libosgPresentation.so.80
+lib/libosgShadow.so
+lib/libosgShadow.so.${PKGVERSION}
+lib/libosgShadow.so.80
+lib/libosgSim.so
+lib/libosgSim.so.${PKGVERSION}
+lib/libosgSim.so.80
+lib/libosgTerrain.so
+lib/libosgTerrain.so.${PKGVERSION}
+lib/libosgTerrain.so.80
+lib/libosgText.so
+lib/libosgText.so.${PKGVERSION}
+lib/libosgText.so.80
+lib/libosgUtil.so
+lib/libosgUtil.so.${PKGVERSION}
+lib/libosgUtil.so.80
+lib/libosgViewer.so
+lib/libosgViewer.so.${PKGVERSION}
+lib/libosgViewer.so.80
+lib/libosgVolume.so
+lib/libosgVolume.so.${PKGVERSION}
+lib/libosgVolume.so.80
+lib/libosgWidget.so
+lib/libosgWidget.so.${PKGVERSION}
+lib/libosgWidget.so.80
+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_deprecated_osg.so
+lib/osgPlugins-${PKGVERSION}/osgdb_deprecated_osganimation.so
+lib/osgPlugins-${PKGVERSION}/osgdb_deprecated_osgfx.so
+lib/osgPlugins-${PKGVERSION}/osgdb_deprecated_osgparticle.so
+lib/osgPlugins-${PKGVERSION}/osgdb_deprecated_osgshadow.so
+lib/osgPlugins-${PKGVERSION}/osgdb_deprecated_osgsim.so
+lib/osgPlugins-${PKGVERSION}/osgdb_deprecated_osgterrain.so
+lib/osgPlugins-${PKGVERSION}/osgdb_deprecated_osgtext.so
+lib/osgPlugins-${PKGVERSION}/osgdb_deprecated_osgviewer.so
+lib/osgPlugins-${PKGVERSION}/osgdb_deprecated_osgvolume.so
+lib/osgPlugins-${PKGVERSION}/osgdb_deprecated_osgwidget.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_gdal.so
+lib/osgPlugins-${PKGVERSION}/osgdb_geo.so
+${PLIST.x11}lib/osgPlugins-${PKGVERSION}/osgdb_gif.so
+lib/osgPlugins-${PKGVERSION}/osgdb_glsl.so
+lib/osgPlugins-${PKGVERSION}/osgdb_gz.so
+lib/osgPlugins-${PKGVERSION}/osgdb_hdr.so
+${PLIST.quartz}lib/osgPlugins-${PKGVERSION}/osgdb_imageio.so
+lib/osgPlugins-${PKGVERSION}/osgdb_ive.so
+lib/osgPlugins-${PKGVERSION}/osgdb_jp2.so
+${PLIST.x11}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_ogr.so
+lib/osgPlugins-${PKGVERSION}/osgdb_openflight.so
+lib/osgPlugins-${PKGVERSION}/osgdb_osg.so
+lib/osgPlugins-${PKGVERSION}/osgdb_osga.so
+lib/osgPlugins-${PKGVERSION}/osgdb_osgshadow.so
+lib/osgPlugins-${PKGVERSION}/osgdb_osgterrain.so
+lib/osgPlugins-${PKGVERSION}/osgdb_osgtgz.so
+lib/osgPlugins-${PKGVERSION}/osgdb_osgviewer.so
+lib/osgPlugins-${PKGVERSION}/osgdb_p3d.so
+lib/osgPlugins-${PKGVERSION}/osgdb_pic.so
+lib/osgPlugins-${PKGVERSION}/osgdb_ply.so
+${PLIST.x11}lib/osgPlugins-${PKGVERSION}/osgdb_png.so
+lib/osgPlugins-${PKGVERSION}/osgdb_pnm.so
+lib/osgPlugins-${PKGVERSION}/osgdb_pov.so
+lib/osgPlugins-${PKGVERSION}/osgdb_pvr.so
+lib/osgPlugins-${PKGVERSION}/osgdb_revisions.so
+lib/osgPlugins-${PKGVERSION}/osgdb_rgb.so
+lib/osgPlugins-${PKGVERSION}/osgdb_rot.so
+lib/osgPlugins-${PKGVERSION}/osgdb_scale.so
+lib/osgPlugins-${PKGVERSION}/osgdb_serializers_osg.so
+lib/osgPlugins-${PKGVERSION}/osgdb_serializers_osganimation.so
+lib/osgPlugins-${PKGVERSION}/osgdb_serializers_osgfx.so
+lib/osgPlugins-${PKGVERSION}/osgdb_serializers_osgmanipulator.so
+lib/osgPlugins-${PKGVERSION}/osgdb_serializers_osgparticle.so
+lib/osgPlugins-${PKGVERSION}/osgdb_serializers_osgshadow.so
+lib/osgPlugins-${PKGVERSION}/osgdb_serializers_osgsim.so
+lib/osgPlugins-${PKGVERSION}/osgdb_serializers_osgterrain.so
+lib/osgPlugins-${PKGVERSION}/osgdb_serializers_osgtext.so
+lib/osgPlugins-${PKGVERSION}/osgdb_serializers_osgvolume.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
+${PLIST.x11}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
+${PLIST.x11}lib/osgPlugins-${PKGVERSION}/osgdb_xine.so
+lib/osgPlugins-${PKGVERSION}/osgdb_zip.so
+lib/pkgconfig/openscenegraph-osg.pc
+lib/pkgconfig/openscenegraph-osgAnimation.pc
+lib/pkgconfig/openscenegraph-osgDB.pc
+lib/pkgconfig/openscenegraph-osgFX.pc
+lib/pkgconfig/openscenegraph-osgGA.pc
+lib/pkgconfig/openscenegraph-osgManipulator.pc
+lib/pkgconfig/openscenegraph-osgParticle.pc
+lib/pkgconfig/openscenegraph-osgShadow.pc
+lib/pkgconfig/openscenegraph-osgSim.pc
+lib/pkgconfig/openscenegraph-osgTerrain.pc
+lib/pkgconfig/openscenegraph-osgText.pc
+lib/pkgconfig/openscenegraph-osgUtil.pc
+lib/pkgconfig/openscenegraph-osgViewer.pc
+lib/pkgconfig/openscenegraph-osgVolume.pc
+lib/pkgconfig/openscenegraph-osgWidget.pc
+lib/pkgconfig/openscenegraph.pc
+lib/pkgconfig/openthreads.pc
diff --git a/osg/buildlink3.mk b/osg/buildlink3.mk
new file mode 100644
index 0000000..153d35e
--- /dev/null
+++ b/osg/buildlink3.mk
@@ -0,0 +1,29 @@
+# $NetBSD: buildlink3.mk,v 1.40 2015/06/30 10:02:22 ryoon Exp $
+
+BUILDLINK_TREE+=	osg
+
+.if !defined(OSG_BUILDLINK3_MK)
+OSG_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.osg+=	osg>=2.8.3
+BUILDLINK_ABI_DEPENDS.osg+=	osg>=3.0.1nb37
+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 "../../mk/jpeg.buildlink3.mk"
+.include "../../graphics/giflib/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/osg/distinfo b/osg/distinfo
new file mode 100644
index 0000000..16a8120
--- /dev/null
+++ b/osg/distinfo
@@ -0,0 +1,16 @@
+$NetBSD: distinfo,v 1.10 2015/11/03 21:34:11 agc Exp $
+
+SHA1 (OpenSceneGraph-3.0.1.zip) = 13c7e39f6d62047ad944d8d28a0f0eb60384ce33
+RMD160 (OpenSceneGraph-3.0.1.zip) = 54b315c318b7ade2bcc65703cea5f41377e93a71
+SHA512 (OpenSceneGraph-3.0.1.zip) = 5fbfe9070721f055349a27516c9a20195070d13ab562e0c5109cc1f1d46dfaf09778152a14f5815b72728d315cb80b2d7bab747bfd9be58aea22d600c2c97912
+Size (OpenSceneGraph-3.0.1.zip) = 6780282 bytes
+SHA1 (patch-ab) = 70b58b8b42af77018a09d4024afaffb874b74ddf
+SHA1 (patch-ac) = 1f237646034ca837c837e44aff753cd590c47900
+SHA1 (patch-ad) = 2a9594128e357b20f7f8146398b7cb4068aca405
+SHA1 (patch-ae) = ca2f8a6cd509a914f9b643429e8384faf476f2c8
+SHA1 (patch-af) = 9e10c217fbd53827b445feb5cbc0d9b586eeb14f
+SHA1 (patch-applications_present3D_Cluster.cpp) = 7b9dd81805322eeb1a4a26a21faa0a12c28d4b75
+SHA1 (patch-include_OpenThreads_Atomic) = 663f76cf4ffe5f52f24a1c68701c35bb8763063a
+SHA1 (patch-src_OpenThreads_common_Atomic.cpp) = 34687f53ba01832b7ea3e0b124a951efc0afe343
+SHA1 (patch-src_osgPlugins_gif_ReaderWriterGIF.cpp) = f876bbdf2fe282c6435118adbabb0823f4550fde
+SHA1 (patch-src_osgViewer_DarwinUtils.mm) = 4ab021cb797cb6959bee4ba33caf257b2a6cedf3
diff --git a/osg/patches/patch-ab b/osg/patches/patch-ab
new file mode 100644
index 0000000..5605b30
--- /dev/null
+++ b/osg/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.3 2012/03/07 16:27:35 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
+@@ -76,7 +76,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(__DragonFly__) && !defined(_LARGEFILE64_SOURCE))
+     #define stat64 stat
+ #endif
+ 
diff --git a/osg/patches/patch-ac b/osg/patches/patch-ac
new file mode 100644
index 0000000..e637ece
--- /dev/null
+++ b/osg/patches/patch-ac
@@ -0,0 +1,34 @@
+$NetBSD: patch-ac,v 1.2 2012/03/07 16:27:35 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>
+ 
+@@ -207,14 +207,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/osg/patches/patch-ad b/osg/patches/patch-ad
new file mode 100644
index 0000000..90fe559
--- /dev/null
+++ b/osg/patches/patch-ad
@@ -0,0 +1,57 @@
+$NetBSD: patch-ad,v 1.2 2012/03/07 16:27:35 adam Exp $
+
+--- src/OpenThreads/pthreads/PThread.cpp.orig	2011-06-23 20:09:26.000000000 +0000
++++ src/OpenThreads/pthreads/PThread.cpp
+@@ -135,6 +135,15 @@ private:
+         {
+ #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 );
+@@ -565,6 +574,18 @@ int Thread::setProcessorAffinity(unsigne
+     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)
+@@ -1030,7 +1051,16 @@ int OpenThreads::SetProcessorAffinityOfC
+     }
+     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/osg/patches/patch-ae b/osg/patches/patch-ae
new file mode 100644
index 0000000..7c88735
--- /dev/null
+++ b/osg/patches/patch-ae
@@ -0,0 +1,19 @@
+$NetBSD: patch-ae,v 1.2 2012/03/07 16:27:35 adam Exp $
+
+PkgSrc does not use lib64.
+
+--- CMakeLists.txt.orig	2011-07-31 07:50:34.000000000 +0000
++++ CMakeLists.txt
+@@ -586,12 +586,6 @@ IF(CYGWIN)
+   SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -D_DEBUG")
+ ENDIF()
+ 
+-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()
+-ENDIF()
+ IF(NOT DEFINED LIB_POSTFIX)
+     SET(LIB_POSTFIX "")
+ ENDIF()
diff --git a/osg/patches/patch-af b/osg/patches/patch-af
new file mode 100644
index 0000000..bba23f0
--- /dev/null
+++ b/osg/patches/patch-af
@@ -0,0 +1,19 @@
+$NetBSD: patch-af,v 1.1 2012/03/26 12:00:33 drochner Exp $
+
+--- src/osgPlugins/xine/video_out_rgb.c.orig	2009-11-20 11:46:20.000000000 +0000
++++ src/osgPlugins/xine/video_out_rgb.c
+@@ -2769,8 +2769,14 @@ init_class(xine_t* xine, void* vo_visual
+ 	clear(rgb_class, sizeof(rgbout_class_t));
+ 
+ 	rgb_class->driver_class.open_plugin     = open_plugin;
++#if XINE_MAJOR_VERSION < 1 || (XINE_MAJOR_VERSION == 1 && XINE_MINOR_VERSION < 2)
+ 	rgb_class->driver_class.get_identifier  = get_identifier;
+ 	rgb_class->driver_class.get_description = get_description;
++#else
++	rgb_class->driver_class.identifier  = get_identifier(NULL);
++	rgb_class->driver_class.description = get_description(NULL);
++#endif
++
+ 	rgb_class->driver_class.dispose         = dispose_class;
+ 
+ 	return(rgb_class);
diff --git a/osg/patches/patch-applications_present3D_Cluster.cpp b/osg/patches/patch-applications_present3D_Cluster.cpp
new file mode 100644
index 0000000..acba820
--- /dev/null
+++ b/osg/patches/patch-applications_present3D_Cluster.cpp
@@ -0,0 +1,30 @@
+$NetBSD: patch-applications_present3D_Cluster.cpp,v 1.2 2012/05/20 19:28:19 marino Exp $
+
+Support more platforms.
+
+--- applications/present3D/Cluster.cpp.orig	2012-03-05 16:33:33.000000000 +0000
++++ applications/present3D/Cluster.cpp
+@@ -33,9 +33,12 @@
+ #if defined(__linux)
+     #include <unistd.h>
+     #include <linux/sockios.h>
+-#elif defined(__FreeBSD__)
++#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+     #include <unistd.h>
+     #include <sys/sockio.h>
++#elif defined(__DragonFly__)
++    #include <unistd.h>
++    #include <sys/sockio.h>
+ #elif defined(__sgi)
+     #include <unistd.h>
+     #include <net/soioctl.h>
+@@ -336,7 +339,8 @@ void Receiver::sync( void )
+         return;
+     }
+ 
+-#if defined(__linux) || defined(__FreeBSD__) || defined( __APPLE__ )
++#if defined(__linux) || defined(__FreeBSD__) || defined( __APPLE__ ) \
++ || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
+     socklen_t 
+ #else
+     int
diff --git a/osg/patches/patch-include_OpenThreads_Atomic b/osg/patches/patch-include_OpenThreads_Atomic
new file mode 100644
index 0000000..9f0a9a7
--- /dev/null
+++ b/osg/patches/patch-include_OpenThreads_Atomic
@@ -0,0 +1,15 @@
+$NetBSD: patch-include_OpenThreads_Atomic,v 1.1 2012/03/07 16:27:35 adam Exp $
+
+Fix C error.
+
+--- include/OpenThreads/Atomic.orig	2012-03-06 16:27:45.000000000 +0000
++++ include/OpenThreads/Atomic
+@@ -241,7 +241,7 @@ _OPENTHREADS_ATOMIC_INLINE bool
+ AtomicPtr::assign(void* ptrNew, const void* const ptrOld)
+ {
+ #if defined(_OPENTHREADS_ATOMIC_USE_GCC_BUILTINS)
+-    return __sync_bool_compare_and_swap(&_ptr, ptrOld, ptrNew);
++    return __sync_bool_compare_and_swap(&_ptr, (void *)ptrOld, ptrNew);
+ #elif defined(_OPENTHREADS_ATOMIC_USE_MIPOSPRO_BUILTINS)
+     return __compare_and_swap((unsigned long*)&_ptr, (unsigned long)ptrOld, (unsigned long)ptrNew);
+ #elif defined(_OPENTHREADS_ATOMIC_USE_SUN)
diff --git a/osg/patches/patch-src_OpenThreads_common_Atomic.cpp b/osg/patches/patch-src_OpenThreads_common_Atomic.cpp
new file mode 100644
index 0000000..bc6e5c1
--- /dev/null
+++ b/osg/patches/patch-src_OpenThreads_common_Atomic.cpp
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_OpenThreads_common_Atomic.cpp,v 1.1 2012/03/07 16:27:35 adam Exp $
+
+Fix C error.
+
+--- src/OpenThreads/common/Atomic.cpp.orig	2012-03-05 21:26:31.000000000 +0000
++++ src/OpenThreads/common/Atomic.cpp
+@@ -143,7 +143,7 @@ bool
+ AtomicPtr::assign(void* ptrNew, const void* const ptrOld)
+ {
+ #if defined(_OPENTHREADS_ATOMIC_USE_GCC_BUILTINS)
+-    return __sync_bool_compare_and_swap(&_ptr, ptrOld, ptrNew);
++    return __sync_bool_compare_and_swap(&_ptr, (void *)ptrOld, ptrNew);
+ #elif defined(_OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED)
+     return ptrOld == InterlockedCompareExchangePointer((PVOID volatile*)&_ptr, (PVOID)ptrNew, (PVOID)ptrOld);
+ #elif defined(_OPENTHREADS_ATOMIC_USE_BSD_ATOMIC)
diff --git a/osg/patches/patch-src_osgPlugins_gif_ReaderWriterGIF.cpp b/osg/patches/patch-src_osgPlugins_gif_ReaderWriterGIF.cpp
new file mode 100644
index 0000000..3124188
--- /dev/null
+++ b/osg/patches/patch-src_osgPlugins_gif_ReaderWriterGIF.cpp
@@ -0,0 +1,30 @@
+$NetBSD: patch-src_osgPlugins_gif_ReaderWriterGIF.cpp,v 1.2 2014/05/23 13:45:07 obache Exp $
+
+* GIFLIB 5.x API change 
+
+--- src/osgPlugins/gif/ReaderWriterGIF.cpp.orig	2011-05-05 12:39:35.000000000 +0000
++++ src/osgPlugins/gif/ReaderWriterGIF.cpp
+@@ -370,7 +370,11 @@ GifImageStream** obj)
+     int interlacedoffset[] = { 0, 4, 2, 1 };
+     int interlacedjumps[] = { 8, 8, 4, 2 };
+ 
++#if GIFLIB_MAJOR >= 5
++    giffile = DGifOpen(&fin,gif_read_stream, NULL);
++#else
+     giffile = DGifOpen(&fin,gif_read_stream);
++#endif
+     if (!giffile)
+     {
+         giferror = ERR_OPEN;
+@@ -557,7 +561,11 @@ GifImageStream** obj)
+     *width_ret = giffile->SWidth;
+     *height_ret = giffile->SHeight;
+     *numComponents_ret = 4;
++#if GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1 || GIFLIB_MAJOR > 5
++    DGifCloseFile(giffile, NULL);
++#else
+     DGifCloseFile(giffile);
++#endif
+     return buffer;
+ }
+ 
diff --git a/osg/patches/patch-src_osgViewer_DarwinUtils.mm b/osg/patches/patch-src_osgViewer_DarwinUtils.mm
new file mode 100644
index 0000000..14b0faf
--- /dev/null
+++ b/osg/patches/patch-src_osgViewer_DarwinUtils.mm
@@ -0,0 +1,37 @@
+$NetBSD: patch-src_osgViewer_DarwinUtils.mm,v 1.1 2012/03/07 16:27:35 adam Exp $
+
+Work around depreciated API.
+
+--- src/osgViewer/DarwinUtils.mm.orig	2012-03-06 14:49:28.000000000 +0000
++++ src/osgViewer/DarwinUtils.mm
+@@ -313,7 +313,11 @@ void DarwinWindowingSystemInterface::get
+     CGDirectDisplayID id = getDisplayID(si);
+     resolution.width = CGDisplayPixelsWide(id);
+     resolution.height = CGDisplayPixelsHigh(id);
+-    resolution.colorDepth = CGDisplayBitsPerPixel(id);
++    CGDisplayModeRef displayMode = CGDisplayCopyDisplayMode(id);
++    CFStringRef pixelEncoding = CGDisplayModeCopyPixelEncoding(displayMode);
++    CGDisplayModeRelease(displayMode);
++    resolution.colorDepth = CFStringGetLength(pixelEncoding);
++    CFRelease(pixelEncoding);
+     resolution.refreshRate = getDictDouble (CGDisplayCurrentMode(id), kCGDisplayRefreshRate);        // Not tested
+     if (resolution.refreshRate<0) resolution.refreshRate = 0;
+ }
+@@ -402,7 +406,7 @@ bool DarwinWindowingSystemInterface::set
+     CFDictionaryRef display_mode_values =
+         CGDisplayBestModeForParametersAndRefreshRate(
+                         displayid, 
+-                        CGDisplayBitsPerPixel(displayid), 
++                        32, 
+                         width, height,  
+                         refresh,  
+                         NULL);
+@@ -432,7 +436,7 @@ bool DarwinWindowingSystemInterface::set
+     CFDictionaryRef display_mode_values =
+         CGDisplayBestModeForParametersAndRefreshRate(
+                         displayid, 
+-                        CGDisplayBitsPerPixel(displayid), 
++                        32, 
+                         width, height,  
+                         refreshRate,  
+                         &success);



Home | Main Index | Thread Index | Old Index