summaryrefslogtreecommitdiff
path: root/games/kapooka/Makefile
blob: 43fa8453609573928b00c21f75e8dad83c5de3f3 (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
41
42
43
44
45
# $NetBSD: Makefile,v 1.7 2006/02/05 23:09:16 joerg Exp $
#

DISTNAME=		kapooka_0.2
PKGNAME=		${DISTNAME:S/_/-/}
PKGREVISION=		3
CATEGORIES=		games
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=kapooka/}
EXTRACT_SUFX=		.tar.bz2

MAINTAINER=		tech-pkg@NetBSD.org
HOMEPAGE=		http://kapooka.sourceforge.net/
COMMENT=		Puzzle game

WRKSRC=			${WRKDIR}/kapooka
USE_TOOLS+=		gmake

SUBST_CLASSES+=		kapooka
SUBST_STAGE.kapooka=	pre-build
SUBST_MESSAGE.kapooka=	"Fixing path to data files."
SUBST_FILES.kapooka=	main.h objects.c
SUBST_SED.kapooka=	"s!data/!${PREFIX}/share/kapooka/!"

INSTALLATION_DIRS=	bin

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/kapooka ${PREFIX}/bin
	${INSTALL_DATA_DIR} ${PREFIX}/share/kapooka
	${INSTALL_DATA_DIR} ${PREFIX}/share/kapooka/interface
	${INSTALL_DATA_DIR} ${PREFIX}/share/kapooka/levelDummy
	${INSTALL_DATA_DIR} ${PREFIX}/share/kapooka/music
	${INSTALL_DATA_DIR} ${PREFIX}/share/kapooka/sound
	${INSTALL_DATA_DIR} ${PREFIX}/share/kapooka/sprites
	${INSTALL_DATA} ${WRKSRC}/data/level.dat ${PREFIX}/share/kapooka
	${INSTALL_DATA} ${WRKSRC}/data/interface/* ${PREFIX}/share/kapooka/interface
	${INSTALL_DATA} ${WRKSRC}/data/levelDummy/* ${PREFIX}/share/kapooka/levelDummy
	${INSTALL_DATA} ${WRKSRC}/data/music/* ${PREFIX}/share/kapooka/music
	${INSTALL_DATA} ${WRKSRC}/data/sound/* ${PREFIX}/share/kapooka/sound
	${INSTALL_DATA} ${WRKSRC}/data/sprites/*.png ${PREFIX}/share/kapooka/sprites

.include "../../audio/SDL_mixer/buildlink3.mk"
.include "../../audio/libmikmod/buildlink3.mk"
.include "../../devel/SDL/buildlink3.mk"
.include "../../graphics/SDL_image/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"