summaryrefslogtreecommitdiff
path: root/games/njam/Makefile
blob: 3b569db8cecc78bab34fe41818841ce2475dcfdc (plain) (blame)
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
# Created by: <janos.mohacsi@bsd.hu>
# $FreeBSD$

PORTNAME=	njam
PORTVERSION=	1.25
PORTREVISION=	11
CATEGORIES=	games
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
DISTNAME=	${PORTNAME}-${PORTVERSION}-src

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	Fast paced multiplayer pac-man clone

GNU_CONFIGURE=	yes
USES=		gmake
CPPFLAGS+=	-I${LOCALBASE}/include -D__linux__
USE_SDL=	mixer image net sdl

PORTDOCS=	*
PORTDATA=	*

DESKTOP_ENTRIES="njam" \
		"${COMMENT}" \
		"${DATADIR}/njamicon.ico" \
		"${PORTNAME}" \
		"Game;ArcadeGame;" \
		""

OPTIONS_DEFINE=	DOCS

post-extract:
	@${RM} -f ${WRKSRC}/src/*.o

post-patch:
	@${REINPLACE_CMD} -e 's|/var/lib/games|/var/games|' \
		${WRKSRC}/src/njam.cpp

post-install:
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/html/* ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/

.include <bsd.port.mk>