freebsd-ports/games/corsix-th/Makefile
Guido Falsi 418d775723 Change to my FreeBSD.org email address.
Approved by:	crees (mentor)
2012-04-14 18:45:07 +00:00

41 lines
996 B
Makefile

# New ports collection makefile for: CorsixTH
# Date created: 24 Nov 2010
# Whom: Alexey Dokuchaev <danfe@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= corsixth
PORTVERSION= 0.01b
CATEGORIES= games
MASTER_SITES= GOOGLE_CODE
PROJECTHOST= corsix-th
DISTNAME= CorsixTH-${DISTVERSION}-Source
MAINTAINER= madpilot@FreeBSD.org
COMMENT= Open source clone of Theme Hospital
LICENSE= MIT
LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2
RUN_DEPENDS= timidity:${PORTSDIR}/audio/timidity
USE_CMAKE= yes
USE_LUA= yes
USE_SDL= mixer
WRKSRC= ${WRKDIR}
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>