summaryrefslogtreecommitdiff
path: root/games/neverball/Makefile
blob: f60f7933fdb28516f9adb837b219a8dbd59eec6a (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.22 2010/12/23 11:44:31 dsainty Exp $

DISTNAME=	neverball-1.5.4
PKGREVISION=	2
CATEGORIES=	games
MASTER_SITES=	http://neverball.org/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://neverball.org/
COMMENT=	Puzzle/action game similar to Super Monkey Ball

PKG_DESTDIR_SUPPORT=	user-destdir

USE_TOOLS+=	gmake pax

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

MAKE_ENV+=	ENABLE_NLS=0

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

INSTALLATION_DIRS=	bin share/doc/${PKGBASE} share/${PKGBASE}

do-install:
	${INSTALL_DATA} ${WRKSRC}/doc/MANUAL ${WRKSRC}/README \
	    ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
	${INSTALL_PROGRAM} ${WRKSRC}/neverball ${WRKSRC}/neverputt \
	    ${DESTDIR}${PREFIX}/bin
	for d in `${FIND} ${WRKSRC}/data -type d -print`; do \
	    ${CHMOD} ${PKGDIRMODE} $${d}; \
	done
	for f in `${FIND} ${WRKSRC}/data -type f -print`; do \
	    ${CHMOD} ${SHAREMODE} $${f}; \
	done
	cd ${WRKSRC} && ${PAX} -rwppm data ${DESTDIR}${SHAREDIR}

.include "../../audio/libvorbis/buildlink3.mk"
.include "../../devel/SDL/buildlink3.mk"
.include "../../devel/SDL_ttf/buildlink3.mk"
.include "../../devel/physfs/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"