Date: Mon, 29 Dec 2003 12:41:06 +0300 (MSK) From: Igor Pokrovsky <tiamat@comset.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/60717: New port: graphics/glew The OpenGL Extension Wrangler Library Message-ID: <200312290941.hBT9f6hP026238@doom.homeunix.org> Resent-Message-ID: <200312300330.hBU3UEmt089793@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 60717 >Category: ports >Synopsis: New port: graphics/glew The OpenGL Extension Wrangler Library >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Dec 29 19:30:13 PST 2003 >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 #1: Sun Dec 14 13:12:44 MSK 2003 root@doom.homeunix.org:/usr/obj/usr/src/sys/KERNEL i386 >Description: The goal of the OpenGL Extension Wrangler Library (GLEW) is to assist C/C++ OpenGL developers with two tedious tasks: initializing and using extensions and writing portable applications. GLEW provides an efficient run-time mechanism to determine whether a certain extension is supported by the driver or not. OpenGL core and extension functionality is exposed via a single header file. http://glew.sourceforge.net/ >How-To-Repeat: >Fix: --- glew.port begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # glew # glew/pkg-plist # glew/pkg-descr # glew/distinfo # glew/Makefile # glew/files # glew/files/patch-Makefile # echo c - glew mkdir -p glew > /dev/null 2>&1 echo x - glew/pkg-plist sed 's/^X//' >glew/pkg-plist << 'END-of-glew/pkg-plist' Xbin/glewinfo Xinclude/GL/glew.h Xinclude/GL/glxew.h Xinclude/GL/wglew.h Xlib/libGLEW.a Xlib/libGLEW.so Xlib/libGLEW.so.1 X%%PORTDOCS%%share/doc/glew/glew.css X%%PORTDOCS%%share/doc/glew/README.html X%%PORTDOCS%%share/doc/glew/glew.html X%%PORTDOCS%%share/doc/glew/glxew.html X%%PORTDOCS%%share/doc/glew/wglew.html X%%PORTDOCS%%share/doc/glew/glew.png X%%PORTDOCS%%@dirrm share/doc/glew END-of-glew/pkg-plist echo x - glew/pkg-descr sed 's/^X//' >glew/pkg-descr << 'END-of-glew/pkg-descr' XThe goal of the OpenGL Extension Wrangler Library (GLEW) is to assist XC/C++ OpenGL developers with two tedious tasks: initializing and using Xextensions and writing portable applications. GLEW provides an efficient Xrun-time mechanism to determine whether a certain extension is supported Xby the driver or not. OpenGL core and extension functionality is exposed Xvia a single header file. X XWWW: http://glew.sourceforge.net/ X X- Igor Pokrovsky Xtiamat@comset.net END-of-glew/pkg-descr echo x - glew/distinfo sed 's/^X//' >glew/distinfo << 'END-of-glew/distinfo' XMD5 (glew-1.1.4-src.tgz) = 12ad1232a9031cb452222f38511f31cb END-of-glew/distinfo echo x - glew/Makefile sed 's/^X//' >glew/Makefile << 'END-of-glew/Makefile' X# New ports collection makefile for: glew X# Date created: 29 Dec 2003 X# Whom: Igor Pokrovsky <tiamat@comset.net> X# X# $FreeBSD$ X# X XPORTNAME= glew XPORTVERSION= 1.1.4 XCATEGORIES= graphics XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE} XMASTER_SITE_SUBDIR= ${PORTNAME} XEXTRACT_SUFX= -src.tgz X XMAINTAINER= tiamat@comset.net XCOMMENT= The OpenGL Extension Wrangler Library X XWRKSRC= ${WRKDIR}/${PORTNAME} X XUSE_GMAKE= yes XUSE_X_PREFIX= yes XUSE_GL= yes XINSTALLS_SHLIB= yes X Xdo-install: X ${INSTALL_PROGRAM} ${WRKSRC}/bin/glewinfo ${PREFIX}/bin X X ${INSTALL_PROGRAM} ${WRKSRC}/lib/libGLEW.so.${PORTVERSION} \ X ${PREFIX}/lib/libGLEW.so.1 X @${LN} -sf ${PREFIX}/lib/libGLEW.so.1 ${PREFIX}/lib/libGLEW.so X ${INSTALL_DATA} ${WRKSRC}/lib/libGLEW.a ${PREFIX}/lib X X ${INSTALL_DATA} ${WRKSRC}/include/GL/*.h ${PREFIX}/include/GL X X.if !defined(NOPORTDOCS) X @${MKDIR} ${DOCSDIR} X ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR} X ${INSTALL_DATA} ${WRKSRC}/doc/glew.css ${DOCSDIR} X ${INSTALL_DATA} ${WRKSRC}/doc/glew.png ${DOCSDIR} X.endif X X.include <bsd.port.mk> END-of-glew/Makefile echo c - glew/files mkdir -p glew/files > /dev/null 2>&1 echo x - glew/files/patch-Makefile sed 's/^X//' >glew/files/patch-Makefile << 'END-of-glew/files/patch-Makefile' X--- Makefile.orig Sun Dec 14 18:21:44 2003 X+++ Makefile Mon Dec 29 11:09:28 2003 X@@ -83,6 +83,25 @@ X X else X # ---------------------------------------------------------------------------- X+# FreeBSD X+# ---------------------------------------------------------------------------- X+ifeq ($(patsubst FreeBSD%,FreeBSD,$(SYSTEM)), FreeBSD) X+NAME = GLEW X+CFLAGS.EXTRA = -I${X11BASE}/include X+LDFLAGS.SO = -shared -soname $(LIB.SONAME) X+LDFLAGS.EXTRA = -L${X11BASE}/lib X+LDFLAGS.GL = -lXmu -lXi -lGLU -lGL -lXext -lX11 X+GLEW_DEST = ${X11BASE} X+WARN = -Wall -W X+POPT = -O2 X+BIN.SUFFIX = X+LIB.SONAME = lib$(NAME).so.$(GLEW_MAJOR) X+LIB.DEVLNK = lib$(NAME).so X+LIB.SHARED = lib$(NAME).so.$(GLEW_VERSION) X+LIB.STATIC = lib$(NAME).a X+ X+else X+# ---------------------------------------------------------------------------- X # Irix X # ---------------------------------------------------------------------------- X ifeq ($(patsubst IRIX%,IRIX,$(SYSTEM)), IRIX) X@@ -153,6 +172,7 @@ X else X # ---------------------------------------------------------------------------- X $(error "Platform '$(SYSTEM)' not supported") X+endif X endif X endif X endif END-of-glew/files/patch-Makefile exit --- glew.port ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200312290941.hBT9f6hP026238>