aboutsummaryrefslogtreecommitdiffstats
path: root/games/flightgear-data/Makefile
diff options
context:
space:
mode:
authorcpiazza <cpiazza@FreeBSD.org>1999-07-03 14:36:37 +0800
committercpiazza <cpiazza@FreeBSD.org>1999-07-03 14:36:37 +0800
commitddd42d57d9eccad20e333fef063c4b86bb02f4c4 (patch)
treeeb692fc0260cafc87916fc62d7f41fda8cb70467 /games/flightgear-data/Makefile
parentb1ddb5e913d44a363497828eb833046518b8ce10 (diff)
downloadfreebsd-ports-gnome-ddd42d57d9eccad20e333fef063c4b86bb02f4c4.tar.gz
freebsd-ports-gnome-ddd42d57d9eccad20e333fef063c4b86bb02f4c4.tar.zst
freebsd-ports-gnome-ddd42d57d9eccad20e333fef063c4b86bb02f4c4.zip
FlightGear, a free, multi-platform civil aviation flight simulator.
A 3d accelerator card supported by Mesa is highly recommended (3dfx voodoo/voodo2 / nvidia riva tnt are known to work.) PR: 12483 Submitted by: Brian Buchanan <brian@CSUA.Berkeley.EDU>
Diffstat (limited to 'games/flightgear-data/Makefile')
-rw-r--r--games/flightgear-data/Makefile69
1 files changed, 69 insertions, 0 deletions
diff --git a/games/flightgear-data/Makefile b/games/flightgear-data/Makefile
new file mode 100644
index 000000000000..e443a62d6f6f
--- /dev/null
+++ b/games/flightgear-data/Makefile
@@ -0,0 +1,69 @@
+# New ports collection makefile for: flightgear
+# Version required: 0.6.1
+# Date created: 26 June 1999
+# Whom: Brian Buchanan <brian@CSUA.Berkeley.EDU>
+#
+# $Id$
+#
+
+DISTNAME= FlightGear-${FLIGHTGEAR_VERSION}
+CATEGORIES= games
+MASTER_SITES= ftp://ftp.flightgear.org/pub/fgfs/Source/ \
+ ftp://ftp.flightgear.org/pub/fgfs/Shared/
+DISTFILES= ${DISTNAME}.tar.gz \
+ fgfs-base-${FLIGHTGEAR_VERSION}.tar.gz
+
+MAINTAINER= brian@CSUA.Berkeley.EDU
+
+BUILD_DEPENDS= ${X11BASE}/lib/libsl.a:${PORTSDIR}/x11-toolkits/plib
+RUN_DEPENDS= mpg123:${PORTSDIR}/audio/mpg123
+
+EXTRACT_ONLY= ${DISTNAME}.tar.gz
+
+FLIGHTGEAR_VERSION= 0.6.1
+
+.if defined(BUILD_SCENERY_TOOLS)
+MASTER_SITES+= ftp://ftp.cs.man.ac.uk/pub/amurta/
+DISTFILES+= gfc-0.8.8.1b.tar.gz gpc231.tar.Z
+EXTRACT_ONLY+= gfc-0.8.8.1b.tar.gz gpc231.tar.Z
+NO_PACKAGE= "gpc's license conflicts with the GPL"
+CONFIGURE_ENV+= CPPFLAGS=-I${WRKSRC}/gfcgpc/include \
+ LDFLAGS=-L${WRKSRC}/gfcgpc/lib
+ADDPATCHES= ${MASTERDIR}/patches.tools/gfc-patch-aa
+
+pre-configure:
+ @(cd ${WRKDIR}/gfc-0.8.8.1b; ./configure --prefix=${WRKSRC}/gfcgpc; \
+ ${GMAKE}; ${GMAKE} install; \
+ ${CP} ${MASTERDIR}/patches.tools/Makefile.gpc \
+ ${WRKDIR}/gpc231/Makefile; \
+ cd ${WRKDIR}/gpc231; ${GMAKE}; \
+ ${GMAKE} PREFIX=${WRKSRC}/gfcgpc install)
+.else
+PLIST= ${MASTERDIR}/pkg/PLIST.notools
+ADDPATCHES= ${MASTERDIR}/patches.tools/disable-tools
+USE_AUTOCONF= yes
+.endif
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+=--bindir=${PREFIX}/FlightGear/bin
+USE_GMAKE= yes
+
+pre-patch:
+ @( cd ${WRKDIR}; \
+ for i in ${ADDPATCHES} ; do \
+ ${PATCH} -s < $${i}; \
+ done )
+
+post-configure:
+ @(cd ${WRKSRC};touch Makefile.in */Makefile.in */*/Makefile.in \
+ */*/*/Makefile.in; \
+ ./config.status)
+
+pre-install:
+ cd ${PREFIX}; \
+ ${TAR} xzf ${DISTDIR}/fgfs-base-${FLIGHTGEAR_VERSION}.tar.gz
+
+post-install:
+ ${MV} ${PREFIX}/FlightGear/bin/runfgfs ${PREFIX}/bin
+
+.include <bsd.port.mk>