diff options
author | leot <leot> | 2016-02-04 11:38:10 +0000 |
---|---|---|
committer | leot <leot> | 2016-02-04 11:38:10 +0000 |
commit | 01339661edf29c3efb99085ef5ca4daeff99f2a4 (patch) | |
tree | f4f6e428acd75c62fe5ce7a3572b57ddd71ff43c /graphics/glfw | |
parent | 6b274a265ef3eec8f095bd614e56943d057e8af4 (diff) | |
download | pkgsrc-01339661edf29c3efb99085ef5ca4daeff99f2a4.tar.gz |
Import glfw-3.1.2 as graphics/glfw.
Originally packaged in pkgsrc-wip by ryoon@ and then updated by nros@ and
myself.
GLFW is a free, Open Source, multi-platform library for creating
OpenGL contexts and managing input, including keyboard, mouse,
joystick and time. It is intended to be simple to integrate into
existing applications and does not lay claim to the main loop.
GLFW has native support for Windows, Mac OS X and many Unix-like
systems using the X Window System, such as Linux and FreeBSD.
GLFW is licensed under the zlib/libpng license.
Diffstat (limited to 'graphics/glfw')
-rw-r--r-- | graphics/glfw/DESCR | 9 | ||||
-rw-r--r-- | graphics/glfw/Makefile | 38 | ||||
-rw-r--r-- | graphics/glfw/PLIST | 11 | ||||
-rw-r--r-- | graphics/glfw/buildlink3.mk | 23 | ||||
-rw-r--r-- | graphics/glfw/distinfo | 6 |
5 files changed, 87 insertions, 0 deletions
diff --git a/graphics/glfw/DESCR b/graphics/glfw/DESCR new file mode 100644 index 00000000000..a3ddfb4d42e --- /dev/null +++ b/graphics/glfw/DESCR @@ -0,0 +1,9 @@ +GLFW is a free, Open Source, multi-platform library for creating +OpenGL contexts and managing input, including keyboard, mouse, +joystick and time. It is intended to be simple to integrate into +existing applications and does not lay claim to the main loop. + +GLFW has native support for Windows, Mac OS X and many Unix-like +systems using the X Window System, such as Linux and FreeBSD. + +GLFW is licensed under the zlib/libpng license. diff --git a/graphics/glfw/Makefile b/graphics/glfw/Makefile new file mode 100644 index 00000000000..8f079b79e9e --- /dev/null +++ b/graphics/glfw/Makefile @@ -0,0 +1,38 @@ +# $NetBSD: Makefile,v 1.1 2016/02/04 11:38:10 leot Exp $ +# + +DISTNAME= glfw-3.1.2 +CATEGORIES= graphics +MASTER_SITES= ${MASTER_SITE_GITHUB:=glfw/} + +MAINTAINER= ryo_on@yk.rim.or.jp +HOMEPAGE= http://www.glfw.org/ +COMMENT= GLFW is a free, Open Source, multi-platform library of OpenGL +LICENSE= zlib + +USE_CMAKE= yes +USE_TOOLS+= pkg-config + +CMAKE_ARGS+= -DBUILD_SHARED_LIBS=ON +CMAKE_ARGS+= -DGLFW_BUILD_DOCS=OFF + +# Problem reported and fixed (differently) upstream: +# https://github.com/glfw/glfw/issues/646 +# It will not be needed for the next release. +SUBST_CLASSES+= soname +SUBST_STAGE.soname= pre-configure +SUBST_MESSAGE.soname= Avoid hardcoded libGL.so +SUBST_FILES.soname= src/glx_context.c +SUBST_SED.soname= -e '/soname/ s/libGL\.so\.1/libGL.so/' + +.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" +.include "../../mk/bsd.pkg.mk" diff --git a/graphics/glfw/PLIST b/graphics/glfw/PLIST new file mode 100644 index 00000000000..39a65442359 --- /dev/null +++ b/graphics/glfw/PLIST @@ -0,0 +1,11 @@ +@comment $NetBSD: PLIST,v 1.1 2016/02/04 11:38:10 leot Exp $ +include/GLFW/glfw3.h +include/GLFW/glfw3native.h +lib/cmake/glfw/glfw3Config.cmake +lib/cmake/glfw/glfw3ConfigVersion.cmake +lib/cmake/glfw/glfwTargets-noconfig.cmake +lib/cmake/glfw/glfwTargets.cmake +lib/libglfw.so +lib/libglfw.so.3 +lib/libglfw.so.3.1 +lib/pkgconfig/glfw3.pc diff --git a/graphics/glfw/buildlink3.mk b/graphics/glfw/buildlink3.mk new file mode 100644 index 00000000000..97d9ca5fa2c --- /dev/null +++ b/graphics/glfw/buildlink3.mk @@ -0,0 +1,23 @@ +# $NetBSD: buildlink3.mk,v 1.1 2016/02/04 11:38:10 leot Exp $ + +BUILDLINK_TREE+= glfw + +.if !defined(GLFW_BUILDLINK3_MK) +GLFW_BUILDLINK3_MK:= + +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" +.endif # GLFW_BUILDLINK3_MK + +BUILDLINK_TREE+= -glfw diff --git a/graphics/glfw/distinfo b/graphics/glfw/distinfo new file mode 100644 index 00000000000..fb266f2ba7e --- /dev/null +++ b/graphics/glfw/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2016/02/04 11:38:10 leot Exp $ + +SHA1 (glfw-3.1.2.tar.gz) = 3033c604e3109c59cf04918bc473268fe18c828b +RMD160 (glfw-3.1.2.tar.gz) = c149915bb724f99bde579da153c192163b9e6cc7 +SHA512 (glfw-3.1.2.tar.gz) = 07e8dcc2623fa87558f44e8a01e0f12c0fbbf8b67798337a500c8208ebebedfb545156feb11cba16fa6a4ae1ef0ae21c7ebf934791e4f62a953b727c48f9d150 +Size (glfw-3.1.2.tar.gz) = 461929 bytes |