2005-11-13 17:44:14 +00:00
|
|
|
# New ports collection makefile for: vdrift
|
|
|
|
# Date created: 2005-11-09
|
|
|
|
# Whom: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= vdrift
|
2006-10-06 20:09:24 +00:00
|
|
|
PORTVERSION= 20061006
|
2006-10-23 20:29:56 +00:00
|
|
|
PORTREVISION= 2
|
2005-11-13 17:44:14 +00:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2006-04-08 23:26:36 +00:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2006-10-06 20:09:24 +00:00
|
|
|
DISTNAME= ${PORTNAME}-2006-10-06-src
|
2006-04-08 23:26:36 +00:00
|
|
|
DIST_SUBDIR= ${PORTNAME}
|
2005-11-13 17:44:14 +00:00
|
|
|
|
2006-07-23 02:45:24 +00:00
|
|
|
MAINTAINER= acm@FreeBSD.org
|
2005-11-13 17:44:14 +00:00
|
|
|
COMMENT= Open source driving simulation
|
|
|
|
|
|
|
|
BUILD_DEPENDS= scons:${PORTSDIR}/devel/scons
|
2006-04-25 12:02:13 +00:00
|
|
|
LIB_DEPENDS= openal.0:${PORTSDIR}/audio/openal \
|
2006-06-08 16:07:12 +00:00
|
|
|
alut.1:${PORTSDIR}/audio/freealut
|
2006-07-26 17:08:18 +00:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/${PORTNAME}/settings/VDrift.config:${PORTSDIR}/games/vdrift-data
|
2006-02-12 22:20:03 +00:00
|
|
|
|
2005-11-13 17:44:14 +00:00
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GL= yes
|
|
|
|
USE_SDL= sdl image net
|
|
|
|
|
|
|
|
MAKE_ENV= CC="${CC}" CXX="${CXX}"
|
2006-07-26 17:08:18 +00:00
|
|
|
SCONS_ARGS= prefix=${PREFIX} \
|
|
|
|
datadir=share/${PORTNAME} \
|
|
|
|
bindir=bin \
|
|
|
|
use_binreloc=0
|
2005-11-13 17:44:14 +00:00
|
|
|
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2006-07-26 17:08:18 +00:00
|
|
|
OPTIONS= DEBUG "Additional debug information" off \
|
|
|
|
NLS "Internationalization support " on
|
2005-11-13 17:44:14 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_DEBUG)
|
|
|
|
SCONS_ARGS+= release=0
|
|
|
|
.else
|
|
|
|
SCONS_ARGS+= release=1
|
|
|
|
.endif
|
|
|
|
|
2006-07-26 17:08:18 +00:00
|
|
|
.if !defined(WITHOUT_NLS)
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
FLAG_NLS= true
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2005-11-13 17:44:14 +00:00
|
|
|
.if ${OSVERSION} < 500000
|
2006-04-08 23:26:36 +00:00
|
|
|
BROKEN= does not compile
|
2005-11-13 17:44:14 +00:00
|
|
|
.endif
|
|
|
|
|
2006-01-14 09:27:02 +00:00
|
|
|
.if ${ARCH} == "sparc64"
|
2006-04-08 23:26:36 +00:00
|
|
|
BROKEN= Does not compile on sparc64
|
2006-01-14 09:27:02 +00:00
|
|
|
.endif
|
|
|
|
|
2005-11-13 17:44:14 +00:00
|
|
|
post-patch:
|
2006-04-08 23:26:36 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|-O2||g' ${WRKSRC}/SConstruct
|
2006-04-25 12:02:13 +00:00
|
|
|
@${REINPLACE_CMD} -e "s|'openal'|'openal','alut'|g" ${WRKSRC}/SConstruct
|
2006-10-23 20:29:56 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|^os.system.*||g' ${WRKSRC}/src/SConscript
|
2005-11-13 17:44:14 +00:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} scons ${SCONS_ARGS}
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/build/vdrift ${PREFIX}/bin
|
|
|
|
|
2006-07-26 17:08:18 +00:00
|
|
|
.if defined(FLAG_NLS)
|
|
|
|
. for DIRE in nl
|
|
|
|
@cd ${WRKSRC}/po/share/locale/${DIRE}/LC_MESSAGES && \
|
|
|
|
${FIND} * -type f -exec ${INSTALL_DATA} "{}" ${PREFIX}/share/locale/${DIRE}/LC_MESSAGES \;
|
|
|
|
. endfor
|
|
|
|
.endif
|
|
|
|
|
2005-11-13 17:44:14 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
.for FILE in docs/AUTHORS docs/README
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|