1999-07-03 08:36:37 +02:00
|
|
|
# New ports collection makefile for: flightgear
|
|
|
|
# Date created: 26 June 1999
|
|
|
|
# Whom: Brian Buchanan <brian@CSUA.Berkeley.EDU>
|
|
|
|
#
|
1999-08-25 08:06:33 +02:00
|
|
|
# $FreeBSD$
|
1999-07-03 08:36:37 +02:00
|
|
|
#
|
|
|
|
|
2005-12-11 19:04:49 +01:00
|
|
|
PORTNAME?= FlightGear
|
|
|
|
PORTVERSION?= ${FGVERSION}
|
2007-05-19 22:36:56 +02:00
|
|
|
PORTREVISION?= 1
|
2003-01-22 14:58:58 +01:00
|
|
|
CATEGORIES= games
|
2005-12-11 19:04:49 +01:00
|
|
|
MASTER_SITES+= ftp://ftp.flightgear.org/pub/fgfs/Source/:fg \
|
|
|
|
ftp://ftp.de.flightgear.org/pub/fgfs/Source/:fg
|
|
|
|
DISTFILES+= ${DISTNAME}${EXTRACT_SUFX}:fg
|
2003-01-22 14:58:58 +01:00
|
|
|
|
2005-12-11 19:04:49 +01:00
|
|
|
MAINTAINER?= jylefort@FreeBSD.org
|
|
|
|
COMMENT?= The FlightGear flight simulator
|
2003-01-22 14:58:58 +01:00
|
|
|
|
2005-11-20 23:16:58 +01:00
|
|
|
LIB_DEPENDS= glut:${PORTSDIR}/graphics/libglut \
|
|
|
|
openal.0:${PORTSDIR}/audio/openal
|
2003-01-22 14:58:58 +01:00
|
|
|
BUILD_DEPENDS= ${X11BASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib \
|
|
|
|
${X11BASE}/lib/libsgmisc.a:${PORTSDIR}/devel/simgear
|
2003-02-05 12:23:26 +01:00
|
|
|
RUN_DEPENDS= ${X11BASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib \
|
2004-12-12 15:10:54 +01:00
|
|
|
${X11BASE}/lib/libsgmisc.a:${PORTSDIR}/devel/simgear \
|
2005-11-20 23:16:58 +01:00
|
|
|
${X11BASE}/share/FlightGear/version:${PORTSDIR}/games/fgfs-base
|
2003-01-22 14:58:58 +01:00
|
|
|
|
2006-04-07 22:28:45 +02:00
|
|
|
FGVERSION= 0.9.10
|
2005-12-11 19:04:49 +01:00
|
|
|
|
2005-11-20 23:16:58 +01:00
|
|
|
USE_X_PREFIX= yes
|
|
|
|
USE_GL= yes
|
2003-09-28 14:00:35 +02:00
|
|
|
USE_GMAKE= yes
|
1999-07-03 08:36:37 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2005-10-23 05:13:53 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}"
|
2005-11-20 23:16:58 +01:00
|
|
|
CONFIGURE_ARGS= --datadir=${X11BASE}/share # location of fgfs-base
|
2005-10-23 05:13:53 +02:00
|
|
|
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
|
1999-07-03 08:36:37 +02:00
|
|
|
|
2005-12-11 19:04:49 +01:00
|
|
|
.if ${PORTNAME} == FlightGear
|
2003-01-22 14:58:58 +01:00
|
|
|
MAN1= est-epsilon.1 fgfs.1 fgjs.1 gl-info.1 js_demo.1 pstest.1
|
2005-12-11 19:04:49 +01:00
|
|
|
.endif
|
1999-07-03 08:36:37 +02:00
|
|
|
|
2006-04-07 22:28:45 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
IGNORE= does not build on FreeBSD 4.x
|
|
|
|
.endif
|
|
|
|
|
2005-10-23 05:13:53 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|-D_REENTRANT|${PTHREAD_CFLAGS}|' \
|
|
|
|
${WRKSRC}/configure
|
2003-11-19 12:04:39 +01:00
|
|
|
|
2005-10-23 05:13:53 +02:00
|
|
|
post-install:
|
2006-04-07 22:28:45 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/utils/js_server/js_server ${PREFIX}/bin
|
2005-10-23 05:13:53 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2004-12-12 15:10:54 +01:00
|
|
|
|
2006-04-07 22:28:45 +02:00
|
|
|
.include <bsd.port.post.mk>
|