diff options
Diffstat (limited to 'graphics/libGLw')
-rw-r--r-- | graphics/libGLw/Makefile | 44 | ||||
-rw-r--r-- | graphics/libGLw/distinfo | 3 | ||||
-rw-r--r-- | graphics/libGLw/files/config | 31 | ||||
-rw-r--r-- | graphics/libGLw/files/patch-glw-GLwDrawA.c | 11 | ||||
-rw-r--r-- | graphics/libGLw/files/patch-glw-Makefile | 15 | ||||
-rw-r--r-- | graphics/libGLw/pkg-descr | 6 | ||||
-rw-r--r-- | graphics/libGLw/pkg-plist | 6 |
7 files changed, 116 insertions, 0 deletions
diff --git a/graphics/libGLw/Makefile b/graphics/libGLw/Makefile new file mode 100644 index 000000000000..3360d06d6c08 --- /dev/null +++ b/graphics/libGLw/Makefile @@ -0,0 +1,44 @@ +# New ports collection makefile for: libGLw +# Date created: 7 May 2004 +# Whom: anholt@FreeBSD.org +# +# $FreeBSD$ +# + +PORTNAME= libGLw +PORTVERSION= 6.5.3 +CATEGORIES= graphics +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= mesa3d +DISTNAME= MesaLib-${PORTVERSION} + +MAINTAINER= x11@FreeBSD.org +COMMENT= OpenGL widgets library + +CONFLICTS= XFree86-libraries-* xorg-libraries-6.* + +LIB_DEPENDS+= Xm.3:${PORTSDIR}/x11-toolkits/open-motif + +USE_BZIP2= yes +USE_LDCONFIG= yes +USE_XORG= xt +USE_GL= gl +CFLAGS+= -D__GLX_MOTIF=1 + +USE_X_PREFIX= yes +WRKSRC= ${WRKDIR}/Mesa-${PORTVERSION}/src/glw/ + +ALL_TARGET= libGLw.so +GLWHEADERS= GLwDrawA.h GLwDrawAP.h GLwMDrawA.h GLwMDrawAP.h + +post-patch: + ${CP} ${FILESDIR}/config ${WRKDIR}/Mesa-${PORTVERSION}/configs/current + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/libGLw.so.1 ${PREFIX}/lib + ${LN} -sf libGLw.so.1 ${PREFIX}/lib/libGLw.so +.for i in ${GLWHEADERS} + ${INSTALL_DATA} ${WRKDIR}/Mesa-${PORTVERSION}/src/glw/$i ${PREFIX}/include/GL +.endfor + +.include <bsd.port.mk> diff --git a/graphics/libGLw/distinfo b/graphics/libGLw/distinfo new file mode 100644 index 000000000000..127cae9262ef --- /dev/null +++ b/graphics/libGLw/distinfo @@ -0,0 +1,3 @@ +MD5 (MesaLib-6.5.3.tar.bz2) = 46359457147c469745f24b5074a186f0 +SHA256 (MesaLib-6.5.3.tar.bz2) = f8b09b40b59d6951dcd9889d19a67d1995c5f558bafa1e978f4b0e88035a96b3 +SIZE (MesaLib-6.5.3.tar.bz2) = 3351899 diff --git a/graphics/libGLw/files/config b/graphics/libGLw/files/config new file mode 100644 index 000000000000..4a3f497b1261 --- /dev/null +++ b/graphics/libGLw/files/config @@ -0,0 +1,31 @@ +# Configuration for mesa-demos port for FreeBSD +# Taken from Mesa CVS mesa/Mesa/configs/freebsd Rev 1.2 +# $FreeBSD: /tmp/pcvs/ports/graphics/libGLw/files/Attic/config,v 1.1 2007-05-19 20:09:45 flz Exp $ +# + +# Set and remember $CFLAGS, $CXXFLAGS, $CC and $CXX before they are +# overriden in default include + +_CC := $(CC) +_CXX := $(CXX) +_CFLAGS := -fPIC -pedantic -I$(X11BASE)/include -DUSE_XSHM -DHZ=100 $(CFLAGS) +_CXXFLAGS := -fPIC -pedantic $(CXXFLAGS) + +include $(TOP)/configs/default + +CONFIG_NAME = FreeBSD + +# Now reset compiler and flags +CC = $(_CC) +CXX = $(_CXX) +CFLAGS = $(_CFLAGS) +CXXFLAGS = $(_CXXFLAGS) + +GLUT_CFLAGS = -fexceptions + +LIB_DIR = $(X11BASE)/lib + +GLW_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB) -lm + +APP_LIB_DEPS = -L$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lXext -lXmu -lXi -lX11 -lm + diff --git a/graphics/libGLw/files/patch-glw-GLwDrawA.c b/graphics/libGLw/files/patch-glw-GLwDrawA.c new file mode 100644 index 000000000000..3f5db5eb769c --- /dev/null +++ b/graphics/libGLw/files/patch-glw-GLwDrawA.c @@ -0,0 +1,11 @@ +--- GLwDrawA.c.orig Tue Mar 13 21:11:41 2007 ++++ GLwDrawA.c Tue Mar 13 21:12:38 2007 +@@ -668,7 +668,7 @@ + #endif + + +-#ifndef __GLX_MOTIF ++#ifdef __GLX_MOTIF + + /* Make context current */ + void GLwDrawingAreaMakeCurrent(Widget w,GLXContext ctx){ diff --git a/graphics/libGLw/files/patch-glw-Makefile b/graphics/libGLw/files/patch-glw-Makefile new file mode 100644 index 000000000000..03f9d3687549 --- /dev/null +++ b/graphics/libGLw/files/patch-glw-Makefile @@ -0,0 +1,15 @@ +--- Makefile.orig Thu Dec 7 19:46:44 2006 ++++ Makefile Thu Dec 7 19:47:07 2006 +@@ -37,10 +37,10 @@ + + + # Make the library +-$(TOP)/$(LIB_DIR)/$(GLW_LIB_NAME): $(OBJECTS) ++$(GLW_LIB_NAME): $(OBJECTS) + $(TOP)/bin/mklib -o $(GLW_LIB) -linker '$(CC)' \ + -major $(MAJOR) -minor $(MINOR) -patch $(TINY) \ +- $(MKLIB_OPTIONS) -install $(TOP)/$(LIB_DIR) \ ++ $(MKLIB_OPTIONS) \ + $(GLW_LIB_DEPS) $(OBJECTS) + + diff --git a/graphics/libGLw/pkg-descr b/graphics/libGLw/pkg-descr new file mode 100644 index 000000000000..b6ec770ff87d --- /dev/null +++ b/graphics/libGLw/pkg-descr @@ -0,0 +1,6 @@ +This package contains the OpenGL widgets library. + +WWW: http://www.mesa3d.org/ + +- Florent Thoumie +flz@FreeBSD.org diff --git a/graphics/libGLw/pkg-plist b/graphics/libGLw/pkg-plist new file mode 100644 index 000000000000..a3105d8fd45f --- /dev/null +++ b/graphics/libGLw/pkg-plist @@ -0,0 +1,6 @@ +include/GL/GLwDrawA.h +include/GL/GLwDrawAP.h +include/GL/GLwMDrawA.h +include/GL/GLwMDrawAP.h +lib/libGLw.so +lib/libGLw.so.1 |