diff options
author | thierry <thierry@FreeBSD.org> | 2004-05-30 06:08:55 +0800 |
---|---|---|
committer | thierry <thierry@FreeBSD.org> | 2004-05-30 06:08:55 +0800 |
commit | 9cce5aedbc4967c536bdab30d0190cec28a9700b (patch) | |
tree | b4311081adf66aad42c3c956151bf62e304585aa | |
parent | 234679722a969af0ee978ca10eec3fd6f9d1c6bf (diff) | |
download | freebsd-ports-gnome-9cce5aedbc4967c536bdab30d0190cec28a9700b.tar.gz freebsd-ports-gnome-9cce5aedbc4967c536bdab30d0190cec28a9700b.tar.zst freebsd-ports-gnome-9cce5aedbc4967c536bdab30d0190cec28a9700b.zip |
Add oglext 1.0.2, a library for easier access to OpenGL extensions.
PR: 62297
Submitted by: Igor Pokrovsky <tiamat@comset.net>
-rw-r--r-- | graphics/Makefile | 1 | ||||
-rw-r--r-- | graphics/oglext/Makefile | 46 | ||||
-rw-r--r-- | graphics/oglext/distinfo | 2 | ||||
-rw-r--r-- | graphics/oglext/files/patch-build_linux-gcc_Makefile | 91 | ||||
-rw-r--r-- | graphics/oglext/files/patch-src_Macros.h | 11 | ||||
-rw-r--r-- | graphics/oglext/pkg-descr | 9 | ||||
-rw-r--r-- | graphics/oglext/pkg-plist | 9 |
7 files changed, 169 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile index 712b2a4eb3c5..d9e04b4dd079 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -263,6 +263,7 @@ SUBDIR += ocaml-images SUBDIR += ocaml-lablgl SUBDIR += ocrad + SUBDIR += oglext SUBDIR += opendis SUBDIR += opendx SUBDIR += opendx-samples diff --git a/graphics/oglext/Makefile b/graphics/oglext/Makefile new file mode 100644 index 000000000000..c7dcb073c66b --- /dev/null +++ b/graphics/oglext/Makefile @@ -0,0 +1,46 @@ +# New ports collection makefile for: oglext +# Date created: 01 Feb 2004 +# Whom: Igor Pokrovsky <tiamat@comset.net> +# +# $FreeBSD$ +# + +PORTNAME= oglext +PORTVERSION= 1.0.2 +CATEGORIES= graphics devel +MASTER_SITES= http://www.julius.caesar.de/oglext/ +DISTNAME= ${PORTNAME}-${PORTVERSION}-src + +MAINTAINER= tiamat@comset.net +COMMENT= A library for easier access to OpenGL extensions + +USE_ZIP= yes +USE_GMAKE= yes +USE_GL= yes +USE_X_PREFIX= yes +INSTALLS_SHLIB= yes +USE_REINPLACE= yes +REINPLACE_ARGS= -i "" + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} +BUILD_WRKSRC= ${WRKSRC}/src +MAKEFILE= ${WRKSRC}/build/linux-gcc/Makefile +MAKE_ENV= AR="${AR}" LN="${LN}" RM="${RM}" + +pre-patch: + @${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e "s/`${PRINTF} '\r'`//" + +do-install: + ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/libOglExt.so.1 ${PREFIX}/lib + ${LN} -sf ${PREFIX}/lib/libOglExt.so.1 ${PREFIX}/lib/libOglExt.so + ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/libOglExt.a ${PREFIX}/lib +# install includes in separate dir to avoid conflicts with Mesa + @${MKDIR} ${PREFIX}/include/${PORTNAME} + ${INSTALL_DATA} ${WRKSRC}/include/*.h ${PREFIX}/include/${PORTNAME} +.ifndef (NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR} +.endif + +.include <bsd.port.mk> diff --git a/graphics/oglext/distinfo b/graphics/oglext/distinfo new file mode 100644 index 000000000000..c8798f9e45a2 --- /dev/null +++ b/graphics/oglext/distinfo @@ -0,0 +1,2 @@ +MD5 (oglext-1.0.2-src.zip) = 569e331cb6131e75e105b9c6a0e4ae6a +SIZE (oglext-1.0.2-src.zip) = 172296 diff --git a/graphics/oglext/files/patch-build_linux-gcc_Makefile b/graphics/oglext/files/patch-build_linux-gcc_Makefile new file mode 100644 index 000000000000..d705152277c6 --- /dev/null +++ b/graphics/oglext/files/patch-build_linux-gcc_Makefile @@ -0,0 +1,91 @@ +--- build/linux-gcc/Makefile.orig Mon Feb 2 19:30:41 2004 ++++ build/linux-gcc/Makefile Mon Feb 2 19:34:14 2004 +@@ -8,28 +8,28 @@ + + ####### Compiler, tools and options + +-CC = gcc +-CXX = g++ +-LEX = flex +-YACC = yacc +-CFLAGS = -pipe -Wall -W -fPIC +-CXXFLAGS = -pipe -Wall -W -fPIC +-LEXFLAGS = +-YACCFLAGS= -d +-LINK = g++ ++#CC = gcc ++#CXX = g++ ++#LEX = flex ++#YACC = yacc ++CFLAGS += -pipe -Wall -W -fPIC -I${X11BASE}/include ++CXXFLAGS += -pipe -Wall -W -fPIC -I${X11BASE}/include ++#LEXFLAGS = ++#YACCFLAGS= -d ++LINK = ${CXX} + LFLAGS = -shared -Wl,-soname,libOglExt.so.1 +-LIBS = +-AR = ar cqs +-RANLIB = +-TAR = tar -cf +-GZIP = gzip -9f +-COPY = cp -f +-COPY_FILE= $(COPY) -p +-COPY_DIR = $(COPY) -pR +-DEL_FILE = rm -f +-SYMLINK = ln -sf +-DEL_DIR = rmdir +-MOVE = mv -f ++LIBS = -L${X11BASE}/lib -lGL ++#AR = ${AR} cqs ++#RANLIB = ++#TAR = ${TAR} -cf ++#GZIP = ${GZIP_CMD} -9f ++#COPY = ${CP} -f ++#COPY_FILE= $(COPY) -p ++#COPY_DIR = $(COPY) -pR ++DEL_FILE = ${RM} -f ++SYMLINK = ${LN} -sf ++#DEL_DIR = ${RMDIR} ++#MOVE = ${MV} -f + + ####### Output directory + +@@ -45,12 +45,12 @@ + RenderingContext.cpp + OBJECTS = OglExt.o \ + RenderingContext.o +-TARGET = libOglExt.so.1.0.0 ++TARGET = libOglExt.so.1 + TARGETA = libOglExt.a +-TARGETD = libOglExt.so.1.0.0 +-TARGET0 = libOglExt.so +-TARGET1 = libOglExt.so.1 +-TARGET2 = libOglExt.so.1.0 ++#TARGETD = libOglExt.so.1.0.0 ++#TARGET0 = libOglExt.so ++#TARGET1 = libOglExt.so.1 ++#TARGET2 = libOglExt.so.1.0 + + first: all + ####### Implicit rules +@@ -74,15 +74,15 @@ + + ####### Build rules + +-all: Makefile $(TARGET) ++all: $(TARGET) $(TARGETA) + + $(TARGET): $(OBJECTS) +- -$(DEL_FILE) $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2) ++ -$(DEL_FILE) $(TARGET) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS) +- -ln -s $(TARGET) $(TARGET0) +- -ln -s $(TARGET) $(TARGET1) +- -ln -s $(TARGET) $(TARGET2) + ++$(TARGETA): $(OBJECTS) ++ -$(DEL_FILE) $(TARGETA) ++ $(AR) cqs $@ $(OBJECTS) + + clean: + -$(DEL_FILE) $(OBJECTS) diff --git a/graphics/oglext/files/patch-src_Macros.h b/graphics/oglext/files/patch-src_Macros.h new file mode 100644 index 000000000000..6557a788f92d --- /dev/null +++ b/graphics/oglext/files/patch-src_Macros.h @@ -0,0 +1,11 @@ +--- src/Macros.h.orig Mon Feb 2 19:23:57 2004 ++++ src/Macros.h Mon Feb 2 19:24:13 2004 +@@ -18,7 +18,7 @@ + #define _OGL_MACROS_H_ + + #ifndef _WIN32 +- ++ #define GLX_GLXEXT_PROTOTYPES + #include <GL/glx.h> + + #endif diff --git a/graphics/oglext/pkg-descr b/graphics/oglext/pkg-descr new file mode 100644 index 000000000000..a74e09cf4b55 --- /dev/null +++ b/graphics/oglext/pkg-descr @@ -0,0 +1,9 @@ +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. + +WWW: http://www.julius.caesar.de/oglext/ + +- Igor Pokrovsky +tiamat@comset.net diff --git a/graphics/oglext/pkg-plist b/graphics/oglext/pkg-plist new file mode 100644 index 000000000000..5fb2234a34c2 --- /dev/null +++ b/graphics/oglext/pkg-plist @@ -0,0 +1,9 @@ +include/oglext/OglExt.h +include/oglext/glext.h +lib/libOglExt.a +lib/libOglExt.so +lib/libOglExt.so.1 +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/extensionlist.html +%%PORTDOCS%%@dirrm %%DOCSDIR%% +@dirrm include/oglext |