blob: 786909de2e35887658a75e032ef868f96bf43939 (
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
|
# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD$
PORTNAME= freera
PORTVERSION= 080203
PORTREVISION= 8
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}%20${PORTNAME}%2B%2B/0.47%20beta
DISTNAME= ${PORTVERSION}_freera++_src
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Westwood red alert game engine
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/doc/gpl.txt
USES= compiler:c++11-lang scons
USE_SDL= sdl mixer
WRKSRC= ${WRKDIR}/freera++
SUB_FILES= pkg-message
PLIST_FILES= bin/${PORTNAME}
PORTDATA= *
PLIST_DIRS= %%DATADIR%%/mix
post-patch:
@${MV} ${WRKSRC}/SConstruct ${WRKSRC}/SConstruct.orig
@${CP} ${FILESDIR}/SConstruct ${WRKSRC}/
@${REINPLACE_CMD} -e 's|data/|${DATADIR}/|' ${WRKSRC}/src/video/renderer.cpp \
${WRKSRC}/src/video/graphicsengine.cpp ${WRKSRC}/src/vfs/vfs.cpp \
${WRKSRC}/data/settings/files.ini
@${RM} ${WRKSRC}/data/settings/files.ini.bak
@${RM} -r ${WRKSRC}/data/settings/ra/.svn ${WRKSRC}/data/settings/td/.svn
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/freera ${STAGEDIR}${PREFIX}/bin/
@cd ${WRKSRC}/data && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/
.include <bsd.port.mk>
|