pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics/glfw glfw: Update to 3.3.2



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cc2511453019
branches:  trunk
changeset: 413378:cc2511453019
user:      nia <nia%pkgsrc.org@localhost>
date:      Thu Mar 19 11:23:53 2020 +0000

description:
glfw: Update to 3.3.2

This is a primarily a bug fix release. It improves Vulkan support on macOS with VK_EXT_metal_surface support and better run-time loading, and adds fixes for issues on Windows, macOS and X11.

diffstat:

 graphics/glfw/Makefile      |  25 ++++++++++---------------
 graphics/glfw/PLIST         |   4 ++--
 graphics/glfw/buildlink3.mk |  28 +++++++++++++++++-----------
 graphics/glfw/distinfo      |  10 +++++-----
 graphics/glfw/options.mk    |  34 ++++++++++++++++++++++++++++++++++
 5 files changed, 68 insertions(+), 33 deletions(-)

diffs (155 lines):

diff -r f5b2acb6329b -r cc2511453019 graphics/glfw/Makefile
--- a/graphics/glfw/Makefile    Thu Mar 19 10:52:11 2020 +0000
+++ b/graphics/glfw/Makefile    Thu Mar 19 11:23:53 2020 +0000
@@ -1,12 +1,12 @@
-# $NetBSD: Makefile,v 1.6 2019/12/21 23:42:35 joerg Exp $
+# $NetBSD: Makefile,v 1.7 2020/03/19 11:23:53 nia Exp $
 
-DISTNAME=      glfw-3.3
+DISTNAME=      glfw-3.3.2
 CATEGORIES=    graphics
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=glfw/}
 
 MAINTAINER=    ryo_on%yk.rim.or.jp@localhost
 HOMEPAGE=      https://www.glfw.org/
-COMMENT=       GLFW is a free, Open Source, multi-platform library of OpenGL
+COMMENT=       Free, portable framework for OpenGL application development
 LICENSE=       zlib
 
 USE_CMAKE=     yes
@@ -14,17 +14,12 @@
 
 CMAKE_ARGS+=   -DBUILD_SHARED_LIBS=ON
 CMAKE_ARGS+=   -DGLFW_BUILD_DOCS=OFF
+CMAKE_ARGS+=   -DGLFW_BUILD_EXAMPLES=OFF
 
-.include "../../graphics/glu/buildlink3.mk"
-.include "../../graphics/MesaLib/buildlink3.mk"
-.include "../../x11/libICE/buildlink3.mk"
-.include "../../x11/libX11/buildlink3.mk"
-.include "../../x11/libXext/buildlink3.mk"
-.include "../../x11/libXcursor/buildlink3.mk"
-.include "../../x11/libXi/buildlink3.mk"
-.include "../../x11/libXinerama/buildlink3.mk"
-.include "../../x11/libXrandr/buildlink3.mk"
-.include "../../x11/libxkbcommon/buildlink3.mk"
-.include "../../mk/dlopen.buildlink3.mk"
-.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.fast.prefs.mk"
+.if ${OPSYS} != "Darwin"
+.  include "options.mk"
+.  include "../../graphics/MesaLib/buildlink3.mk"
+.  include "../../graphics/glu/buildlink3.mk"
+.endif
 .include "../../mk/bsd.pkg.mk"
diff -r f5b2acb6329b -r cc2511453019 graphics/glfw/PLIST
--- a/graphics/glfw/PLIST       Thu Mar 19 10:52:11 2020 +0000
+++ b/graphics/glfw/PLIST       Thu Mar 19 11:23:53 2020 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2019/10/06 11:32:18 nia Exp $
+@comment $NetBSD: PLIST,v 1.4 2020/03/19 11:23:53 nia Exp $
 include/GLFW/glfw3.h
 include/GLFW/glfw3native.h
 lib/cmake/glfw3/glfw3Config.cmake
@@ -7,5 +7,5 @@
 lib/cmake/glfw3/glfw3Targets.cmake
 lib/libglfw.so
 lib/libglfw.so.3
-lib/libglfw.so.${PKGVERSION}
+lib/libglfw.so.3.3
 lib/pkgconfig/glfw3.pc
diff -r f5b2acb6329b -r cc2511453019 graphics/glfw/buildlink3.mk
--- a/graphics/glfw/buildlink3.mk       Thu Mar 19 10:52:11 2020 +0000
+++ b/graphics/glfw/buildlink3.mk       Thu Mar 19 11:23:53 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.1 2016/02/04 11:38:10 leot Exp $
+# $NetBSD: buildlink3.mk,v 1.2 2020/03/19 11:23:53 nia Exp $
 
 BUILDLINK_TREE+=       glfw
 
@@ -8,16 +8,22 @@
 BUILDLINK_API_DEPENDS.glfw+=   glfw>=3.1.2
 BUILDLINK_PKGSRCDIR.glfw?=     ../../graphics/glfw
 
