ports/65037: Update port: graphics/glfw 2.4 -> 2.4.2

Igor Pokrovsky tiamat at comset.net
Thu Apr 1 11:30:19 UTC 2004


>Number:         65037
>Category:       ports
>Synopsis:       Update port: graphics/glfw 2.4 -> 2.4.2
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 01 03:30:19 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Igor Pokrovsky
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
>Environment:
System: FreeBSD doom.homeunix.org 4.9-STABLE FreeBSD 4.9-STABLE #0: Mon Mar 29 21:09:31 MSD 2004 root at doom.homeunix.org:/usr/obj/usr/src/sys/KERNEL i386


	
>Description:
Update to 2.4.2
	
>How-To-Repeat:
	
>Fix:

	

--- glfw.diff begins here ---
diff -ru /usr/ports/graphics/glfw/Makefile glfw/Makefile
--- /usr/ports/graphics/glfw/Makefile	Tue Mar  2 21:03:37 2004
+++ glfw/Makefile	Thu Apr  1 10:58:53 2004
@@ -6,9 +6,10 @@
 #
 
 PORTNAME=	glfw
-PORTVERSION=	2.4
+PORTVERSION=	2.4.2
 CATEGORIES=	graphics
-MASTER_SITES=	http://hem.passagen.se/opengl/glfw/files/
+MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR=	${PORTNAME}
 
 MAINTAINER=	tiamat at comset.net
 COMMENT=	A portable framework for OpenGL development
diff -ru /usr/ports/graphics/glfw/distinfo glfw/distinfo
--- /usr/ports/graphics/glfw/distinfo	Thu Apr  1 09:28:16 2004
+++ glfw/distinfo	Thu Apr  1 10:58:56 2004
@@ -1,2 +1,2 @@
-MD5 (glfw-2.4.tar.gz) = 960cd136f21b2492a36b15f752f390a7
-SIZE (glfw-2.4.tar.gz) = 450757
+MD5 (glfw-2.4.2.tar.gz) = 1902cb8d56b78cd2b8c6df690ea76bcd
+SIZE (glfw-2.4.2.tar.gz) = 620008
diff -ru /usr/ports/graphics/glfw/files/patch-compile.sh glfw/files/patch-compile.sh
--- /usr/ports/graphics/glfw/files/patch-compile.sh	Tue Mar  2 21:03:37 2004
+++ glfw/files/patch-compile.sh	Thu Apr  1 11:20:31 2004
@@ -1,6 +1,6 @@
---- compile.sh.orig	Wed Jan  8 12:19:48 2003
-+++ compile.sh	Mon Mar  1 19:15:54 2004
-@@ -69,10 +69,10 @@
+--- compile.sh.orig	Sun Feb 15 01:19:38 2004
++++ compile.sh	Thu Apr  1 11:12:31 2004
+@@ -72,10 +72,10 @@
  ##########################################################################
  if [ "x$force_gcc" = xyes ]; then
    CC=gcc
@@ -12,22 +12,24 @@
 -CFLAGS=
 +#CFLAGS=
  LFLAGS=
+ INCS=
  LIBS="-lGL -lX11"
- 
-@@ -88,9 +88,9 @@
- # Check for X11 libs directory
- ##########################################################################
- echo "Checking for X11 libraries location... " 1>&6
--if [ -r "/usr/X11R6/lib/libX11.so" ]; then
+@@ -99,10 +99,10 @@
+  INCS="-I/usr/X11/include"
+  echo " X11 libraries location: /usr/X11/lib" 1>&6
+ # X11R6 in /usr/X11R6/lib ?
+-elif [ -r "/usr/X11R6/lib" ]; then
 - LFLAGS="$LFLAGS -L/usr/X11R6/lib"
+- INCS="-I/usr/X11R6/include"
 - echo " X11 libraries location: /usr/X11R6/lib" 1>&6
-+if [ -r "${X11BASE}/lib/libX11.so" ]; then
++elif [ -r "${X11BASE}/lib" ]; then
 + LFLAGS="$LFLAGS -L${X11BASE}/lib"
++ INCS="-I${X11BASE}/include"
 + echo " X11 libraries location: ${X11BASE}/lib" 1>&6
- elif [ -r "/usr/X11R5/lib/libX11.so" ]; then
+ # X11R5 in /usr/X11R5/lib ?
+ elif [ -r "/usr/X11R5/lib" ]; then
   LFLAGS="$LFLAGS -L/usr/X11R5/lib"
-  echo " X11 libraries location: /usr/X11R5/lib" 1>&6
-@@ -120,9 +120,9 @@
+@@ -140,9 +140,9 @@
  rm -f conftest*
  
  echo " Using GNU C: ""$use_gcc" 1>&6
@@ -40,7 +42,7 @@
  echo " " 1>&6
  
  
-@@ -139,6 +139,8 @@
+@@ -164,6 +164,8 @@
  int main() {; return 0;}
  EOF
  
