aboutsummaryrefslogtreecommitdiff
path: root/games/freedroid/Makefile
blob: b6652a722ab9167ff90bbd7fa38e3ae58a1ed03f (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
# New ports collection makefile for: criticalmass
# Date created:		15 Sep 2003
# Whom:			benlutz@datacomm.ch
#
# $FreeBSD$
#

PORTNAME=	freedroid
PORTVERSION=	1.0.2
PORTREVISION=	12
CATEGORIES=	games
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}Classic/FreedroidClassic-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Freedroid is a clone of the classic game "Paradroid"

USE_SDL=	mixer image sdl

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--program-transform-name=

MAN6=		freedroid.6

post-extract:
.for d in graphics map sound
	@${FIND} ${WRKSRC}/${d} -type f -name "Makefile*" -print0 | \
		${XARGS} -0 ${RM}
.endfor

.include <bsd.port.pre.mk>

post-patch:
	@${REINPLACE_CMD} -e 's#-lSDL # #;' \
				${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
	@${REINPLACE_CMD} -e 's#$$(man_MANS) mac-osx ##;' \
				${WRKSRC}/Makefile.am ${WRKSRC}/Makefile.in
	@${REINPLACE_CMD} -e 's#\#include \"mac-osx/getopt\.h\"##;' \
				${WRKSRC}/src/system.h

.include <bsd.port.post.mk>