ports/78423: Update port: graphics/glew 1.2.5 -> 1.3.1
Igor Pokrovsky
ip at doom.homeunix.org
Fri Mar 4 18:20:14 UTC 2005
>Number: 78423
>Category: ports
>Synopsis: Update port: graphics/glew 1.2.5 -> 1.3.1
>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: Fri Mar 04 18:20:13 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Igor Pokrovsky
>Release: FreeBSD 4.11-STABLE i386
>Organization:
>Environment:
System: FreeBSD doom.homeunix.org 4.11-STABLE FreeBSD 4.11-STABLE #0: Sat Feb 26 15:56:02 MSK 2005 root at doom.homeunix.org:/usr/obj/usr/src/sys/KERNEL i386
>Description:
Update to 1.3.1.
Added files:
files/patch-config_Makefile.freebsd
>How-To-Repeat:
>Fix:
--- glew.diff begins here ---
diff -ruN /usr/ports/graphics/glew/Makefile glew/Makefile
--- /usr/ports/graphics/glew/Makefile Thu Dec 23 18:13:36 2004
+++ glew/Makefile Fri Mar 4 21:12:23 2005
@@ -6,7 +6,7 @@
#
PORTNAME= glew
-PORTVERSION= 1.2.5
+PORTVERSION= 1.3.1
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -20,25 +20,22 @@
USE_GL= yes
INSTALLS_SHLIB= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
-MAKE_ENV= CC=${CC}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/glewinfo ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/visualinfo ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/lib/libGLEW.so.${PORTVERSION} \
${PREFIX}/lib/libGLEW.so.1
@${LN} -sf ${PREFIX}/lib/libGLEW.so.1 ${PREFIX}/lib/libGLEW.so
${INSTALL_DATA} ${WRKSRC}/lib/libGLEW.a ${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKSRC}/include/GL/*.h ${PREFIX}/include/GL
-.for i in glew glxew
- ${INSTALL_DATA} ${WRKSRC}/include/GL/${i}.h ${PREFIX}/include/GL
-.endfor
-
-.if !defined(NOPORTDOCS)
+.ifndef (NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/doc/glew.css ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/doc/glew.png ${DOCSDIR}
+.for i in css html jpg png
+ ${INSTALL_DATA} ${WRKSRC}/doc/*.${i} ${DOCSDIR}
+.endfor
.endif
.include <bsd.port.mk>
diff -ruN /usr/ports/graphics/glew/distinfo glew/distinfo
--- /usr/ports/graphics/glew/distinfo Thu Dec 23 18:13:36 2004
+++ glew/distinfo Fri Mar 4 20:51:37 2005
@@ -1,2 +1,2 @@
-MD5 (glew-1.2.5-src.tgz) = fcbefbe1ce0c6b0c9f6bd56aafe23927
-SIZE (glew-1.2.5-src.tgz) = 286866
+MD5 (glew-1.3.1-src.tgz) = ff65976bd9345624c612b4d1c31fdcec
+SIZE (glew-1.3.1-src.tgz) = 330648
diff -ruN /usr/ports/graphics/glew/files/patch-Makefile glew/files/patch-Makefile
--- /usr/ports/graphics/glew/files/patch-Makefile Sat Jan 22 21:59:37 2005
+++ glew/files/patch-Makefile Fri Mar 4 21:14:22 2005
@@ -3,29 +3,7 @@
--- Makefile.orig
+++ Makefile
-@@ -121,17 +121,17 @@
- # ----------------------------------------------------------------------------
- ifeq ($(patsubst FreeBSD%,FreeBSD,$(SYSTEM)), FreeBSD)
- NAME = GLEW
--CC = cc
--LD = ld
-+CC ?= cc
-+LD ?= ld
- ifneq (undefined, $(origin GLEW_MX))
- CFLAGS.EXTRA = -DGLEW_MX
- endif
- LDFLAGS.SO = -shared -soname $(LIB.SONAME)
--LDFLAGS.EXTRA = -L/usr/X11R6/lib
-+LDFLAGS.EXTRA = -L${X11BASE}/lib
- LDFLAGS.GL = -lXmu -lXi -lGLU -lGL -lXext -lX11
- LDFLAGS.STATIC = -Wl,-Bstatic
- LDFLAGS.DYNAMIC = -Wl,-Bdynamic
--CFLAGS.EXTRA += -I/usr/X11R6/include
-+CFLAGS.EXTRA += -I${X11BASE}/include -fPIC
- NAME = GLEW
- WARN = -Wall -W
- POPT = -O2
-@@ -245,7 +245,7 @@
+@@ -61,7 +61,7 @@
STRIP = -s
endif
INCLUDE = -Iinclude
diff -ruN /usr/ports/graphics/glew/files/patch-config_Makefile.freebsd glew/files/patch-config_Makefile.freebsd
--- /usr/ports/graphics/glew/files/patch-config_Makefile.freebsd Thu Jan 1 03:00:00 1970
+++ glew/files/patch-config_Makefile.freebsd Fri Mar 4 21:14:34 2005
@@ -0,0 +1,25 @@
+
+$FreeBSD$
+
+--- config/Makefile.freebsd.orig
++++ config/Makefile.freebsd
+@@ -1,15 +1,15 @@
+ NAME = $(GLEW_NAME)
+-CC = cc
+-LD = ld
++CC ?= cc
++LD ?= ld
+ ifneq (undefined, $(origin GLEW_MX))
+ CFLAGS.EXTRA = -DGLEW_MX
+ endif
+ LDFLAGS.SO = -shared -soname $(LIB.SONAME)
+-LDFLAGS.EXTRA = -L/usr/X11R6/lib
++LDFLAGS.EXTRA = -L${X11BASE}/lib
+ LDFLAGS.GL = -lXmu -lXi -lGLU -lGL -lXext -lX11
+ LDFLAGS.STATIC = -Wl,-Bstatic
+ LDFLAGS.DYNAMIC = -Wl,-Bdynamic
+-CFLAGS.EXTRA += -I/usr/X11R6/include
++CFLAGS.EXTRA += -I${X11BASE}/include -fPIC
+ NAME = GLEW
+ WARN = -Wall -W
+ POPT = -O2
diff -ruN /usr/ports/graphics/glew/pkg-plist glew/pkg-plist
--- /usr/ports/graphics/glew/pkg-plist Thu Apr 1 16:16:17 2004
+++ glew/pkg-plist Fri Mar 4 21:12:03 2005
@@ -1,13 +1,22 @@
bin/glewinfo
+bin/visualinfo
include/GL/glew.h
include/GL/glxew.h
+include/GL/wglew.h
lib/libGLEW.a
lib/libGLEW.so
lib/libGLEW.so.1
+%%PORTDOCS%%%%DOCSDIR%%/advanced.html
+%%PORTDOCS%%%%DOCSDIR%%/basic.html
+%%PORTDOCS%%%%DOCSDIR%%/credits.html
%%PORTDOCS%%%%DOCSDIR%%/glew.css
-%%PORTDOCS%%%%DOCSDIR%%/README.html
%%PORTDOCS%%%%DOCSDIR%%/glew.html
+%%PORTDOCS%%%%DOCSDIR%%/glew.png
%%PORTDOCS%%%%DOCSDIR%%/glxew.html
+%%PORTDOCS%%%%DOCSDIR%%/index.html
+%%PORTDOCS%%%%DOCSDIR%%/install.html
+%%PORTDOCS%%%%DOCSDIR%%/log.html
+%%PORTDOCS%%%%DOCSDIR%%/new.png
+%%PORTDOCS%%%%DOCSDIR%%/ogl_sm.jpg
%%PORTDOCS%%%%DOCSDIR%%/wglew.html
-%%PORTDOCS%%%%DOCSDIR%%/glew.png
%%PORTDOCS%%@dirrm %%DOCSDIR%%
--- glew.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list