@@ -49,20 +51,27 @@
  if { (eval echo $config_script: \"$compile\") 1>&5; (eval $compile) 2>&5; }; then
    rm -rf conftest*
    has_xf86vm=yes
-@@ -279,29 +281,29 @@
- ##########################################################################
- # Check for sysconf support
- ##########################################################################
--echo "Checking for sysconf support... " 1>&6
--echo "$config_script: Checking for sysconf support" >&5
--has_sysconf=no
-+#echo "Checking for sysconf support... " 1>&6
-+#echo "$config_script: Checking for sysconf support" >&5
-+#has_sysconf=no
+@@ -206,7 +208,7 @@
+ 
+ # Try -pthread (e.g. FreeBSD)
+ if [ "x$has_pthread" = xno ]; then
+-  LIBS="$LIBS_OLD -pthread"
++  LIBS="$LIBS_OLD ${PTHREAD_LIBS}"
+   if { (eval echo $config_script: \"$link\") 1>&5; (eval $link) 2>&5; }; then
+     rm -rf conftest*
+     has_pthread=yes
+@@ -364,24 +366,24 @@
+ echo "$config_script: Checking for sysconf support" >&5
+ has_sysconf=no
  
 -cat > conftest.c <<EOF
 +#cat > conftest.c <<EOF
  #include <unistd.h>
+ #ifndef _SC_NPROCESSORS_ONLN
+ #ifndef _SC_NPROC_ONLN
+ #error Neither _SC_NPROCESSORS_ONLN nor _SC_NPROC_ONLN available
+ #endif
+ #endif
 -int main() {long x=sysconf(_SC_ARG_MAX); return 0; }
 -EOF
 +#int main() {long x=sysconf(_SC_ARG_MAX); return 0; }
@@ -85,44 +94,17 @@
 +#fi
 +#rm -f conftest*
  
--echo " sysconf support: ""$has_sysconf" 1>&6
--if [ "x$has_sysconf" = xyes ]; then
--   CFLAGS="$CFLAGS -D_GLFW_HAS_SYSCONF"
--fi
--echo " " 1>&6
-+#echo " sysconf support: ""$has_sysconf" 1>&6
-+#if [ "x$has_sysconf" = xyes ]; then
-+#   CFLAGS="$CFLAGS -D_GLFW_HAS_SYSCONF"
-+#fi
-+#echo " " 1>&6
- 
- 
- ##########################################################################
-@@ -337,17 +339,18 @@
- ##########################################################################
+ echo " sysconf support: ""$has_sysconf" 1>&6
+ if [ "x$has_sysconf" = xyes ]; then
+@@ -424,9 +426,9 @@
  # Post fixups
  ##########################################################################
--if [ "x$CC" = xgcc ]; then
+ if [ "x$use_gcc" = xyes ]; then
 -  CFLAGS_SPEED="-c -I. -I.. $CFLAGS -O3 -ffast-math -Wall"
--  CFLAGS="-c -I. -I.. $CFLAGS -Os -Wall"
--  CFLAGS_LINK="-O3 -ffast-math -Wall"
-+CFLAGS_NO_COMPILE="${CFLAGS}"
-+if [ "x$use_gcc" = xyes ]; then
 +  CFLAGS_SPEED="-c -I. -I.. $CFLAGS -Wall"
-+  CFLAGS="-c -I. -I.. $CFLAGS -Wall"
-+  CFLAGS_LINK="-Wall"
+   CFLAGS="-c -I. -I.. $CFLAGS -Os -Wall"
+-  CFLAGS_LINK="$INCS -O3 -ffast-math -Wall"
++  CFLAGS_LINK="$INCS -Wall"
  else
--  CFLAGS_SPEED="-c -I. -I.. $CFLAGS -O"
--  CFLAGS="-c -I. -I.. $CFLAGS -O"
--  CFLAGS_LINK="-O"
-+  CFLAGS_SPEED="-c -I. -I.. $CFLAGS"
-+  CFLAGS="-c -I. -I.. $CFLAGS"
-+  CFLAGS_LINK=""
- fi
--CFLAGS_LINK="-I../include $CFLAGS_LINK"
--LFLAGS="$LFLAGS -L../lib/x11 -s -lglfw -lGLU $LIBS -lpthread -lm"
-+CFLAGS_LINK="-I../include ${CFLAGS_NO_COMPILE} $CFLAGS_LINK"
-+LFLAGS="$LFLAGS -L../lib/x11 -s -lglfw -lGLU $LIBS ${PTHREAD_LIBS} -lm"
- 
- 
- ##########################################################################
+   CFLAGS_SPEED="-c -I. -I.. $CFLAGS -O"
+   CFLAGS="-c -I. -I.. $CFLAGS -O"
diff -ru /usr/ports/graphics/glfw/pkg-descr glfw/pkg-descr
--- /usr/ports/graphics/glfw/pkg-descr	Sun Jan 25 13:39:43 2004
+++ glfw/pkg-descr	Thu Apr  1 10:57:28 2004
@@ -3,7 +3,7 @@
 for handling operating system specific tasks, such as opening an OpenGL
 window, reading keyboard and mouse input, creating threads, and much more.
 
-WWW:	http://hem.passagen.se/opengl/glfw/
+WWW:	http://glfw.sourceforge.net/
 
 - Igor Pokrovsky
 tiamat at comset.net
diff -ru /usr/ports/graphics/glfw/pkg-plist glfw/pkg-plist
--- /usr/ports/graphics/glfw/pkg-plist	Sun Jan 25 13:39:43 2004
+++ glfw/pkg-plist	Thu Apr  1 11:19:40 2004
@@ -21,6 +21,6 @@
 %%EXAMPLESDIR%%/pong3d_winner2.tga
 %%EXAMPLESDIR%%/makefile
 @dirrm %%EXAMPLESDIR%%
-%%PORTDOCS%%%%DOCSDIR%%/glfwrm14.pdf
-%%PORTDOCS%%%%DOCSDIR%%/glfwug14.pdf
+%%PORTDOCS%%%%DOCSDIR%%/Reference.pdf
+%%PORTDOCS%%%%DOCSDIR%%/UsersGuide.pdf
 %%PORTDOCS%%@dirrm %%DOCSDIR%%
--- glfw.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list