freebsd-ports/games/fgfs-base/Makefile
Kris Kennaway e9cb0e0ba3 BROKEN on 5.x: Does not compile
Approved by:    portmgr (self)
2004-09-17 22:47:50 +00:00

63 lines
2.0 KiB
Makefile

# New ports collection makefile for: flightgear
# Date created: 26 June 1999
# Whom: Brian Buchanan <brian@CSUA.Berkeley.EDU>
#
# $FreeBSD$
#
PORTNAME= FlightGear
PORTVERSION= 0.9.3
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= ftp://ftp.flightgear.org/pub/fgfs/Source/:src \
ftp://ftp.flightgear.org/pub/fgfs/Shared/:dat
MAINTAINER= des@FreeBSD.org
COMMENT= The FlightGear flight simulator
BASEVERSION= ${PORTVERSION}
BASEFILE= fgfs-base-${BASEVERSION}${EXTRACT_SUFX}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:src \
${BASEFILE}:dat
LIB_DEPENDS= glut:${PORTSDIR}/graphics/libglut
BUILD_DEPENDS= ${X11BASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib \
${X11BASE}/include/simgear/threads/SGThread.hxx:${PORTSDIR}/devel/simgear \
${X11BASE}/lib/libsgmisc.a:${PORTSDIR}/devel/simgear
RUN_DEPENDS= ${X11BASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib \
${X11BASE}/include/simgear/threads/SGThread.hxx:${PORTSDIR}/devel/simgear \
${X11BASE}/lib/libsgmisc.a:${PORTSDIR}/devel/simgear
USE_GMAKE= yes
USE_X_PREFIX= yes
GNU_CONFIGURE= yes
# Force configure to look in ${LOCALBASE}/{include,lib}
CONFIGURE_ENV= CC="${CC}" CFLAGS="${CFLAGS}" \
CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --with-threads
MAN1= est-epsilon.1 fgfs.1 fgjs.1 gl-info.1 js_demo.1 pstest.1
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 502126
BROKEN= "Does not compile on FreeBSD >= 5.x"
.endif
post-extract:
@${FIND} ${WRKSRC} \( -name '.#*' -or -name '*~' \) -delete
do-install:
@${ECHO} ">> Installing program"
@(cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
@${ECHO} ">> Installing data"
@${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 0755 ${DATADIR}
@(cd ${WRKSRC}/data && ${FIND} . -type d | (cd ${DATADIR} &&\
${XARGS} ${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 0755))
@(cd ${WRKSRC}/data && ${FIND} . -type f |\
${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DATADIR})
.include <bsd.port.post.mk>