1999-07-03 02:36:37 -04:00
|
|
|
# New ports collection makefile for: flightgear
|
|
|
|
# Date created: 26 June 1999
|
|
|
|
# Whom: Brian Buchanan <brian@CSUA.Berkeley.EDU>
|
|
|
|
#
|
1999-08-25 02:06:33 -04:00
|
|
|
# $FreeBSD$
|
1999-07-03 02:36:37 -04:00
|
|
|
#
|
|
|
|
|
2000-04-14 02:43:02 -04:00
|
|
|
PORTNAME= FlightGear
|
|
|
|
PORTVERSION= 0.6.1
|
1999-07-03 02:36:37 -04:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= ftp://ftp.flightgear.org/pub/fgfs/Source/ \
|
|
|
|
ftp://ftp.flightgear.org/pub/fgfs/Shared/
|
|
|
|
DISTFILES= ${DISTNAME}.tar.gz \
|
2000-04-14 02:43:02 -04:00
|
|
|
fgfs-base-${PORTVERSION}.tar.gz
|
1999-07-03 02:36:37 -04:00
|
|
|
|
|
|
|
MAINTAINER= brian@CSUA.Berkeley.EDU
|
|
|
|
|
2000-11-13 18:58:11 -05:00
|
|
|
BUILD_DEPENDS= ${X11BASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib
|
1999-07-03 02:36:37 -04:00
|
|
|
RUN_DEPENDS= mpg123:${PORTSDIR}/audio/mpg123
|
|
|
|
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}.tar.gz
|
|
|
|
|
|
|
|
.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
|
2000-10-07 21:10:50 -04:00
|
|
|
PLIST= ${MASTERDIR}/pkg-plist.notools
|
1999-07-03 02:36:37 -04:00
|
|
|
ADDPATCHES= ${MASTERDIR}/patches.tools/disable-tools
|
|
|
|
USE_AUTOCONF= yes
|
|
|
|
.endif
|
|
|
|
|
1999-08-22 15:46:45 -04:00
|
|
|
USE_NEWGCC= yes
|
1999-07-03 02:36:37 -04:00
|
|
|
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}; \
|
2000-04-14 02:43:02 -04:00
|
|
|
${TAR} xzf ${DISTDIR}/fgfs-base-${PORTVERSION}.tar.gz
|
1999-07-03 02:36:37 -04:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${MV} ${PREFIX}/FlightGear/bin/runfgfs ${PREFIX}/bin
|
|
|
|
|
1999-08-22 15:46:45 -04:00
|
|
|
.include <bsd.port.mk>
|