1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/games/vdrift/Makefile
Antoine Brodin 1117e12d37 Mark broken: fails to build
On 8 and 9:
src/collision_world.cpp: In member function 'bool COLLISION_WORLD::CastRay(const MATHVECTOR<float, 3u>&, const MATHVECTOR<float, 3u>&, float, const btCollisionObject*, COLLISION_CONTACT&) const':
src/collision_world.cpp:204: error: invalid conversion from 'const btCollisionObject*' to 'btCollisionObject*'
scons: *** [build/collision_world.o] Error 1
scons: building terminated because of errors.
*** [do-build] Error code 2

On 10 and head:
scons: Reading SConscript files ...
Checking for C++ header file asio.hpp... no
You do not have the asio.hpp headers installed. Exiting.
*** Error code 1

Reported by:	pkg-fallout
With hat:	portmgr
2014-04-12 21:50:29 +00:00

90 lines
2.0 KiB
Makefile

# Created by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
# $FreeBSD$
PORTNAME= vdrift
PORTVERSION= 20100630
PORTREVISION= 8
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${DATE_VERSION}
DISTNAME= ${PORTNAME}-${DATE_VERSION}-src
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= acm@FreeBSD.org
COMMENT= Open source driving simulation
BROKEN= Fails to build
BUILD_DEPENDS= scons:${PORTSDIR}/devel/scons \
${LOCALBASE}/lib/libBulletCollision.a:${PORTSDIR}/devel/bullet \
${LOCALBASE}/include/asio.hpp:${PORTSDIR}/net/asio
LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis \
libboost_thread.so:${PORTSDIR}/devel/boost-libs
RUN_DEPENDS= ${LOCALBASE}/share/${PORTNAME}/settings/VDrift.config:${PORTSDIR}/games/vdrift-data
USE_BZIP2= yes
USE_GL= glew
USE_SDL= sdl image net gfx
SCONS_ARGS= prefix=${PREFIX} \
datadir=share/${PORTNAME} \
bindir=bin \
use_binreloc=0
WRKSRC= ${WRKDIR}/${DISTNAME}
DATE_VERSION= 2010-06-30
SUB_FILES= pkg-message
OPTIONS_DEFINE= DEBUG NLS DOCS
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDEBUG}
SCONS_ARGS+= release=0
.else
SCONS_ARGS+= release=1
.endif
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
FLAG_NLS= true
.else
PLIST_SUB+= NLS="@comment "
.endif
.if ${ARCH} == "sparc64"
BROKEN= Does not compile on sparc64
.endif
post-patch:
@${REINPLACE_CMD} -e 's,(__APPLE__),(__APPLE__) || defined(__FreeBSD__),g' \
${WRKSRC}/include/quickmp.h
@${REINPLACE_CMD} -e 's|GEN_clamped|btClamped|g' \
${WRKSRC}/bullet/BulletDynamics/Dynamics/btRigidBody.cpp
do-build:
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} scons ${SCONS_ARGS}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/build/vdrift ${PREFIX}/bin
.if defined(FLAG_NLS)
@${MKDIR} ${DATADIR}/po
@cd ${WRKSRC}/po && \
${FIND} * -type f -name "*.po" -exec ${INSTALL_DATA} "{}" "${DATADIR}/po/{}" \;
.endif
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
.for FILE in docs/AUTHORS docs/README
${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
.endfor
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>