Bug 179605 - [NEW PORT] graphics/glfw3: Portable framework for OpenGL development
Summary: [NEW PORT] graphics/glfw3: Portable framework for OpenGL development
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Rusmir Dusko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-16 04:50 UTC by nemysis
Modified: 2013-10-06 10:58 UTC (History)
0 users

See Also:


Attachments
file.shar (3.79 KB, text/plain)
2013-06-16 04:50 UTC, nemysis
no flags Details
glfw3.shar (3.80 KB, application/x-shar)
2013-06-19 15:43 UTC, nemysis
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description nemysis 2013-06-16 04:50:00 UTC
GLFW is a free, Open Source, portable library for OpenGL and OpenGL ES
application development.  It provides a simple, platform-independent API for
creating windows and contexts, reading input, handling events, etc.

Version 3.0 brings a new API with many new features such as multiple windows
and contexts, multi-monitor support, EGL and OpenGL ES support, clipboard text
support, an error description callback, gamma ramp control, layout-independent
keyboard input and UTF-8 for all strings.

WWW: http://www.glfw.org/

Fix: Please add attachment as graphics/glfw3

Shar is also here

https://github.com/nemysis/FreeBSD_Ports/blob/master/pr/graphics/glfw3.shar

Patch attached with submission follows:
How-To-Repeat: No conflicts with graphics/glfw because is used

DOCSDIR=        ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}

EXAMPLESDIR=    ${PREFIX}/share/examples/${PORTNAME}${PKGNAMESUFFIX}


Moving from GLFW 2 to 3

http://www.glfw.org/docs/3.0/moving.html


Build log

https://redports.org/buildarchive/20130616021200-62027/
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-06-16 04:50:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->beech

beech@ wants this submitter's PRs (via the GNATS Auto Assign Tool)
Comment 2 nemysis 2013-06-19 15:43:17 UTC
- Update to 3.0.1
Comment 3 Martin Wilke freebsd_committer freebsd_triage 2013-08-14 10:33:13 UTC
Responsible Changed
From-To: beech->nemysis

submitter is now committer.
Comment 4 dfilter service freebsd_committer freebsd_triage 2013-10-06 10:47:36 UTC
Author: nemysis
Date: Sun Oct  6 09:47:11 2013
New Revision: 329545
URL: http://svnweb.freebsd.org/changeset/ports/329545

Log:
  GLFW is a free, Open Source, portable library for OpenGL and OpenGL ES
  application development.  It provides a simple, platform-independent API for
  creating windows and contexts, reading input, handling events, etc.
  
  Version 3.0 brings a new API with many new features such as multiple windows
  and contexts, multi-monitor support, EGL and OpenGL ES support, clipboard text
  support, an error description callback, gamma ramp control, layout-independent
  keyboard input and UTF-8 for all strings.
  
  WWW: http://www.glfw.org/
  
  PR:		ports/179605
  Submitted by:	nemysis (self)
  Approved by:	wg/pawel (mentors)

Added:
  head/graphics/glfw-devel/
  head/graphics/glfw-devel/Makefile   (contents, props changed)
  head/graphics/glfw-devel/distinfo   (contents, props changed)
  head/graphics/glfw-devel/pkg-descr   (contents, props changed)
  head/graphics/glfw-devel/pkg-plist   (contents, props changed)
Modified:
  head/graphics/Makefile

Modified: head/graphics/Makefile
==============================================================================
--- head/graphics/Makefile	Sun Oct  6 09:30:36 2013	(r329544)
+++ head/graphics/Makefile	Sun Oct  6 09:47:11 2013	(r329545)
@@ -280,6 +280,7 @@
     SUBDIR += glew
     SUBDIR += glexcess
     SUBDIR += glfw
+    SUBDIR += glfw-devel
     SUBDIR += glide3
     SUBDIR += glitz
     SUBDIR += gliv

