blob: 2a186aa75fa51a569e15e5dd9dcccb0ce453533f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# 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>
|