[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: geomview



oishi@ims.ac.jp wrote:

 > 3D object viewerで、このpkgsrcではTcl/Tk、XFORM等組み込んでいません。
 > 誰かテストしてください。
 > (teapot等ぐりぐりまわして遊ぶと楽しいかも)

RCS Idと、ELF、NetBSD以外で使える(かどうかはわからないけど(^^;)ように
するためのpatchです。Tcl/Tk入れてみましたけど、DEPENDS書いてないです。

ところでこれ、動くのかどうかテストする一番簡単な方法はどうすればよいのでしょう?
geomview と実行したら、そのまま何も表示されないっす(^^;

sakamoto
--
diff -urN Geomview.orig/Makefile Geomview/Makefile
--- Geomview.orig/Makefile	Thu Oct  7 13:37:01 1999
+++ Geomview/Makefile	Fri Oct  8 14:30:24 1999
@@ -1,7 +1,10 @@
+# $NetBSD$
+#
+
 DISTNAME=	geomview-1.6.1-src
 PKGNAME=	geomview-1.6.1
 CATEGORIES=	graphics
-MASTER_SITES=	ftp://ftp.geom.umn.edu/pub/software/geomvie/
+MASTER_SITES=	ftp://ftp.geom.umn.edu/pub/software/geomview/
 
 MAINTAINER=	oishi@ims.ac.jp
 HOMEPAGE=	http://www.geom.umn.edu/software/download/geomview.html
@@ -12,6 +15,8 @@
 WRKSRC=		${WRKDIR}/Geomview
 
 USE_GMAKE=	yes
+USE_X11=	yes
+MAKE_ENV+=	LOWER_OPSYS=${LOWER_OPSYS}
 
 post-patch:
 		${MV} ${WRKSRC}/makefiles/mk.site.public \
diff -urN Geomview.orig/files/patch-sum Geomview/files/patch-sum
--- Geomview.orig/files/patch-sum	Thu Oct  7 13:47:18 1999
+++ Geomview/files/patch-sum	Fri Oct  8 14:24:53 1999
@@ -1,7 +1,7 @@
 $NetBSD$
 
-MD5 (patch-aa) = b457b42ebdd0e6535aca06a4dfc0147f
-MD5 (patch-ab) = abf696378989b9d8dd38817c4ae48fff
+MD5 (patch-aa) = 5c469bcf8142d42bd0a14f172ff96bc8
+MD5 (patch-ab) = 18dfe8517aa38ba80c48cbd389c346b6
 MD5 (patch-ac) = db12312438db01c92e806ae8e019a8c7
 MD5 (patch-ad) = 0390551ab4331f60a44e314f96505e80
-MD5 (patch-ae) = 88cd7b25027d85453fa5931a17e2dbba
+MD5 (patch-ae) = 1d7f4556baafaf7e8fd4d875c51dadd7
diff -urN Geomview.orig/patches/patch-aa Geomview/patches/patch-aa
--- Geomview.orig/patches/patch-aa	Wed Oct  6 19:33:25 1999
+++ Geomview/patches/patch-aa	Fri Oct  8 14:24:10 1999
@@ -5,7 +5,7 @@
  # choose to make one, here:
  
 -# CPU = whatever
-+CPU = NetBSD
++CPU = ${LOWER_OPSYS}
  
  # The options passed to the C compiler include COPTS.
  # If you don't need libraries and programs compiled with debugging symbols,
diff -urN Geomview.orig/patches/patch-ab Geomview/patches/patch-ab
--- Geomview.orig/patches/patch-ab	Wed Oct  6 21:39:22 1999
+++ Geomview/patches/patch-ab	Fri Oct  8 14:24:20 1999
@@ -1,5 +1,5 @@
---- makefiles/mk.NetBSD.orig	Wed Oct  6 20:14:31 1999
-+++ makefiles/mk.NetBSD	Wed Oct  6 20:13:13 1999
+--- makefiles/mk.netbsd.orig	Wed Oct  6 20:14:31 1999
++++ makefiles/mk.netbsd	Wed Oct  6 20:13:13 1999
 @@ -0,0 +1,49 @@
 +#
 +# Makefile that sets machine-specific variables and rules 
@@ -20,11 +20,11 @@
 +
 +# Add the location of the Motif (Xm/*.h) include files to the path.
 +# (Or, add a /usr/include/Xm sym-link and remove this -I option.)
-+SYSCOPTS = -pipe -DBSD -Dunix -Dalloca=alloca -I/usr/X11R6/include/X11 -I/usr/X11R6/include
++SYSCOPTS = -pipe -DBSD -Dunix -Dalloca=alloca -I${X11BASE}/include/X11 -I${X11BASE}/include
 +
-+SYSXLIBDIR = /usr/X11R6/lib
-+SYSMOTIFLIBS = -L${SYSXLIBDIR} -lXm
-+SYSXLIBS = -L${SYSXLIBDIR} -lXt -lXext -lXmu -lX11
++SYSXLIBDIR = ${X11BASE}/lib
++SYSMOTIFLIBS = ${LDFLAGS} -lXm
++SYSXLIBS = ${LDFLAGS} -lXt -lXext -lXmu -lX11
 +
 +# If you have the FORMS library, uncomment these lines and edit:
 +#  set FORMSLIBS to the list of all libs needed
@@ -34,8 +34,8 @@
 +
 +# If you have Tcl/Tk libraries (tk 4.0 or later), uncomment and edit:
 +# indicate cc options to find tk-related libraries and include-files.
-+#TKLIBS = -L/usr/X11R6/lib -ltk -ltcl -L${SYSXLIBDIR} -lX11
-+#TKINC = -I/usr/X11R6/include
++TKLIBS = ${LDFLAGS} -ltk80 -ltcl80 -lX11
++TKINC = -I${LOCALBASE}/include/tk8.0 -I${LOCALBASE}/include/tcl8.0
 +
 +
 +# Choose or adapt one of the following sets of definitions.
@@ -47,6 +47,6 @@
 +
 +# for OpenGL using Mesa libraries:
 +MGTYPE = -DMGOPENGL
-+MGLIBS = -L${SYSXLIBDIR} -lMesaGL -lMesaGLU
-+MGINC =  -I/usr/X11R6/include/GL 
++MGLIBS = ${LDFLAGS} -lMesaGL -lMesaGLU
++MGINC =  -I${X11BASE}/include/GL 
 +
diff -urN Geomview.orig/patches/patch-ae Geomview/patches/patch-ae
--- Geomview.orig/patches/patch-ae	Wed Oct  6 22:13:55 1999
+++ Geomview/patches/patch-ae	Fri Oct  8 10:14:12 1999
@@ -5,7 +5,7 @@
  #endif 
  
 -#ifdef __FreeBSD__
-+#if defined(__FreeBSD__) || defined(__NetBSD__)
++#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
  #define _base _bf._base
  #define _ptr _p
  #define _cnt _r
@@ -14,7 +14,7 @@
  #else   /* Roughly vanilla stdio */
  
 -#if defined(AIX) || defined(__osf__) || defined(__hpux) || defined(__FreeBSD__)
-+#if defined(AIX) || defined(__osf__) || defined(__hpux) || defined(__FreeBSD__) || defined(__NetBSD__)
++#if defined(AIX) || defined(__osf__) || defined(__hpux) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
  
  /* The stdio-buf-hacking code below doesn't work on some systems, so
   * just ship the data through a pipe.  Small (8K?) size limit.
diff -urN Geomview.orig/pkg/PLIST Geomview/pkg/PLIST
--- Geomview.orig/pkg/PLIST	Thu Oct  7 14:10:04 1999
+++ Geomview/pkg/PLIST	Thu Oct  7 17:14:10 1999
@@ -1,3 +1,4 @@
+@comment $NetBSD$
 bin/anytooff
 bin/anytoucd
 bin/bdy