Added: head/graphics/glfw-devel/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/glfw-devel/Makefile	Sun Oct  6 09:47:11 2013	(r329545)
@@ -0,0 +1,67 @@
+# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	glfw
+PORTVERSION=	3.0.3
+CATEGORIES=	graphics
+MASTER_SITES=	SF
+PKGNAMESUFFIX=	-devel
+
+MAINTAINER=	nemysis@FreeBSD.org
+COMMENT=	Portable framework for OpenGL development
+
+LICENSE=	ZLIB
+
+USES=		cmake
+USE_XORG=	xi xrandr
+USE_GL=		glu
+USE_LDCONFIG=	yes
+USE_GCC=	4.6+
+
+CPPFLAGS+=	-I${LOCALBASE}/include
+LDFLAGS+=	-L${LOCALBASE}/lib
+
+PORTDOCS=	*
+
+DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
+
+DOCSRCDIR1=	${WRKSRC}
+DOC_FILES1=	README.md
+
+DOCSRCDIR2=	${WRKSRC}/docs/html/search
+DOCSDIR2=	${DOCSDIR}/docs/html/search
+DOC_FILES2=	*
+
+DOCSRCDIR3=	${WRKSRC}/docs/html
+DOCSDIR3=	${DOCSDIR}/docs/html
+DOC_FILES3=	*.html *.png *.css *.js
+
+PORTEXAMPLES=	*
+
+EXAMPLESDIR=	${PREFIX}/share/examples/${PORTNAME}${PKGNAMESUFFIX}
+
+EXAMPLESSRCDIR1=	${WRKSRC}/examples
+EXAMPLES_FILES1=	boing gears heightmap simple splitview wave
+
+EXAMPLESSRCDIR2=	${WRKSRC}/tests
+EXAMPLESDIR2=		${EXAMPLESDIR}/tests
+EXAMPLES_FILES2=	accuracy clipboard defaults events fsaa  gamma glfwinfo iconify \
+			joysticks modes peter reopen sharing tearing threads title windows
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|lib$${LIB_SUFFIX}/pkgconfig|libdata/pkgconfig|' \
+		${WRKSRC}/CMakeLists.txt
+
+post-install:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR2}
+	${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2}
+	${INSTALL_DATA} ${DOC_FILES3:S|^|${DOCSRCDIR3}/|} ${STAGEDIR}${DOCSDIR3}
+
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_PROGRAM} ${EXAMPLES_FILES1:S|^|${EXAMPLESSRCDIR1}/|} ${STAGEDIR}${EXAMPLESDIR}
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR2}
+	${INSTALL_PROGRAM} ${EXAMPLES_FILES2:S|^|${EXAMPLESSRCDIR2}/|} ${STAGEDIR}${EXAMPLESDIR2}
+
+.include <bsd.port.mk>

Added: head/graphics/glfw-devel/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/glfw-devel/distinfo	Sun Oct  6 09:47:11 2013	(r329545)
@@ -0,0 +1,2 @@
+SHA256 (glfw-3.0.3.tar.gz) = 51751b7a0df6e848fe941383ba9df10619be4534cb05d1bd9de03b75ac1c513d
+SIZE (glfw-3.0.3.tar.gz) = 577736

Added: head/graphics/glfw-devel/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/glfw-devel/pkg-descr	Sun Oct  6 09:47:11 2013	(r329545)
@@ -0,0 +1,10 @@
+GLFW is a free, Open Source, portable library for OpenGL and OpenGL ES
+application development.  It provides a simple, platform-independent API for
+creating windows and contexts, reading input, handling events, etc.
+
+Version 3.0 brings a new API with many new features such as multiple windows
+and contexts, multi-monitor support, EGL and OpenGL ES support, clipboard text
+support, an error description callback, gamma ramp control, layout-independent
+keyboard input and UTF-8 for all strings.
+
+WWW: http://www.glfw.org/

Added: head/graphics/glfw-devel/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/glfw-devel/pkg-plist	Sun Oct  6 09:47:11 2013	(r329545)
@@ -0,0 +1,11 @@
+include/GLFW/glfw3.h
+include/GLFW/glfw3native.h
+lib/cmake/glfw/glfwConfig.cmake
+lib/cmake/glfw/glfwConfigVersion.cmake
+lib/cmake/glfw/glfwTargets-release.cmake
+lib/cmake/glfw/glfwTargets.cmake
+lib/libglfw3.a
+libdata/pkgconfig/glfw3.pc
+@dirrm lib/cmake/glfw
+@dirrmtry lib/cmake
+@dirrm include/GLFW
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 5 Rusmir Dusko freebsd_committer freebsd_triage 2013-10-06 10:58:25 UTC
State Changed
From-To: open->closed

New port added. Thanks!