pkgsrc-WIP-changes archive

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

osg: make this work on NetBSD



Module Name:	pkgsrc-wip
Committed By:	Nia Alarie <nia.alarie%gmail.com@localhost>
Pushed By:	nee
Date:		Sat May 20 16:30:11 2017 +0100
Changeset:	9079376cce98eb3dea7caaacf371c9fe4bb1a772

Modified Files:
	osg/Makefile
	osg/distinfo
Added Files:
	osg/patches/patch-src_osg_GLExtensions.cpp

Log Message:
osg: make this work on NetBSD

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

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

diffstat:
 osg/Makefile                               |  2 ++
 osg/distinfo                               |  1 +
 osg/patches/patch-src_osg_GLExtensions.cpp | 15 +++++++++++++++
 3 files changed, 18 insertions(+)

diffs:
diff --git a/osg/Makefile b/osg/Makefile
index 8da4d724c0..dcc7b1a7ce 100644
--- a/osg/Makefile
+++ b/osg/Makefile
@@ -19,6 +19,8 @@ PKGCONFIG_OVERRIDE+=	packaging/pkgconfig/openthreads.pc.in
 
 CMAKE_ARGS+=		-DCMAKE_BUILD_TYPE=Release
 
+CXXFLAGS+=	-D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS
+
 PLIST_VARS+=	quartz x11
 
 .include "../../mk/bsd.prefs.mk"
diff --git a/osg/distinfo b/osg/distinfo
index c4ad09f939..9204e321a4 100644
--- a/osg/distinfo
+++ b/osg/distinfo
@@ -10,3 +10,4 @@ SHA1 (patch-ae) = ca2f8a6cd509a914f9b643429e8384faf476f2c8
 SHA1 (patch-applications_present3D_Cluster.cpp) = ccbc1d524562d6f655a38c0ea3ff4c9549718be2
 SHA1 (patch-src_osgPlugins_osc_ip_posix_NetworkingUtils.cpp) = 5748636ed17d23a0a595d38b2b392e773840a102
 SHA1 (patch-src_osgPlugins_osc_osc_OscHostEndianness.h) = d8e9efa88898e240775ead76c5c9df4c86cd562c
+SHA1 (patch-src_osg_GLExtensions.cpp) = 5fc04fa162c5cf8aa34ddfb0152092b02e8eec08
diff --git a/osg/patches/patch-src_osg_GLExtensions.cpp b/osg/patches/patch-src_osg_GLExtensions.cpp
new file mode 100644
index 0000000000..7ad2e95e96
--- /dev/null
+++ b/osg/patches/patch-src_osg_GLExtensions.cpp
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Support NetBSD.
+
+--- src/osg/GLExtensions.cpp.orig	2017-04-03 10:44:31.000000000 +0000
++++ src/osg/GLExtensions.cpp
+@@ -378,7 +378,7 @@ OSG_INIT_SINGLETON_PROXY(GLExtensionDisa
+         static void *handle = dlopen((const char *)0L, RTLD_LAZY);
+         return dlsym(handle, funcName);
+ 
+-    #elif defined (__FreeBSD__)
++    #elif defined (__FreeBSD__) || defined (__NetBSD__)
+ 
+         return dlsym( RTLD_DEFAULT, funcName );
+ 


Home | Main Index | Thread Index | Old Index