summaryrefslogtreecommitdiff
path: root/games/ketm/Makefile
blob: 30d71c9699f37b6bea6ea3bd303c0f14b3f96ae1 (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
# $NetBSD: Makefile,v 1.29 2014/08/21 09:52:47 jperkin Exp $
#

DISTNAME=	ketm-0.0.6
PKGREVISION=	7
CATEGORIES=	games
MASTER_SITES=	http://home.t-online.de/home/haslbeck/ketm/
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://home.t-online.de/home/haslbeck/ketm/
COMMENT=	Old-school 2d-scrolling shooter

BUILD_TARGET=	ketm

USE_TOOLS+=	gmake

INSTALLATION_DIRS=	bin share/ketm/data

LDFLAGS.DragonFly=	-lm
LDFLAGS.SunOS+=		-lm

SUBST_CLASSES+=		ketm
SUBST_STAGE.ketm=	pre-configure
SUBST_FILES.ketm=	*.c font.h
SUBST_SED.ketm=		-e "s,data/,${PREFIX}/share/ketm/data/,g"

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/ketm ${DESTDIR}${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/ketm
	cd ${WRKSRC}/data && 						\
		${INSTALL_DATA} *.bmp *.dat ${DESTDIR}${PREFIX}/share/ketm/data

.include "../../devel/SDL/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"