aboutsummaryrefslogtreecommitdiff
path: root/games/violetland/Makefile
blob: ffe8c62dcf5f55ebe7761b27877d0bc531f603c7 (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
40
41
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$

PORTNAME=	violetland
PORTVERSION=	0.4.3
PORTREVISION=	1
CATEGORIES=	games
MASTER_SITES=	GOOGLE_CODE \
		http://mirror.amdmi3.ru/distfiles/
DISTNAME=	${PORTNAME}-v${PORTVERSION}-src

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	Top-down survival shoot 'em up

LIB_DEPENDS=	libboost_filesystem.so:${PORTSDIR}/devel/boost-libs

USE_ZIP=	yes
USE_SDL=	sdl mixer image ttf
USE_GL=		gl glu
USES=		cmake gettext
USE_DOS2UNIX=	yes
CMAKE_ARGS=	-DDATA_INSTALL_DIR="${DATADIR}"

WRKSRC=		${WRKDIR}/${PORTNAME}-v${PORTVERSION}

PORTDOCS=	*

OPTIONS_DEFINE=	DOCS

post-patch:
	@${REINPLACE_CMD} -e '/set.libList/ s|)| ${LOCALBASE}/lib/libintl.so&|' \
		${WRKSRC}/CMakeLists.txt

post-install:
	${MKDIR} ${STAGEDIR}${DESKTOPDIR}
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} CHANGELOG README_EN.TXT README_RU.TXT \
		${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>