-.include "../../graphics/glu/buildlink3.mk"
-.include "../../graphics/MesaLib/buildlink3.mk"
-.include "../../x11/libICE/buildlink3.mk"
-.include "../../x11/libX11/buildlink3.mk"
-.include "../../x11/libXext/buildlink3.mk"
-.include "../../x11/libXinerama/buildlink3.mk"
-.include "../../x11/libXrandr/buildlink3.mk"
-.include "../../x11/libxkbcommon/buildlink3.mk"
-.include "../../mk/dlopen.buildlink3.mk"
-.include "../../mk/pthread.buildlink3.mk"
+pkgbase:= glfw
+
+.include "../../mk/pkg-build-options.mk"
+
+.if !empty(PKG_BUILD_OPTIONS.glfw:Mx11)
+.  include "../../x11/libX11/buildlink3.mk"
+.  include "../../x11/libXrandr/buildlink3.mk"
+.endif
+
+.include "../../mk/bsd.fast.prefs.mk"
+
+.if ${OPSYS} != "Darwin"
+.  include "../../graphics/MesaLib/buildlink3.mk"
+.  include "../../graphics/glu/buildlink3.mk"
+.endif
+
 .endif # GLFW_BUILDLINK3_MK
 
 BUILDLINK_TREE+=       -glfw
diff -r f5b2acb6329b -r cc2511453019 graphics/glfw/distinfo
--- a/graphics/glfw/distinfo    Thu Mar 19 10:52:11 2020 +0000
+++ b/graphics/glfw/distinfo    Thu Mar 19 11:23:53 2020 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.3 2019/10/06 11:32:18 nia Exp $
+$NetBSD: distinfo,v 1.4 2020/03/19 11:23:53 nia Exp $
 
-SHA1 (glfw-3.3.tar.gz) = 0ac684c93a675c4b59ea53589709e186990e700d
-RMD160 (glfw-3.3.tar.gz) = fcd42ec35756bf37e2416e0cabe0caceed568fa8
-SHA512 (glfw-3.3.tar.gz) = e74bb7ba0c1c3a524a193c4fb5a2d13ba0e75f8e309612ea19cdcc944859d6e2fe29d8b2e3db76236e1011b637564ddd5f4a176dcccfeb84d09bda060f08f774
-Size (glfw-3.3.tar.gz) = 758352 bytes
+SHA1 (glfw-3.3.2.tar.gz) = c3eea7eb56b1f316da3d18a907d6fd370cfa8d5d
+RMD160 (glfw-3.3.2.tar.gz) = 8ac4d29c5087ee61c1b835115aad102245acd2ca
+SHA512 (glfw-3.3.2.tar.gz) = f5af749d33b5b900ccf07988ad0bf51bd766a18e4cf2bc2a76020c88e98a2528ff1b965224184fe0d290cfe34b1af1e6f633600660d81194fe354078e2f35c56
+Size (glfw-3.3.2.tar.gz) = 759972 bytes
diff -r f5b2acb6329b -r cc2511453019 graphics/glfw/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/glfw/options.mk  Thu Mar 19 11:23:53 2020 +0000
@@ -0,0 +1,34 @@
+# $NetBSD: options.mk,v 1.1 2020/03/19 11:23:53 nia Exp $
+
+PKG_OPTIONS_VAR=               PKG_OPTIONS.glfw
+
+.include "../../mk/bsd.fast.prefs.mk"
+
+PKG_OPTIONS_REQUIRED_GROUPS=   context
+# wayland currently broken...
+#PKG_OPTIONS_GROUP.context=    osmesa wayland x11
+PKG_OPTIONS_GROUP.context=     osmesa x11
+PKG_SUGGESTED_OPTIONS=         x11
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mosmesa)
+CMAKE_ARGS+=   -DGLFW_USE_OSMESA=ON
+.endif
+
+.if !empty(PKG_OPTIONS:Mwayland)
+CMAKE_ARGS+=   -DGLFW_USE_WAYLAND=ON
+.  include "../../devel/wayland/buildlink3.mk"
+.  include "../../devel/wayland-protocols/buildlink3.mk"
+.  include "../../x11/libxkbcommon/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mx11)
+.  include "../../x11/libICE/buildlink3.mk"
+.  include "../../x11/libXcursor/buildlink3.mk"
+.  include "../../x11/libXi/buildlink3.mk"
+.  include "../../x11/libXinerama/buildlink3.mk"
+.  include "../../x11/libXrandr/buildlink3.mk"
+.  include "../../x11/libXxf86vm/buildlink3.mk"
+.  include "../../x11/libxkbcommon/buildlink3.mk"
+.endif



Home | Main Index | Thread Index | Old Index