From 384bf9f311e47c2079a6c0a2cd2a4e249093560a Mon Sep 17 00:00:00 2001 From: Jean-Yves Lefort Date: Fri, 16 Sep 2005 20:22:10 +0000 Subject: [PATCH] Add flightgear-atlas. Atlas aims to produce and display high quality charts of the world for users of FlightGear, an open source flight simulator. This is achieved through two main parts: The map creator (simply called Map) and the Atlas viewer. The map creator takes scenery data from FlightGear and transforms it into beautiful map pictures that can be viewed with any bitmap image program that you might have installed or with the Atlas viewing application. The Atlas viewing application can be used for browsing your maps but can also connect directly to FlightGear and display your aircrafts current location on a so called moving map display. WWW: http://atlas.sourceforge.net/ --- games/Makefile | 1 + games/flightgear-atlas/Makefile | 45 ++++++++++++++++++++++++++++++ games/flightgear-atlas/distinfo | 2 ++ games/flightgear-atlas/pkg-descr | 16 +++++++++++ games/flightgear-atlas/pkg-message | 21 ++++++++++++++ games/flightgear-atlas/pkg-plist | 6 ++++ 6 files changed, 91 insertions(+) create mode 100644 games/flightgear-atlas/Makefile create mode 100644 games/flightgear-atlas/distinfo create mode 100644 games/flightgear-atlas/pkg-descr create mode 100644 games/flightgear-atlas/pkg-message create mode 100644 games/flightgear-atlas/pkg-plist diff --git a/games/Makefile b/games/Makefile index 7f0ef15772dd..9503cfa734bc 100644 --- a/games/Makefile +++ b/games/Makefile @@ -145,6 +145,7 @@ SUBDIR += filters SUBDIR += fkiss SUBDIR += flightgear + SUBDIR += flightgear-atlas SUBDIR += flying SUBDIR += fmars SUBDIR += foobillard diff --git a/games/flightgear-atlas/Makefile b/games/flightgear-atlas/Makefile new file mode 100644 index 000000000000..3ee4ec5bb4bd --- /dev/null +++ b/games/flightgear-atlas/Makefile @@ -0,0 +1,45 @@ +# New ports collection makefile for: flightgear-atlas +# Date created: 16 Sep 2005 +# Whom: Jean-Yves Lefort +# +# $FreeBSD$ +# + +PORTNAME= flightgear-atlas +PORTVERSION= 0.3.0 +CATEGORIES= games +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= atlas +DISTNAME= Atlas-${PORTVERSION} + +MAINTAINER= jylefort@FreeBSD.org +COMMENT= A map viewer for use with the FlightGear flight simulator + +BUILD_DEPENDS= ${X11BASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib \ + ${X11BASE}/include/simgear/version.h:${PORTSDIR}/devel/simgear +LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \ + jpeg.9:${PORTSDIR}/graphics/jpeg \ + glut.3:${PORTSDIR}/graphics/libglut +RUN_DEPENDS= ${X11BASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib \ + ${X11BASE}/include/simgear/version.h:${PORTSDIR}/devel/simgear \ + ${LOCALBASE}/share/FlightGear/version:${PORTSDIR}/games/fgfs-base + +USE_X_PREFIX= yes +USE_REINPLACE= yes +GNU_CONFIGURE= yes +USE_GL= yes + +CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS} +LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib +CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" +CONFIGURE_ARGS= --with-fgbase="${LOCALBASE}/share/FlightGear" + +post-patch: + @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|-lpthread||' ${WRKSRC}/src/Makefile.in + +post-install: + ${INSTALL_DATA} ${WRKSRC}/src/AtlasPalette ${LOCALBASE}/share/FlightGear + @${CAT} ${PKGMESSAGE} + +.include diff --git a/games/flightgear-atlas/distinfo b/games/flightgear-atlas/distinfo new file mode 100644 index 000000000000..39d54507fcac --- /dev/null +++ b/games/flightgear-atlas/distinfo @@ -0,0 +1,2 @@ +MD5 (Atlas-0.3.0.tar.gz) = 863a878322a60873785a163d394c3075 +SIZE (Atlas-0.3.0.tar.gz) = 199379 diff --git a/games/flightgear-atlas/pkg-descr b/games/flightgear-atlas/pkg-descr new file mode 100644 index 000000000000..d73da3f9a399 --- /dev/null +++ b/games/flightgear-atlas/pkg-descr @@ -0,0 +1,16 @@ +Atlas aims to produce and display high quality charts of the world for users of +FlightGear, an open source flight simulator. This is achieved through two main +parts: The map creator (simply called Map) and the Atlas viewer. + +The map creator takes scenery data from FlightGear and transforms it into +beautiful map pictures that can be viewed with any bitmap image program that +you might have installed or with the Atlas viewing application. + +The Atlas viewing application can be used for browsing your maps but can also +connect directly to FlightGear and display your aircrafts current location on a +so called moving map display. + +WWW: http://atlas.sourceforge.net/ + +- Jean-Yves Lefort +jylefort@FreeBSD.org diff --git a/games/flightgear-atlas/pkg-message b/games/flightgear-atlas/pkg-message new file mode 100644 index 000000000000..93e35c5c463f --- /dev/null +++ b/games/flightgear-atlas/pkg-message @@ -0,0 +1,21 @@ +=============================================================================== +Quick start: + + Generate map images of your FlightGear sceneries (this will take from a + minute up to hours, depending on how much scenery you have installed): + + Map --atlas=/path/to/images + + Then, either: + + View the map in standalone mode: + + Atlas --path=/path/to/images + + Run FlightGear and connect Atlas to it: + + fgfs --nmea=socket,out,0.5,localhost,9999,udp & + Atlas --path=/path/to/images --udp=9999 + +See http://atlas.sourceforge.net/ for more details. +=============================================================================== diff --git a/games/flightgear-atlas/pkg-plist b/games/flightgear-atlas/pkg-plist new file mode 100644 index 000000000000..f1a1e17c8a9c --- /dev/null +++ b/games/flightgear-atlas/pkg-plist @@ -0,0 +1,6 @@ +bin/Atlas +bin/Map +bin/MapPS +bin/buildmaps.sh +@cwd %%LOCALBASE%% +share/FlightGear/AtlasPalette