blob: 8258d3394f0cd0a6bb2f1353b66c0f91c581c0e3 (
plain) (
blame)
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
|
# New ports collection makefile for: CorsixTH
# Date created: 24 Nov 2010
# Whom: Alexey Dokuchaev <danfe@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= corsixth
DISTVERSION= 0.Beta5
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
PROJECTHOST= corsix-th
DISTNAME= CorsixTH-${DISTVERSION:S/0.//}-Source
MAINTAINER= danfe@FreeBSD.org
COMMENT= Open source clone of Theme Hospital
LICENSE= MIT
RUN_DEPENDS= timidity:${PORTSDIR}/audio/timidity
USE_CMAKE= yes
USE_LUA= yes
USE_SDL= mixer
post-patch:
# Allow the game to find its resources without wrapper scripts
@${REINPLACE_CMD} -e \
'/return loadfile/s,name,\\"${DATADIR}/\\" .. &,' \
${WRKSRC}/CorsixTH/Src/main.cpp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/CorsixTH/CorsixTH ${PREFIX}/bin
@${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/CorsixTH/CorsixTH.lua ${DATADIR}
cd ${WRKSRC}/CorsixTH && ${COPYTREE_SHARE} "Bitmap Levels Lua" \
${DATADIR}
.include <bsd.port.mk>
|