summaryrefslogtreecommitdiff
path: root/games/neverball/Makefile
blob: cfba2a50b921c00478f3698936fcc76e17f844ad (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
# $NetBSD: Makefile,v 1.9 2005/12/11 09:40:42 wiz Exp $
#

DISTNAME=	neverball-1.2.2
PKGREVISION=	3
CATEGORIES=	games
MASTER_SITES=	http://www.icculus.org/neverball/

MAINTAINER=	tech-pkg@NetBSD.org
HOMEPAGE=	http://www.icculus.org/neverball/
COMMENT=	Part puzzle game, part action game and with SDL graphics

USE_TOOLS+=	gmake

# Avoiding multiples patches...
BUILDLINK_TRANSFORM.SDL+=	-e "s|/SDL/|/|g"
BUILDLINK_TRANSFORM.SDL_ttf+=	-e "s|/SDL/|/|g"

SHAREDIR=	${PREFIX}/share/${PKGBASE}

INSTALLATION_DIRS=	bin

do-install:
	${INSTALL_DATA_DIR} ${SHAREDIR}
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/${PKGBASE}
	${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/MAPPING \
	    ${PREFIX}/share/doc/${PKGBASE}
	${INSTALL_PROGRAM} ${WRKSRC}/neverball ${WRKSRC}/neverputt ${SHAREDIR}
	cd ${WRKSRC} && ${PAX} -rwppm data ${SHAREDIR}
	${SED} -e "s,@SHAREDIR@,${SHAREDIR},g" ${FILESDIR}/neverball.sh \
	    > ${WRKSRC}/neverball.sh
	${INSTALL_SCRIPT} ${WRKSRC}/neverball.sh ${PREFIX}/bin/neverball

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