ports/62297: New port: graphics/oglext A library for easier access to OpenGL extensions

Igor Pokrovsky tiamat at comset.net
Tue Feb 3 03:40:16 UTC 2004


>Number:         62297
>Category:       ports
>Synopsis:       New port: graphics/oglext A library for easier access to OpenGL extensions
>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 Feb 02 19:40:07 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 Jan 26 19:02:19 MSK 2004 root at doom.homeunix.org:/usr/obj/usr/src/sys/KERNEL i386


	
>Description:
OglExt is a free OpenGL extension library, enabling the easy access of all
functionality up to OpenGL version 1.4 as well as API functions of more than
200 OpenGL extensions. With OglExt you don't need to use glXGetProcAddress[ARB]
anymore. See README for more information.
	
>How-To-Repeat:
	
>Fix:

	

--- oglext.shar 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:
#
#	oglext
#	oglext/pkg-plist
#	oglext/pkg-descr
#	oglext/distinfo
#	oglext/Makefile
#	oglext/files
#	oglext/files/patch-build_linux-gcc_Makefile
#	oglext/files/patch-src_Macros.h
#
echo c - oglext
mkdir -p oglext > /dev/null 2>&1
echo x - oglext/pkg-plist
sed 's/^X//' >oglext/pkg-plist << 'END-of-oglext/pkg-plist'
Xinclude/oglext/OglExt.h
Xinclude/oglext/glext.h
Xlib/libOglExt.a
Xlib/libOglExt.so
Xlib/libOglExt.so.1
X%%PORTDOCS%%%%DOCSDIR%%/README
X%%PORTDOCS%%%%DOCSDIR%%/extensionlist.html
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X at dirrm include/oglext
END-of-oglext/pkg-plist
echo x - oglext/pkg-descr
sed 's/^X//' >oglext/pkg-descr << 'END-of-oglext/pkg-descr'
XOglExt is a free OpenGL extension library, enabling the easy access of all
Xfunctionality up to OpenGL version 1.4 as well as API functions of more than
X200 OpenGL extensions. With OglExt you don't need to use glXGetProcAddress[ARB]
Xanymore. See README for more information.
X
XWWW:	http://www.julius.caesar.de/oglext/
X
X- Igor Pokrovsky
Xtiamat at comset.net
END-of-oglext/pkg-descr
echo x - oglext/distinfo
sed 's/^X//' >oglext/distinfo << 'END-of-oglext/distinfo'
XMD5 (oglext-1.0.2-src.zip) = 569e331cb6131e75e105b9c6a0e4ae6a
END-of-oglext/distinfo
echo x - oglext/Makefile
sed 's/^X//' >oglext/Makefile << 'END-of-oglext/Makefile'
X# New ports collection makefile for: oglext
X# Date created:		01 Feb 2004
X# Whom:			Igor Pokrovsky <tiamat at comset.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	oglext
XPORTVERSION=	1.0.2
XCATEGORIES=	graphics devel
XMASTER_SITES=	http://www.julius.caesar.de/oglext/
XDISTNAME=	${PORTNAME}-${PORTVERSION}-src
X
XMAINTAINER=	tiamat at comset.net
XCOMMENT=	A library for easier access to OpenGL extensions
X
XUSE_ZIP=	yes
XUSE_GMAKE=	yes
XUSE_GL=		yes
XUSE_X_PREFIX=	yes
X
XWRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
XBUILD_WRKSRC=   ${WRKSRC}/src
XMAKEFILE=	${WRKSRC}/build/linux-gcc/Makefile
XMAKE_ENV=	AR="${AR}" LN="${LN}" RM="${RM}"
X
Xpre-patch:
X	@${PERL} -pi -e 's|\r||g' `${FIND} ${WRKSRC} -type f`
X
Xdo-install:
X	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/libOglExt.so.1 ${PREFIX}/lib
X	${LN} -sf ${PREFIX}/lib/libOglExt.so.1 ${PREFIX}/lib/libOglExt.so
X	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/libOglExt.a ${PREFIX}/lib
X
X# install includes in separate dir to avoid conflicts with Mesa
X	@${MKDIR} ${PREFIX}/include/${PORTNAME}
X	${INSTALL_DATA} ${WRKSRC}/include/*.h ${PREFIX}/include/${PORTNAME}
X
X.ifndef (NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
X.endif
X
X.include <bsd.port.mk>
END-of-oglext/Makefile
echo c - oglext/files
mkdir -p oglext/files > /dev/null 2>&1
echo x - oglext/files/patch-build_linux-gcc_Makefile
sed 's/^X//' >oglext/files/patch-build_linux-gcc_Makefile << 'END-of-oglext/files/patch-build_linux-gcc_Makefile'
X--- build/linux-gcc/Makefile.orig	Mon Feb  2 19:30:41 2004
X+++ build/linux-gcc/Makefile	Mon Feb  2 19:34:14 2004
X@@ -8,28 +8,28 @@
X 
X ####### Compiler, tools and options
X 
X-CC       = gcc
X-CXX      = g++
X-LEX      = flex
X-YACC     = yacc
X-CFLAGS   = -pipe -Wall -W -fPIC  
X-CXXFLAGS = -pipe -Wall -W -fPIC  
X-LEXFLAGS = 
X-YACCFLAGS= -d
X-LINK     = g++
X+#CC       = gcc
X+#CXX      = g++
X+#LEX      = flex
X+#YACC     = yacc
X+CFLAGS   += -pipe -Wall -W -fPIC -I${X11BASE}/include
X+CXXFLAGS += -pipe -Wall -W -fPIC -I${X11BASE}/include
X+#LEXFLAGS = 
X+#YACCFLAGS= -d
X+LINK     = ${CXX}
X LFLAGS   = -shared -Wl,-soname,libOglExt.so.1
X-LIBS     = 
X-AR       = ar cqs
X-RANLIB   = 
X-TAR      = tar -cf
X-GZIP     = gzip -9f
X-COPY     = cp -f
X-COPY_FILE= $(COPY) -p
X-COPY_DIR = $(COPY) -pR
X-DEL_FILE = rm -f
X-SYMLINK  = ln -sf
X-DEL_DIR  = rmdir
X-MOVE     = mv -f
X+LIBS     = -L${X11BASE}/lib -lGL
X+#AR       = ${AR} cqs
X+#RANLIB   = 
X+#TAR      = ${TAR} -cf
X+#GZIP     = ${GZIP_CMD} -9f
X+#COPY     = ${CP} -f
X+#COPY_FILE= $(COPY) -p
X+#COPY_DIR = $(COPY) -pR
X+DEL_FILE = ${RM} -f
X+SYMLINK  = ${LN} -sf
X+#DEL_DIR  = ${RMDIR}
X+#MOVE     = ${MV} -f
X 
X ####### Output directory
X 
X@@ -45,12 +45,12 @@
X 		RenderingContext.cpp
X OBJECTS = OglExt.o \
X 		RenderingContext.o
X-TARGET   = libOglExt.so.1.0.0
X+TARGET   = libOglExt.so.1
X TARGETA	= libOglExt.a
X-TARGETD	= libOglExt.so.1.0.0
X-TARGET0	= libOglExt.so
X-TARGET1	= libOglExt.so.1
X-TARGET2	= libOglExt.so.1.0
X+#TARGETD	= libOglExt.so.1.0.0
X+#TARGET0	= libOglExt.so
X+#TARGET1	= libOglExt.so.1
X+#TARGET2	= libOglExt.so.1.0
X 
X first: all
X ####### Implicit rules
X@@ -74,15 +74,15 @@
X 
X ####### Build rules
X 
X-all: Makefile  $(TARGET)
X+all: $(TARGET) $(TARGETA)
X 
X $(TARGET):  $(OBJECTS) 
X-	-$(DEL_FILE) $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2)
X+	-$(DEL_FILE) $(TARGET)
X 	$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS)
X-	-ln -s $(TARGET) $(TARGET0)
X-	-ln -s $(TARGET) $(TARGET1)
X-	-ln -s $(TARGET) $(TARGET2)
X 
X+$(TARGETA): $(OBJECTS)
X+	-$(DEL_FILE) $(TARGETA)
X+	$(AR) cqs $@ $(OBJECTS)
X 
X clean:
X 	-$(DEL_FILE) $(OBJECTS) 
END-of-oglext/files/patch-build_linux-gcc_Makefile
echo x - oglext/files/patch-src_Macros.h
sed 's/^X//' >oglext/files/patch-src_Macros.h << 'END-of-oglext/files/patch-src_Macros.h'
X--- src/Macros.h.orig	Mon Feb  2 19:23:57 2004
X+++ src/Macros.h	Mon Feb  2 19:24:13 2004
X@@ -18,7 +18,7 @@
X #define	_OGL_MACROS_H_
X 
X #ifndef	_WIN32
X-
X+	#define GLX_GLXEXT_PROTOTYPES
X 	#include <GL/glx.h>
X 
X #endif
END-of-oglext/files/patch-src_Macros.h
exit
--- oglext.shar ends here ---


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



More information about the freebsd-ports-bugs mailing list