summaryrefslogtreecommitdiff
path: root/games/teeworlds/Makefile
blob: 122997421e8906608eabaf429cfe56d497ccc067 (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
# $NetBSD: Makefile,v 1.8 2018/07/18 00:06:17 joerg Exp $

DISTNAME=	teeworlds-0.6.3-src
PKGNAME=	${DISTNAME:S/-src//}
CATEGORIES=	games
MASTER_SITES=	http://downloads.teeworlds.com/

MAINTAINER=	fstd.lkml@gmail.com
HOMEPAGE=	https://www.teeworlds.com/
COMMENT=	Fast-paced retro multiplayer shooter
LICENSE=	zlib AND 2-clause-bsd AND modified-bsd AND cc-by-sa-v3.0

USE_LANGUAGES=	c c++03

BUILD_DEPENDS+=	bam>=0.4.0:../../devel/bam

AUTO_MKDIRS=	yes

CPIO=	cpio

PYTHON_VERSIONS_INCOMPATIBLE=	34 35 36 37 # hardcoded to 2.7 in a patch

do-configure:
	set -e; cd ${WRKSRC}; bam config

do-build:
	set -e; cd ${WRKSRC}; bam server_release client_release

do-install:
	${INSTALL_GAME} ${WRKSRC}/teeworlds ${DESTDIR}${PREFIX}/bin/teeworlds
	${INSTALL_GAME} ${WRKSRC}/teeworlds_srv ${DESTDIR}${PREFIX}/bin/teeworlds_srv
	cd ${WRKSRC} && ${FIND} data | \
		${CPIO} -p ${DESTDIR}${PREFIX}/share/teeworlds
	cd ${DESTDIR}${PREFIX} && \
	${FIND} share/teeworlds -type f -print >${WRKDIR}/PLIST

.include "../../devel/SDL/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"