summaryrefslogtreecommitdiff
path: root/games/neverball/Makefile
blob: 6ead79a7e5274d067780810174b7cacb085187f9 (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.28 2013/06/03 10:05:03 wiz Exp $

DISTNAME=	neverball-1.5.4
PKGREVISION=	6
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

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}

LDFLAGS.DragonFly=	-lX11 -lm

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"