Bug 179602 - [MAINTAINER] graphics/glfw: Add Portscout
Summary: [MAINTAINER] graphics/glfw: Add Portscout
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 01:30 UTC by nemysis
Modified: 2013-10-07 00:50 UTC (History)
1 user (show)

See Also:


Attachments
glfw-2.7.9.patch (466 bytes, patch)
2013-06-16 01:30 UTC, nemysis
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description nemysis 2013-06-16 01:30:00 UTC
- Add Portscout

Generated with FreeBSD Port Tools 0.99_7 (mode: change, diff: ports)

How-To-Repeat: 
Moving from GLFW 2 to 3

http://www.glfw.org/docs/3.0/moving.html
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-06-16 01:30:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->beech

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

submitter is now committer.
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-10-07 00:44:33 UTC
Author: nemysis
Date: Sun Oct  6 23:44:25 2013
New Revision: 329643
URL: http://svnweb.freebsd.org/changeset/ports/329643

Log:
  - Change maintainer email to @FreeBSD.org
  - Remove dependencies pulled in by other deps
  - Change USE_XORG xi xrandr
  - Set PORTSCOUT
  - Support STAGEDIR
  - Add patch for proper staging [1]
  
  PR:		ports/179602
  Submitted by:	nemysis (self), bapt [1]
  Approved by:	wg/pawel (mentors)

Added:
  head/graphics/glfw/files/
  head/graphics/glfw/files/patch-lib__x11__Makefile.x11.in   (contents, props changed)
Modified:
  head/graphics/glfw/Makefile

Modified: head/graphics/glfw/Makefile
==============================================================================
--- head/graphics/glfw/Makefile	Sun Oct  6 23:43:15 2013	(r329642)
+++ head/graphics/glfw/Makefile	Sun Oct  6 23:44:25 2013	(r329643)
@@ -6,20 +6,17 @@ PORTVERSION=	2.7.9
 CATEGORIES=	graphics
 MASTER_SITES=	SF
 
-MAINTAINER=	nemysis@gmx.ch
+MAINTAINER=	nemysis@FreeBSD.org
 COMMENT=	Portable framework for OpenGL development
 
 LICENSE=	ZLIB
 
-LIB_DEPENDS=	pthread-stubs:${PORTSDIR}/devel/libpthread-stubs \
-		drm:${PORTSDIR}/graphics/libdrm
-
 USE_BZIP2=	yes
 HAS_CONFIGURE=	yes
 CONFIGURE_SCRIPT=	compile.sh
 ALL_TARGET=	x11
 INSTALL_TARGET=	x11-install
-USE_XORG=	x11 xau xcb xdamage xdmcp xext xfixes xrandr xrender xxf86vm
+USE_XORG=	xi xrandr
 USE_GL=		glu
 USE_LDCONFIG=	yes
 MAKE_JOBS_UNSAFE=	yes
@@ -50,8 +47,8 @@ EXAMPLESDIR2=		${EXAMPLESDIR}/tests
 EXAMPLES_FILES2=	accuracy defaults dynamic events fsaa fsinput iconify \
 			joysticks peter reopen tearing version
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
+# Restrict to stable (even) versions, indicated by the second component.
+PORTSCOUT=    limit:^2\..*
 
 post-extract:
 	@${CHMOD} ${BINMODE} ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
@@ -61,27 +58,25 @@ post-patch:
 		's|/usr/X11R6|${LOCALBASE}| ; \
 		 /SOFLAGS/s|-soname |-Wl,-soname,| ; \
 		 /CFLAGS_THREAD/s|"-pthread"|"${PTHREAD_CFLAGS}"| ; \
-		 /LFLAGS_THREAD/s|"-pthread"|"${PTHREAD_LIBS}"|' ${WRKSRC}/${CONFIGURE_SCRIPT}
-	@${REINPLACE_CMD} -e \
-		's|lib/pkgconfig|libdata/pkgconfig|g' ${WRKSRC}/lib/x11/Makefile.x11.in
+		 /LFLAGS_THREAD/s|"-pthread"|"${PTHREAD_LIBS}"|' \
+		${WRKSRC}/${CONFIGURE_SCRIPT}
+	@${REINPLACE_CMD} \
+		-e 's|lib/pkgconfig|libdata/pkgconfig|g' \
+		${WRKSRC}/lib/x11/Makefile.x11.in
 
 post-install:
-	${INSTALL_DATA} ${WRKSRC}/lib/x11/libglfw.so ${PREFIX}/lib/libglfw.so.0
-	${LN} -sf ${PREFIX}/lib/libglfw.so.0 ${PREFIX}/lib/libglfw.so
+	${INSTALL_DATA} ${WRKSRC}/lib/x11/libglfw.so ${STAGEDIR}${PREFIX}/lib/libglfw.so.0
+	${LN} -sf ${PREFIX}/lib/libglfw.so.0 ${STAGEDIR}${PREFIX}/lib/libglfw.so
 
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${DOCSDIR}
-	@${MKDIR} ${DOCSDIR2}
-	${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${DOCSDIR2}
-.endif
-
-.if ${PORT_OPTIONS:MEXAMPLES}
-	@${MKDIR} ${EXAMPLESDIR}
-	${INSTALL_PROGRAM} ${EXAMPLES_FILES1:S|^|${EXAMPLESSRCDIR1}/|} ${EXAMPLESDIR}
-	${INSTALL_DATA} ${EXAMPLESSRCDIR1}/*.tga ${EXAMPLESDIR}
-	@${MKDIR} ${EXAMPLESDIR2}
-	${INSTALL_PROGRAM} ${EXAMPLES_FILES2:S|^|${EXAMPLESSRCDIR2}/|} ${EXAMPLESDIR2}
-.endif
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR2}
+	${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2}
+
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_PROGRAM} ${EXAMPLES_FILES1:S|^|${EXAMPLESSRCDIR1}/|} ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_DATA} ${EXAMPLESSRCDIR1}/*.tga ${STAGEDIR}${EXAMPLESDIR}
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR2}
+	${INSTALL_PROGRAM} ${EXAMPLES_FILES2:S|^|${EXAMPLESSRCDIR2}/|} ${STAGEDIR}${EXAMPLESDIR2}
 
 .include <bsd.port.mk>

Added: head/graphics/glfw/files/patch-lib__x11__Makefile.x11.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/glfw/files/patch-lib__x11__Makefile.x11.in	Sun Oct  6 23:44:25 2013	(r329643)
@@ -0,0 +1,29 @@
+--- ./lib/x11/Makefile.x11.in.orig	2013-05-30 16:07:32.000000000 +0200
++++ ./lib/x11/Makefile.x11.in	2013-09-30 12:46:48.994429398 +0200
+@@ -26,19 +26,19 @@
+ # Install GLFW static library
+ ##########################################################################
+ install: libglfw.a libglfw.pc
+-	$(INSTALL) -d $(PREFIX)/lib
+-	$(INSTALL) -c -m 644 libglfw.a $(PREFIX)/lib/libglfw.a
+-	$(INSTALL) -d $(PREFIX)/include/GL
+-	$(INSTALL) -c -m 644 ../../include/GL/glfw.h $(PREFIX)/include/GL/glfw.h
+-	$(INSTALL) -d $(PREFIX)/lib/pkgconfig
+-	$(INSTALL) -c -m 644 libglfw.pc $(PREFIX)/lib/pkgconfig/libglfw.pc
++	$(INSTALL) -d $(DESTDIR)$(PREFIX)/lib
++	$(INSTALL) -c -m 644 libglfw.a $(DESTDIR)$(PREFIX)/lib/libglfw.a
++	$(INSTALL) -d $(DESTDIR)$(PREFIX)/include/GL
++	$(INSTALL) -c -m 644 ../../include/GL/glfw.h $(DESTDIR)$(PREFIX)/include/GL/glfw.h
++	$(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/pkgconfig
++	$(INSTALL) -c -m 644 libglfw.pc $(DESTDIR)$(PREFIX)/lib/pkgconfig/libglfw.pc
+ 
+ 
+ ##########################################################################
+ # Install GLFW static and shared libraries
+ ##########################################################################
+ dist-install: libglfw.so install
+-	$(INSTALL) -c -m 644 libglfw.so $(PREFIX)/lib/libglfw.so
++	$(INSTALL) -c -m 644 libglfw.so $(DESTDIR)$(PREFIX)/lib/libglfw.so
+ 
+ 
+ ##########################################################################
_______________________________________________
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 4 Rusmir Dusko freebsd_committer freebsd_triage 2013-10-07 00:44:40 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!