# $OpenBSD$

V =		0.60.1
COMMENT =	open source clone of Theme Hospital
DISTNAME =	corsixth-${V}
CATEGORIES =	games x11

# Switch to GH_TAGNAME at next update.
GH_ACCOUNT =	CorsixTH
GH_PROJECT =	CorsixTH
#GH_TAGNAME =	v${V}
GH_COMMIT =	6a079fd02bc456be7410e4394d7661308e86b3bf

MAINTAINER =	Brian Callahan <bcallah@openbsd.org>

# MIT
PERMIT_PACKAGE_CDROM =	Yes

WANTLIB += ${COMPILER_LIBCXX} SDL2 SDL2_mixer avcodec avformat
WANTLIB += avutil c freetype lua5.1 m swresample swscale

MODULES =	devel/cmake \
		lang/lua

LIB_DEPENDS =	devel/sdl2-mixer \
		graphics/ffmpeg

RUN_DEPENDS =	audio/timidity \
		devel/lpeg \
		devel/luafs

NO_TEST =	Yes

post-install:
	${SUBST_CMD} -c -m 555 ${FILESDIR}/corsixth ${PREFIX}/bin/corsixth

.include <bsd.port.mk>
