Import gaia-0.1.2

Gaia is an open 3D earth viewer (formerly an attempt to reverse engineer
famous Google Earth).
It features a GPS layer which is capable of displaying route and current
location for any NMEA-speaking device.  Also works as gpsd client,
allowing you to work with almost any GPS device either locally or via
network.

notes:
- they were reports of occasionnal crashes on some machines but that should
  not happen if running a very current system (please report if this should
  happen again)

tested by jasper@ and ian@, "commit" ian@
This commit is contained in:
ajacoutot 2007-01-31 07:33:52 +00:00
parent a2af61da22
commit c458b93dac
5 changed files with 92 additions and 0 deletions

54
x11/gaia/Makefile Normal file
View File

@ -0,0 +1,54 @@
# $OpenBSD: Makefile,v 1.1.1.1 2007/01/31 07:33:52 ajacoutot Exp $
COMMENT= "3D earth viewer with GPS support"
DISTNAME= gaia-0.1.2
CATEGORIES= x11 geo
EXTRACT_SUFX= .tar.bz2
HOMEPAGE= http://gaia.serezhkin.com/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gaia-clean/}
WANTLIB= GL GLU X11 Xext c crypto m pthread ssl stdc++ usbhid z
USE_X11= Yes
NO_REGRESS= Yes
BUILD_DEPENDS= ::devel/scons
LIB_DEPENDS= SDL.>=6::devel/sdl \
gps.>=16::misc/gpsd \
curl.>=4::net/curl \
png.>=5::graphics/png \
jpeg.>=62::graphics/jpeg
pre-configure:
perl -pi -e 's,!!CFLAGS!!,${CFLAGS},g;' \
-e 's,!!CXXFLAGS!!,${CXXFLAGS},g;' \
-e 's,!!CC!!,${CC},g;' \
-e 's,!!CXX!!,${CXX},g;' \
-e 's,!!PREFIX!!,${PREFIX},g;' \
-e 's,!!LOCALBASE!!,${LOCALBASE},g;' \
-e 's,!!X11BASE!!,${X11BASE},g;' \
${WRKSRC}/SConstruct
do-build:
@${SETENV} ${MAKE_ENV} scons -C ${WRKSRC} \
prefix=${PREFIX} datadir=share/gaia gpsd=1
do-install:
${INSTALL_PROGRAM} ${WRKBUILD}/gaia ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/gaia
${INSTALL_DATA} ${WRKBUILD}/data/font.png ${PREFIX}/share/gaia
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gaia
${INSTALL_DATA} ${WRKBUILD}/README ${PREFIX}/share/doc/gaia
.include <bsd.port.mk>

4
x11/gaia/distinfo Normal file
View File

@ -0,0 +1,4 @@
MD5 (gaia-0.1.2.tar.bz2) = b9bd7fd9b035e843788c6a6f25baf07f
RMD160 (gaia-0.1.2.tar.bz2) = df1a050a7f8187a7e7196cb160a453a0ebbbf41d
SHA1 (gaia-0.1.2.tar.bz2) = 5a2c65064010c7d00151f6f94b0bf0e2ae796bfa
SIZE (gaia-0.1.2.tar.bz2) = 60241

View File

@ -0,0 +1,22 @@
$OpenBSD: patch-SConstruct,v 1.1.1.1 2007/01/31 07:33:52 ajacoutot Exp $
--- SConstruct.orig Tue Dec 5 13:31:42 2006
+++ SConstruct Tue Jan 9 10:46:45 2007
@@ -39,11 +39,15 @@ if not env.GetOption('clean'):
print "Compiling for FreeBSD"
env.Append(CPPPATH = [ '/usr/local/include', '/usr/X11R6/include' ])
env.Append(LIBPATH = [ '/usr/local/lib', '/usr/X11R6/lib' ])
- elif sys.platform == 'openbsd':
+ elif sys.platform.startswith('openbsd'):
# TODO: confirm that sys.platform == 'openbsd' for OpenBSD (feedback welcome)
print "Compiling for OpenBSD"
- env.Append(CPPPATH = [ '/usr/local/include', '/usr/X11R6/include' ])
- env.Append(LIBPATH = [ '/usr/local/lib', '/usr/X11R6/lib' ])
+ env.Append(CPPPATH = [ '!!LOCALBASE!!/include', '!!X11BASE!!/include' ])
+ env.Append(LIBPATH = [ '!!LOCALBASE!!', '!!X11BASE!!/lib' ])
+ env.Append(CCFLAGS = [ Split("!!CFLAGS!!") ])
+ env.Append(CXXFLAGS = [ Split("!!CXXFLAGS!!") ])
+ env['CC'] = "!!CC!!"
+ env['CXX'] = "!!CXX!!"
elif sys.platform == 'darwin':
print "Compiling for MacOSX"
env.Append(CPPPATH = [ '/usr/local/include', '/usr/X11R6/include', '/opt/local/include', '/sw/include' ])

6
x11/gaia/pkg/DESCR Normal file
View File

@ -0,0 +1,6 @@
Gaia is an open 3D earth viewer (formerly an attempt to reverse engineer
famous Google Earth).
It features a GPS layer which is capable of displaying route and current
location for any NMEA-speaking device. Also works as gpsd client,
allowing you to work with almost any GPS device either locally or via
network.

6
x11/gaia/pkg/PLIST Normal file
View File

@ -0,0 +1,6 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2007/01/31 07:33:52 ajacoutot Exp $
bin/gaia
share/doc/gaia/
share/doc/gaia/README
share/gaia/
share/gaia/font.png