summaryrefslogtreecommitdiff
path: root/games/xevil/Makefile
blob: 47e1b5f2382acee029edadc135339364057731f9 (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
# Created by: G_ran Runfeldt <goranrunfeldt@home.se>
# $FreeBSD$

PORTNAME=	xevil
PORTVERSION=	2.02.r2
PORTREVISION=	2
CATEGORIES=	games
MASTER_SITES=	http://www.xevil.com/download/stable/ \
		http://mirror.amdmi3.ru/distfiles/
DISTNAME=	${PORTNAME}src${PORTVERSION:S/.r/r/}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Fast-action, networked, anti-social, kill-everything game

LICENSE=	GPLv2 # or later
LICENSE_FILE=	${WRKSRC}/gpl.txt

NO_WRKSUBDIR=	yes

USES=		dos2unix zip
USE_XORG=	xpm
DOS2UNIX_GLOB=	*.cpp *.h config.mk makefile
MAKEFILE=	makefile
MAKE_ARGS=	DEPTH="${WRKSRC}"
ALL_TARGET=	${OPSYS:tl}

PORTDOCS=	*
PLIST_FILES=	bin/${PORTNAME}

OPTIONS_DEFINE=	DOCS

post-patch:
	@${FIND} ${WRKSRC} -name "*.xpm" | ${XARGS} ${REINPLACE_CMD} -e \
		's|^static char|static const char|'

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/x11/${OPSYS:tu}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/readme.txt ${STAGEDIR}${DOCSDIR}
	@${MKDIR} ${STAGEDIR}${DOCSDIR}/instructions
	${INSTALL_DATA} ${WRKSRC}/instructions/* ${STAGEDIR}${DOCSDIR}/instructions

.include <bsd.port.mk>