1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/games/intensityengine/Makefile
Dirk Meyer de78af3ac5 - update to 1.4.1
Reviewed by:	exp8 run on pointyhat
Supported by:	miwi
2010-03-28 06:47:48 +00:00

61 lines
1.6 KiB
Makefile

# New ports collection makefile for: intensityengine
# Date created: 27 Jan 2010
# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= intensityengine
DISTVERSION= r20100129
PORTREVISION= 3
CATEGORIES= games
MASTER_SITES= http://mirror.amdmi3.ru/distfiles/
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Engine that forms the basis of Syntensity, 3D games world
BUILD_DEPENDS= scons:${PORTSDIR}/devel/scons
LIB_DEPENDS= execinfo.1:${PORTSDIR}/devel/libexecinfo
USE_BZIP2= yes
USE_SDL= sdl mixer image
USE_GL= gl glu
USE_CMAKE= yes
MAKE_JOBS_SAFE= yes
SUB_FILES= intensity_client
USE_GCC= 4.2+
ONLY_FOR_ARCHS= i386 amd64
WRKSRC= ${WRKDIR}/${PORTNAME}
PORTDOCS= *
post-patch:
@${REINPLACE_CMD} -e '/set.*CMAKE_CXX_FLAGS/ d' ${WRKSRC}/CMakeLists.txt
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
${WRKSRC}/src/thirdparty/v8/SConstruct
@${REINPLACE_CMD} -e '/add_subdirectory.*server/ d' \
${WRKSRC}/src/CMakeLists.txt
pre-build:
cd ${WRKSRC}/src/thirdparty/v8 && ${SETENV} CC="${CC}" CXX="${CXX}" \
CCFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \
${LOCALBASE}/bin/scons ${_MAKE_JOBS}
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/intensity_client ${PREFIX}/bin/
${INSTALL_PROGRAM} ${WRKSRC}/src/client/Intensity_CClient ${PREFIX}/libexec/intensity_client
${MKDIR} ${DATADIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} \
"data src/python src/javascript packages intensity_client.py mybrushes.cfg" \
${DATADIR}/
.if !defined(NOPORTDOCS)
post-install:
${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/docs && ${COPYTREE_SHARE} '*' ${DOCSDIR}/
.endif
.include <bsd.port.mk>