Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Apr 2001 15:29:39 -0400 (EDT)
From:      aa8vb@nc.rr.com
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        aa8vb@nc.rr.com
Subject:   ports/26931: (NEW PORT) Virtual Terrain Applications
Message-ID:  <200104281929.f3SJTdt09614@stealth.dummynet>

next in thread | raw e-mail | index | archive | help

>Number:         26931
>Category:       ports
>Synopsis:       (NEW PORT) Virtual Terrain Applications
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 28 12:30:07 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Randall Hopper
>Release:        FreeBSD 4.2-RELEASE i386
>Organization:
self
>Environment:

	Stock 4.2-RELEASE

>Description:

	Attached shar adds the Virtual Terrain Project applications package
	as a port.  Currently the Enviro application is ported.  VTBuilder
	will be ported in the future.

>How-To-Repeat:

>Fix:

# 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:
#
#	vterrain-apps
#	vterrain-apps/Makefile
#	vterrain-apps/distinfo
#	vterrain-apps/pkg-comment
#	vterrain-apps/pkg-descr
#	vterrain-apps/pkg-plist
#	vterrain-apps/files
#	vterrain-apps/files/patch-aa
#	vterrain-apps/files/patch-ab
#	vterrain-apps/files/patch-ac
#	vterrain-apps/files/patch-ad
#	vterrain-apps/files/patch-ae
#	vterrain-apps/files/patch-af
#
echo c - vterrain-apps
mkdir -p vterrain-apps > /dev/null 2>&1
echo x - vterrain-apps/Makefile
sed 's/^X//' >vterrain-apps/Makefile << 'END-of-vterrain-apps/Makefile'
X# New ports collection makefile for:	vterrain-sdk virtual terrain development and modeling libraries
X# Date created:		27 Apr 2001
X# Whom:			Randall Hopper
X#
X# $FreeBSD: ports/devel/libgetline/Makefile,v 1.9 2000/09/23 18:47:27 will Exp $
X#
X
XPORTNAME=	vterrain-apps
XPORTVERSION=	010423
XCATEGORIES=	graphics
XMASTER_SITES=	ftp://ftp.vterrain.org/pub/vterrain/dist/
XDISTNAME=	TerrainApps-${PORTVERSION}
XUSE_ZIP=	yes
XEXTRACT_CMD=	unzip -a
X
XWRKSRC=		${WRKDIR}/TerrainApps
X
XMAINTAINER=	aa8vb@nc.rr.com
X
XUSE_X_PREFIX=	yes
XUSE_MESA=	yes
XUSE_GMAKE=	yes
XINSTALLS_SHLIB=	yes
X
XLIB_DEPENDS=    vtdata.1:${PORTSDIR}/graphics/vterrain-sdk \
X		wx_gtk_gl.2:${PORTSDIR}/x11-toolkits/wxgtk \
X		netcdf.1:${PORTSDIR}/math/netcdf \
X		shp.1:${PORTSDIR}/devel/shapelib \
X		png.4:${PORTSDIR}/graphics/png \
X		osg.1:${PORTSDIR}/graphics/osg \
X		projection.1:${PORTSDIR}/devel/projectionlib
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/Enviro/wxEnviro ${PREFIX}/bin
X
X.include <bsd.port.mk>
END-of-vterrain-apps/Makefile
echo x - vterrain-apps/distinfo
sed 's/^X//' >vterrain-apps/distinfo << 'END-of-vterrain-apps/distinfo'
XMD5 (TerrainApps-010423.zip) = 89c692d27d90e86c41178fd5fe844f93
END-of-vterrain-apps/distinfo
echo x - vterrain-apps/pkg-comment
sed 's/^X//' >vterrain-apps/pkg-comment << 'END-of-vterrain-apps/pkg-comment'
XVirtual Terrain Project Applications
END-of-vterrain-apps/pkg-comment
echo x - vterrain-apps/pkg-descr
sed 's/^X//' >vterrain-apps/pkg-descr << 'END-of-vterrain-apps/pkg-descr'
X              VTP Apps - Virtual Terrain Project Applications
X
XThe goal of VTP is to foster the creation of tools for easily constructing
Xany part of the real world in interactive, 3D digital form.
X
XThe VTP applications provide the ability to construct (VTBuilder) and 
Xinteractively view (Enviro) 3D virtual terrains.
X
Xhttp://www.vterrain.org/
X
END-of-vterrain-apps/pkg-descr
echo x - vterrain-apps/pkg-plist
sed 's/^X//' >vterrain-apps/pkg-plist << 'END-of-vterrain-apps/pkg-plist'
Xbin/wxEnviro
END-of-vterrain-apps/pkg-plist
echo c - vterrain-apps/files
mkdir -p vterrain-apps/files > /dev/null 2>&1
echo x - vterrain-apps/files/patch-aa
sed 's/^X//' >vterrain-apps/files/patch-aa << 'END-of-vterrain-apps/files/patch-aa'
X--- Make.defs.orig	Wed Apr  4 07:32:28 2001
X+++ Make.defs	Fri Apr 27 21:12:16 2001
X@@ -22,21 +22,6 @@
X # SGI IRIX with GCC  (tested with ver. 2.95.3-test2)
X #   (IRIX Folks:  Read TerrainApps/README.sgi!)
X #------------------------------------------------------------------------------
X-CC        = gcc
X-CXX       = g++
X-AR        = ar ruv
X-COPT      = -O -g
X-LD        = $(CXX)
X-LD_SHARED = $(CXX) -shared
X-
X-GLUT_LIB = $(HOME)/software/Mesa-3.4.1/lib/libglut.a
X-GLU_LIB  = $(HOME)/software/Mesa-3.4.1/lib/libGLU.a
X-LDIRFLAGS = $(LDIRS:%=-L%)                \
X-            -Wl,-rpath,$(subst $(space),$(colon),$(LDIRS))
X-
X-#------------------------------------------------------------------------------
X-# FreeBSD with GCC (tested with ver. 2.95.2)
X-#------------------------------------------------------------------------------
X ## CC        = gcc
X ## CXX       = g++
X ## AR        = ar ruv
X@@ -44,11 +29,26 @@
X ## LD        = $(CXX)
X ## LD_SHARED = $(CXX) -shared
X ## 
X-## GLUT_LIB = -lglut
X-## GLU_LIB  = -lGLU
X-## EXTRA_LIBS = -lXi
X+## GLUT_LIB = $(HOME)/software/Mesa-3.4.1/lib/libglut.a
X+## GLU_LIB  = $(HOME)/software/Mesa-3.4.1/lib/libGLU.a
X ## LDIRFLAGS = $(LDIRS:%=-L%)                \
X-##             -rpath $(subst $(space),$(colon),$(LDIRS))
X+##             -Wl,-rpath,$(subst $(space),$(colon),$(LDIRS))
X+
X+#------------------------------------------------------------------------------
X+# FreeBSD with GCC (tested with ver. 2.95.2)
X+#------------------------------------------------------------------------------
X+#CC        = gcc
X+#CXX       = g++
X+AR        = ar ruv
X+COPT      = -O
X+LD        = $(CXX)
X+LD_SHARED = $(CXX) -shared
X+
X+GLUT_LIB = -lglut
X+GLU_LIB  = -lGLU
X+EXTRA_LIBS = -lXi
X+LDIRFLAGS = $(LDIRS:%=-L%)                \
X+            -rpath $(subst $(space),$(colon),$(LDIRS))
X 
X #------------------------------------------------------------------------------
X # Linux with GCC (tested with ver. 2.95.3)
X@@ -86,41 +86,41 @@
X # NOTE: VTP_ROOT is set in each Makefile
X 
X APIS_DIR         = $(VTP_ROOT)/APIs
X-TERRAIN_SDK_DIR  = $(VTP_ROOT)/TerrainSDK
X+TERRAIN_SDK_DIR  = $(X_INC)/TerrainSDK
X TERRAIN_APPS_DIR = $(VTP_ROOT)/TerrainApps
X VTDATA_DIR       = $(TERRAIN_SDK_DIR)/vtdata
X VTLIB_DIR        = $(TERRAIN_SDK_DIR)/vtlib
X VTOSG_DIR        = $(VTLIB_DIR)/vtosg
X 
X-NETCDF_INC = $(APIS_DIR)/NetCDF/include
X-NETCDF_LIB = $(APIS_DIR)/NetCDF/lib
X-#NETCDF_INC = /usr/local/include
X-#NETCDF_LIB = /usr/local/lib
X-
X-SHAPE_INC = $(APIS_DIR)/shapelib/include
X-SHAPE_LIB = $(APIS_DIR)/shapelib/lib
X-#SHAPE_INC = /usr/local/include
X-#SHAPE_LIB = /usr/local/lib
X-
X-PNG_INC = $(APIS_DIR)/libpng-1.0.8/include
X-PNG_LIB = $(APIS_DIR)/libpng-1.0.8/lib
X-#PNG_INC = /usr/local/include
X-#PNG_LIB = /usr/local/lib
X-
X-OSG_INC = $(VTP_ROOT)/OpenSceneGraph-0.8/include
X-OSG_LIB = $(VTP_ROOT)/OpenSceneGraph-0.8/lib
X-#OSG_INC = /usr/local/include
X-#OSG_LIB = /usr/local/lib
X-
X-PROJECTION_INC = $(APIS_DIR)/ProjectionLib
X-PROJECTION_LIB = $(APIS_DIR)/ProjectionLib
X-#PROJECTION_INC = /usr/local/include
X-#PROJECTION_LIB = /usr/local/lib
X-
X-BOOST_SRC = $(APIS_DIR)/boost
X-BOOST_INC = $(APIS_DIR)
X-
X-VTDATA_INST_DIR = $(VTDATA_DIR)
X-VTOSG_INST_DIR  = $(VTOSG_DIR)
X-#VTDATA_INST_DIR = /usr/local/lib
X-#VTOSG_INST_DIR  = /usr/local/lib
X+#NETCDF_INC = $(APIS_DIR)/NetCDF/include
X+#NETCDF_LIB = $(APIS_DIR)/NetCDF/lib
X+NETCDF_INC = $(LOCALBASE)/include
X+NETCDF_LIB = $(LOCALBASE)/lib
X+
X+#SHAPE_INC = $(APIS_DIR)/shapelib/include
X+#SHAPE_LIB = $(APIS_DIR)/shapelib/lib
X+SHAPE_INC = $(LOCALBASE)/include
X+SHAPE_LIB = $(LOCALBASE)/lib
X+
X+#PNG_INC = $(APIS_DIR)/libpng-1.0.8/include
X+#PNG_LIB = $(APIS_DIR)/libpng-1.0.8/lib
X+PNG_INC = $(LOCALBASE)/include
X+PNG_LIB = $(LOCALBASE)/lib
X+
X+#OSG_INC = $(VTP_ROOT)/OpenSceneGraph-0.8/include
X+#OSG_LIB = $(VTP_ROOT)/OpenSceneGraph-0.8/lib
X+OSG_INC = $(LOCALBASE)/include
X+OSG_LIB = $(LOCALBASE)/lib
X+
X+#PROJECTION_INC = $(APIS_DIR)/ProjectionLib
X+#PROJECTION_LIB = $(APIS_DIR)/ProjectionLib
X+PROJECTION_INC = $(LOCALBASE)/include
X+PROJECTION_LIB = $(LOCALBASE)/lib
X+
X+BOOST_SRC = $(VTDATA_DIR)
X+BOOST_INC = $(VTDATA_DIR)
X+
X+#VTDATA_INST_DIR = $(VTDATA_DIR)
X+#VTOSG_INST_DIR  = $(VTOSG_DIR)
X+VTDATA_INST_DIR = $(LOCALBASE)/lib
X+VTOSG_INST_DIR  = $(LOCALBASE)/lib
END-of-vterrain-apps/files/patch-aa
echo x - vterrain-apps/files/patch-ab
sed 's/^X//' >vterrain-apps/files/patch-ab << 'END-of-vterrain-apps/files/patch-ab'
X--- ORIG/Makefile	Wed Apr  4 07:47:44 2001
X+++ Makefile	Fri Apr 27 21:08:17 2001
X@@ -10,7 +10,7 @@
X 
X include $(VTP_ROOT)/TerrainApps/Make.defs
X 
X-APPS = glutSimple wxSimple Enviro
X+APPS = Enviro
X 
X all :
X 	for app in $(APPS); do              \
END-of-vterrain-apps/files/patch-ab
echo x - vterrain-apps/files/patch-ac
sed 's/^X//' >vterrain-apps/files/patch-ac << 'END-of-vterrain-apps/files/patch-ac'
X--- Enviro/ORIG/Globe.cpp	Sat Apr 21 16:10:56 2001
X+++ Enviro/Globe.cpp	Fri Apr 27 21:19:39 2001
X@@ -8,7 +8,7 @@
X #include "vtlib/vtlib.h"
X #include "Globe.h"
X #include "TerrainSceneWP.h"
X-#include "shapelib/shapefil.h"
X+#include "shapefil.h"
X 
X vtMovGeom *CreateSimpleEarth(vtString strDataPath)
X {
END-of-vterrain-apps/files/patch-ac
echo x - vterrain-apps/files/patch-ad
sed 's/^X//' >vterrain-apps/files/patch-ad << 'END-of-vterrain-apps/files/patch-ad'
X--- Enviro/ORIG/Hawaii.cpp	Wed Apr 11 21:49:22 2001
X+++ Enviro/Hawaii.cpp	Fri Apr 27 21:22:04 2001
X@@ -15,7 +15,7 @@
X #include "SantaClara.h"
X #include "TerrainSceneWP.h"
X //#include "AttribMap.h"
X-#include "shapelib/shapefil.h"
X+#include "shapefil.h"
X 
X 
X ///////////////////////////////
END-of-vterrain-apps/files/patch-ad
echo x - vterrain-apps/files/patch-ae
sed 's/^X//' >vterrain-apps/files/patch-ae << 'END-of-vterrain-apps/files/patch-ae'
X--- Enviro/wx/ORIG/StartupDlg.cpp	Mon Apr 23 22:08:22 2001
X+++ Enviro/wx/StartupDlg.cpp	Fri Apr 27 21:25:05 2001
X@@ -27,7 +27,7 @@
X #include "StartupDlg.h"
X //#include "ChooseDlg.h"
X #include "../TerrainSceneWP.h"
X-#include "boost/directory.h"
X+#include "vtdata/directory.h"
X #include "TParamsDlg.h"
X 
X //
END-of-vterrain-apps/files/patch-ae
echo x - vterrain-apps/files/patch-af
sed 's/^X//' >vterrain-apps/files/patch-af << 'END-of-vterrain-apps/files/patch-af'
X--- Enviro/ORIG/Makefile	Fri Apr 27 21:29:14 2001
X+++ Enviro/Makefile	Fri Apr 27 21:29:28 2001
X@@ -40,7 +40,7 @@
X OBJS   = $(CXXSRC:%.cpp=%.o)
X EXEC   = wxEnviro
X LIBS   = $(shell wx-config --libs)                 \
X-	  -lwx_gtkd_gl                             \
X+	  -lwx_gtk_gl                              \
X 	  -lvtosg -lvtdata                         \
X 	  -losgUtil -losg -lshp -lnetcdf -lpng -lz \
X 	  $(GLU_LIB) -lGL -lX11 $(EXTRA_LIBS) -lm 
END-of-vterrain-apps/files/patch-af
exit


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

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104281929.f3SJTdt09614>