blob: 6508b8467d22c1bd6bfa93dca1859715154a3a06 (
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
|
# New ports collection makefile for: irrlamb
# Date created: 15 Jan 2010
# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= irrlamb
PORTVERSION= 0.1.0
PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= GOOGLE_CODE
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= 3D physics-based puzzle game
LIB_DEPENDS= sqlite3.8:${PORTSDIR}/databases/sqlite3
BUILD_DEPENDS= ${LOCALBASE}/lib/libIrrlicht.so:${PORTSDIR}/x11-toolkits/irrlicht
RUN_DEPENDS= ${LOCALBASE}/lib/libIrrlicht.so:${PORTSDIR}/x11-toolkits/irrlicht
USE_LUA= 5.1+
USE_SCONS= yes
MAKE_JOBS_SAFE= yes
CPPPATH= ${LOCALBASE}/include ${LUA_INCDIR}
LIBPATH= ${LOCALBASE}/lib ${LUA_LIBDIR}
WRKSRC= ${WRKDIR}/${PORTNAME}
PORTDOCS= readme.txt changelog.txt
DATA_DIRS= art campaigns collision fonts levels meshes scenes scripts textures
post-patch:
.for dir in ${DATA_DIRS}
@${REINPLACE_CMD} -e 's|"\(${dir}/\)|"${DATADIR}/\1|' \
${WRKSRC}/src/*.cpp ${WRKSRC}/src/engine/*.cpp \
${WRKSRC}/src/objects/*.cpp ${WRKSRC}/meshes/*.irrmesh \
${WRKSRC}/scenes/*.irr
.endfor
@${FIND} ${WRKSRC} -name "*.bak" -delete
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/irrlamb ${PREFIX}/bin
${MKDIR} ${DATADIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} "${DATA_DIRS}" ${DATADIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
.endif
.include <bsd.port.mk>
|