ports/83856: Update port: graphics/g3dviewer

KATO Tsuguru tkato432 at yahoo.com
Thu Jul 21 14:10:40 UTC 2005


>Number:         83856
>Category:       ports
>Synopsis:       Update port: graphics/g3dviewer
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 21 14:10:03 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.11-RELEASE-p11 i386
>Organization:
>Environment:
>Description:
- Fix build on 4-stable
- Avoid installing arch-dependent loadable modules under PREFIX/share

New file:
files/patch-src-glarea.c

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/graphics/g3dviewer/Makefile graphics/g3dviewer/Makefile
--- /usr/ports/graphics/g3dviewer/Makefile	Thu Jul 21 13:48:01 2005
+++ graphics/g3dviewer/Makefile	Thu Jul 21 18:02:09 2005
@@ -8,7 +8,7 @@
 
 PORTNAME=	g3dviewer
 PORTVERSION=	0.1.0
-PORTREVISION=	0
+PORTREVISION=	1
 CATEGORIES=	graphics
 MASTER_SITES=	http://automagically.de/files/
 
@@ -17,16 +17,19 @@
 
 LIB_DEPENDS=	gtkglext-x11-1.0.2:${PORTSDIR}/x11-toolkits/gtkglext
 
-USE_GNOME=	gtk20 pkgconfig
-USE_MESA=	yes
+USE_GNOME=	gnometarget gtk20
+USE_GL=		yes
+USE_REINPLACE=	yes
 GNU_CONFIGURE=	yes
-CONFIGURE_ENV=	CPPFLAGS="-I${X11BASE}/include" \
-		LDFLAGS="-L${X11BASE}/lib"
+CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
 
-post-install:
-	@${FIND} ${DATADIR} ! -type d | \
-		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
-	@${FIND} ${DATADIR} -type d | ${SORT} -r | \
-		${SED} 's,^${PREFIX}/, at dirrm ,' >> ${TMPPLIST}
+CPPFLAGS=	-I${LOCALBASE}/include -I${X11BASE}/include 
+LDFLAGS=	-L${LOCALBASE}/lib -L${X11BASE}/lib 
+
+post-patch:
+	@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
+		's|$$(pkgdatadir)/plugins/|$$(pkglibdir)/plugins/|g'
+	@${REINPLACE_CMD} -e 's|DBG_CFLAGS="-O2"|DBG_CFLAGS=""|g ; \
+		 s|$$datadir/$$PACKAGE/|$$libdir/$$PACKAGE/|g' ${WRKSRC}/configure
 
 .include <bsd.port.mk>
diff -urN /usr/ports/graphics/g3dviewer/files/patch-src-glarea.c graphics/g3dviewer/files/patch-src-glarea.c
--- /usr/ports/graphics/g3dviewer/files/patch-src-glarea.c	Thu Jan  1 09:00:00 1970
+++ graphics/g3dviewer/files/patch-src-glarea.c	Wed Jul 20 02:34:46 2005
@@ -0,0 +1,19 @@
+--- src/glarea.c.orig	Wed Jul 13 05:18:12 2005
++++ src/glarea.c	Wed Jul 20 02:34:25 2005
+@@ -55,6 +55,7 @@
+ #ifdef HAVE_GTKGLEXT
+ 	GdkGLDrawable *gldrawable;
+ 	GdkGLContext *glcontext;
++	G3DModel *model;
+ 
+ 	gldrawable = gtk_widget_get_gl_drawable(widget);
+ 	glcontext = gtk_widget_get_gl_context(widget);
+@@ -64,7 +65,7 @@
+ 	if(gtk_gl_area_make_current(GTK_GL_AREA(widget)))
+ 	{
+ #endif
+-		G3DModel *model = (G3DModel*)gtk_object_get_data(GTK_OBJECT(widget),
++		model = (G3DModel*)gtk_object_get_data(GTK_OBJECT(widget),
+ 			"model");
+ 		glViewport(0,0, widget->allocation.width, widget->allocation.height);
+ 		model->aspect = (float)widget->allocation.width /
diff -urN /usr/ports/graphics/g3dviewer/pkg-descr graphics/g3dviewer/pkg-descr
--- /usr/ports/graphics/g3dviewer/pkg-descr	Thu Jul 21 13:48:01 2005
+++ graphics/g3dviewer/pkg-descr	Wed Jul 20 02:59:42 2005
@@ -1,15 +1,18 @@
 G3DViewer is a 3D file viewer for GTK+ supporting a variety of file types:
    - 3D Studio (.3ds, .prj)
    - LightWave (.lw, .lwb, .lwo)
-   - Alias Wavefront Maya (.obj)
+   - Alias Wavefront (.obj)
    - Impulse TurboSilver / Imagine (.iob)
    - AutoCAD (.dxf)
    - Quake II Models (.md2)
-   - Neutral File Format (.nff) new
+   - Neutral File Format (.nff)
+   - 3D Metafile (.3dmf, .3mf, .b3d)
+   - Caligari TrueSpace Objects (.cob)
+   - Quick3D Objects & Scenes (.q3o, q3s)
 
 Some of the features are:
    - Wireframe mode
    - Specular lighting (not really nice at the moment)
    - changable background color :)
 
-WWW: http://automagically.de/?g3dviewer
+WWW: http://automagically.de/index.shtml?g3dviewer
diff -urN /usr/ports/graphics/g3dviewer/pkg-plist graphics/g3dviewer/pkg-plist
--- /usr/ports/graphics/g3dviewer/pkg-plist	Thu Jul 21 13:48:01 2005
+++ graphics/g3dviewer/pkg-plist	Wed Jul 20 02:47:17 2005
@@ -1,2 +1,23 @@
 bin/g3dviewer
 include/g3dviewer_plugin.h
+lib/g3dviewer/plugins/image/img_bmp.so
+lib/g3dviewer/plugins/import/imp_3dmf.so
+lib/g3dviewer/plugins/import/imp_3ds.so
+lib/g3dviewer/plugins/import/imp_cob.so
+lib/g3dviewer/plugins/import/imp_dxf.so
+lib/g3dviewer/plugins/import/imp_heightfield.so
+lib/g3dviewer/plugins/import/imp_iob.so
+lib/g3dviewer/plugins/import/imp_lwo.so
+lib/g3dviewer/plugins/import/imp_md2.so
+lib/g3dviewer/plugins/import/imp_nff.so
+lib/g3dviewer/plugins/import/imp_obj.so
+lib/g3dviewer/plugins/import/imp_q3o.so
+%%DATADIR%%/pixmaps/icon16_material.xpm
+%%DATADIR%%/pixmaps/icon16_model.xpm
+%%DATADIR%%/pixmaps/icon16_plugins.xpm
+ at dirrm %%DATADIR%%/pixmaps
+ at dirrm %%DATADIR%%
+ at dirrm lib/g3dviewer/plugins/import
+ at dirrm lib/g3dviewer/plugins/image
+ at dirrm lib/g3dviewer/plugins
+ at dirrm lib/g3dviewer
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list