aboutsummaryrefslogtreecommitdiff
path: root/games/kobodeluxe/Makefile
blob: 46cccd994b802e57a0345a88a434885d7c5dcc94 (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
43
44
45
46
47
# New ports collection makefile for:	kobodeluxe
# Date created:		12 June 2002
# Whom:			Amar Takhar <verm@drunkmonk.net>
#
# $FreeBSD$
#

PORTNAME=	kobodeluxe
DISTVERSION=	0.4pre10
CATEGORIES=	games
MASTER_SITES=	http://olofson.net/kobodl/download/
DISTNAME=	KoboDeluxe-${DISTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	An SDL port of the scrolling game XKobo

USE_SDL=	image sdl
GNU_CONFIGURE=	yes
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}

MAN6=		kobodl.6

SCOREDIR=	/var/games/${PORTNAME}
PLIST_SUB=	SCOREDIR="${SCOREDIR}"

OPTIONS=	OPENGL "OpenGL rendering layer (experimental)" off

.include <bsd.port.pre.mk>

.if defined(WITH_OPENGL)
USE_GL=		yes
CONFIGURE_ARGS+=	--enable-opengl
.endif

post-patch:
	@${REINPLACE_CMD} -e 's|$$(datadir)/games/kobo-deluxe|${DATADIR}|; \
		s|$$(prefix)/games/kobo-deluxe/scores|${SCOREDIR}|; \
		s|-lSDL$$||; s|SDL/SDL|SDL|' ${WRKSRC}/configure
	@${REINPLACE_CMD} -e 's|$$(datadir)/games/kobo-deluxe|${DATADIR}|' \
		${WRKSRC}/data/Makefile.in

post-install:
	${CHGRP} games ${PREFIX}/bin/kobodl
	${CHMOD} g+s ${PREFIX}/bin/kobodl
	${INSTALL} -d -o root -g games -m 775 ${SCOREDIR}

.include <bsd.port.post.mk>