Date: Sat, 18 Nov 2017 19:32:30 +0000 (UTC) From: Niclas Zeising <zeising@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r454453 - in head/graphics/glew: . files Message-ID: <201711181932.vAIJWUpj089406@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: zeising Date: Sat Nov 18 19:32:30 2017 New Revision: 454453 URL: https://svnweb.freebsd.org/changeset/ports/454453 Log: Update to 2.1.0 Some hilights from release notes: * adds support for OpenGL 4.6 * adds support for OSMesa and EGL * Removes support for MX and removes related libraries Use upstream install target instead of our own do-install: Fix the pkgconfig script to actually tell something at least closer to the truth. Add missing GL dependencies. Library version bump. PR: 223370 Submitted by: zeising exp-run by: antoine Approved by: antoine Added: head/graphics/glew/files/patch-Makefile (contents, props changed) Modified: head/graphics/glew/Makefile head/graphics/glew/distinfo head/graphics/glew/files/patch-config__Makefile.freebsd head/graphics/glew/pkg-plist Modified: head/graphics/glew/Makefile ============================================================================== --- head/graphics/glew/Makefile Sat Nov 18 19:24:09 2017 (r454452) +++ head/graphics/glew/Makefile Sat Nov 18 19:32:30 2017 (r454453) @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= glew -PORTVERSION= 1.13.0 -PORTREVISION= 1 +PORTVERSION= 2.1.0 CATEGORIES= graphics MASTER_SITES= SF @@ -15,32 +14,19 @@ LICENSE_COMB= dual USES= gmake tar:tgz USE_XORG= x11 xext xi xmu -USE_GL= yes +USE_GL= gl glu USE_LDCONFIG= yes -MAKE_ENV= GLEW_DEST=${PREFIX} +MAKE_ENV= GLEW_DEST=${PREFIX} GLEW_PREFIX=${PREFIX} +INSTALL_TARGET= install.all OPTIONS_DEFINE= DOCS post-patch: - @${REINPLACE_CMD} -e 's|CFLAGS =|CFLAGS +=|' ${WRKSRC}/Makefile - -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/bin/glewinfo ${STAGEDIR}${PREFIX}/bin - ${INSTALL_PROGRAM} ${WRKSRC}/bin/visualinfo ${STAGEDIR}${PREFIX}/bin - - ${INSTALL_PROGRAM} ${WRKSRC}/lib/libGLEW.so.${PORTVERSION} \ - ${STAGEDIR}${PREFIX}/lib/libGLEW.so.1 - ${INSTALL_PROGRAM} ${WRKSRC}/lib/libGLEWmx.so.${PORTVERSION} \ - ${STAGEDIR}${PREFIX}/lib/libGLEWmx.so.1 - ${LN} -sf libGLEW.so.1 ${STAGEDIR}${PREFIX}/lib/libGLEW.so - ${LN} -sf libGLEWmx.so.1 ${STAGEDIR}${PREFIX}/lib/libGLEWmx.so - ${INSTALL_DATA} ${WRKSRC}/lib/libGLEW.a ${STAGEDIR}${PREFIX}/lib - ${INSTALL_DATA} ${WRKSRC}/lib/libGLEWmx.a ${STAGEDIR}${PREFIX}/lib - @${MKDIR} ${STAGEDIR}${PREFIX}/include/GL - ${INSTALL_DATA} ${WRKSRC}/include/GL/*.h ${STAGEDIR}${PREFIX}/include/GL - ${INSTALL_DATA} ${WRKSRC}/glew.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig - ${INSTALL_DATA} ${WRKSRC}/glewmx.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig + @${REINPLACE_CMD} -e 's|CFLAGS =|CFLAGS +=|' \ + -e 's|^LIBDIR|GLEW_LIBDIR|' \ + -e 's|$$(LIBDIR)|$$(GLEW_LIBDIR)|' \ + ${WRKSRC}/Makefile do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} Modified: head/graphics/glew/distinfo ============================================================================== --- head/graphics/glew/distinfo Sat Nov 18 19:24:09 2017 (r454452) +++ head/graphics/glew/distinfo Sat Nov 18 19:32:30 2017 (r454453) @@ -1,2 +1,3 @@ -SHA256 (glew-1.13.0.tgz) = aa25dc48ed84b0b64b8d41cdd42c8f40f149c37fa2ffa39cd97f42c78d128bc7 -SIZE (glew-1.13.0.tgz) = 616070 +TIMESTAMP = 1509375302 +SHA256 (glew-2.1.0.tgz) = 04de91e7e6763039bc11940095cd9c7f880baba82196a7765f727ac05a993c95 +SIZE (glew-2.1.0.tgz) = 764073 Added: head/graphics/glew/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/glew/files/patch-Makefile Sat Nov 18 19:32:30 2017 (r454453) @@ -0,0 +1,72 @@ +--- Makefile.orig 2017-10-30 16:24:12 UTC ++++ Makefile +@@ -115,7 +115,7 @@ else ifneq ($(LIBTOOL),) + $(LIBTOOL) $@ $^ + endif + ifneq ($(STRIP),) +- $(STRIP) -x $@ ++ $(STRIP) $@ + endif + + lib/$(LIB.SHARED): $(LIB.SOBJS) +@@ -125,8 +125,9 @@ ifneq ($(LN),) + $(LN) $(LIB.SHARED) lib/$(LIB.DEVLNK) + endif + ifneq ($(STRIP),) +- $(STRIP) -x $@ ++ $(STRIP) $@ + endif ++ /usr/bin/file $@ + + tmp/$(SYSTEM)/default/static/glew.o: src/glew.c include/GL/glew.h include/GL/wglew.h include/GL/glxew.h + @mkdir -p $(dir $@) +@@ -142,14 +143,14 @@ tmp/$(SYSTEM)/default/shared/glew.o: src/glew.c includ + + glew.pc: glew.pc.in + sed \ +- -e "s|@prefix@|$(GLEW_PREFIX)|g" \ +- -e "s|@libdir@|$(LIBDIR)|g" \ +- -e "s|@exec_prefix@|$(BINDIR)|g" \ +- -e "s|@includedir@|$(INCDIR)|g" \ +- -e "s|@version@|$(GLEW_VERSION)|g" \ +- -e "s|@cflags@||g" \ +- -e "s|@libname@|$(NAME)|g" \ +- -e "s|@requireslib@|$(LIBGLU)|g" \ ++ -e 's|@prefix@|$(GLEW_PREFIX)|g' \ ++ -e 's|@libdir@|$${prefix}/lib|g' \ ++ -e 's|@exec_prefix@|$${prefix}/bin|g' \ ++ -e 's|@includedir@|$${prefix}/include|g' \ ++ -e 's|@version@|$(GLEW_VERSION)|g' \ ++ -e 's|@cflags@||g' \ ++ -e 's|@libname@|$(NAME)|g' \ ++ -e 's|@requireslib@|$(LIBGLU)|g' \ + < $< > $@ + + # GLEW utility programs +@@ -180,22 +181,22 @@ bin: + bin/$(GLEWINFO.BIN): $(GLEWINFO.BIN.OBJ) lib/$(LIB.SHARED) + $(CC) $(CFLAGS) -o $@ $(GLEWINFO.BIN.OBJ) $(BIN.LIBS) + ifneq ($(STRIP),) +- $(STRIP) -x $@ ++ $(STRIP) $@ + endif + + bin/$(VISUALINFO.BIN): $(VISUALINFO.BIN.OBJ) lib/$(LIB.SHARED) + $(CC) $(CFLAGS) -o $@ $(VISUALINFO.BIN.OBJ) $(BIN.LIBS) + ifneq ($(STRIP),) +- $(STRIP) -x $@ ++ $(STRIP) $@ + endif + + $(GLEWINFO.BIN.OBJ): $(GLEWINFO.BIN.SRC) include/GL/glew.h include/GL/wglew.h include/GL/glxew.h + @mkdir -p $(dir $@) +- $(CC) -DGLEW_NO_GLU $(CFLAGS) $(CFLAGS.SO) -o $@ -c $< ++ $(CC) -DGLEW_NO_GLU $(CFLAGS) -o $@ -c $< + + $(VISUALINFO.BIN.OBJ): $(VISUALINFO.BIN.SRC) include/GL/glew.h include/GL/wglew.h include/GL/glxew.h + @mkdir -p $(dir $@) +- $(CC) -DGLEW_NO_GLU $(CFLAGS) $(CFLAGS.SO) -o $@ -c $< ++ $(CC) -DGLEW_NO_GLU $(CFLAGS) -o $@ -c $< + + # Install targets + Modified: head/graphics/glew/files/patch-config__Makefile.freebsd ============================================================================== --- head/graphics/glew/files/patch-config__Makefile.freebsd Sat Nov 18 19:24:09 2017 (r454452) +++ head/graphics/glew/files/patch-config__Makefile.freebsd Sat Nov 18 19:32:30 2017 (r454453) @@ -1,6 +1,6 @@ ---- config/Makefile.freebsd.orig 2015-02-08 09:24:57 UTC +--- config/Makefile.freebsd.orig 2017-07-31 11:25:39 UTC +++ config/Makefile.freebsd -@@ -1,22 +1,22 @@ +@@ -1,17 +1,17 @@ NAME = $(GLEW_NAME) -CC = cc -LD = ld @@ -24,10 +24,3 @@ +LIB.SHARED = lib$(NAME).so.$(GLEW_VERSION) LIB.STATIC = lib$(NAME).a LDFLAGS.SO = -shared -soname $(LIB.SONAME) --LIB.SONAME.MX = lib$(NAME)mx.so.$(SO_MAJOR) -+LIB.SONAME.MX = lib$(NAME)mx.so.$(GLEW_MAJOR) - LIB.DEVLNK.MX = lib$(NAME)mx.so --LIB.SHARED.MX = lib$(NAME)mx.so.$(SO_VERSION) -+LIB.SHARED.MX = lib$(NAME)mx.so.$(GLEW_VERSION) - LIB.STATIC.MX = lib$(NAME)mx.a - LDFLAGS.SO.MX = -shared -soname $(LIB.SONAME.MX) Modified: head/graphics/glew/pkg-plist ============================================================================== --- head/graphics/glew/pkg-plist Sat Nov 18 19:24:09 2017 (r454452) +++ head/graphics/glew/pkg-plist Sat Nov 18 19:32:30 2017 (r454453) @@ -4,13 +4,10 @@ include/GL/glew.h include/GL/glxew.h include/GL/wglew.h lib/libGLEW.a -lib/libGLEWmx.a -lib/libGLEWmx.so lib/libGLEW.so -lib/libGLEWmx.so.1 -lib/libGLEW.so.1 +lib/libGLEW.so.2 +lib/libGLEW.so.2.1.0 libdata/pkgconfig/glew.pc -libdata/pkgconfig/glewmx.pc %%PORTDOCS%%%%DOCSDIR%%/advanced.html %%PORTDOCS%%%%DOCSDIR%%/basic.html %%PORTDOCS%%%%DOCSDIR%%/build.html @@ -25,4 +22,5 @@ libdata/pkgconfig/glewmx.pc %%PORTDOCS%%%%DOCSDIR%%/log.html %%PORTDOCS%%%%DOCSDIR%%/new.png %%PORTDOCS%%%%DOCSDIR%%/ogl_sm.jpg +%%PORTDOCS%%%%DOCSDIR%%/travis.png %%PORTDOCS%%%%DOCSDIR%%/wglew.html
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711181932.vAIJWUpj089406>