aboutsummaryrefslogtreecommitdiff
path: root/games/xspacewarp/Makefile
blob: 4afa15f34abac808cb538d60e6b7a049dfd7ad53 (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
# Created by: Andrey Zakhvatov

PORTNAME=	xspacewarp
PORTVERSION=	1.2
PORTREVISION=	2
CATEGORIES=	games
MASTER_SITES=	XCONTRIB/games

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Time Trek - like game for X Window System

USES=		imake:noman xorg
USE_XORG=	x11 xaw xext xmu xt xpm sm ice

PLIST_FILES=	bin/xspacewarp \
		lib/X11/app-defaults/XSpacewarp

post-extract:
	@${LN} -sf XSpacewarp.app_def ${WRKSRC}/XSpacewarp.ad

post-patch:
	@${FIND} ${WRKSRC} -name "*.cc" -or -name "*.hh" | ${XARGS} \
		${REINPLACE_CMD} -e \
		's|<iostream.h>|<iostream>| ; \
		 s| cerr| std::cerr| ; \
		 s| cout| std::cout| ; \
		 s| endl| std::endl|'

.include <bsd.port.mk>