aboutsummaryrefslogtreecommitdiffstats
path: root/games/xevil/Makefile
blob: e41c8458a91f6f32e642b1a711efe588b66c3acb (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:   xevil
# Date created:        7 November 2000
# Whom:    Göran Runfeldt <goranrunfeldt@home.se>
#
# $FreeBSD$
#

PORTNAME=   xevil
PORTVERSION=    2.02.r2
CATEGORIES= games
MASTER_SITES=   http://www.xevil.com/download/stable/
DISTNAME=   xevilsrc${PORTVERSION:S/.r/r/}

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

USE_X_PREFIX=   yes
USE_ZIP=    yes
USE_XPM=    yes
ALL_TARGET= freebsd

.include <bsd.port.pre.mk>

# I'm not sure if this should be here
.if (${MACHINE} == "alpha")
CFLAGS+="-DXEVIL_KEYSET=UIalpha"
.endif

pre-extract:
    @${MKDIR} ${WRKDIR}/${DISTNAME}

do-extract:
    @unzip -aqo ${DISTDIR}/${DISTFILES} -d ${WRKSRC}

post-extract:
    @${MV} -f ${WRKDIR}/${DISTNAME}/makefile ${WRKDIR}/${DISTNAME}/Makefile

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/x11/FREEBSD/xevil ${PREFIX}/bin/xevil
.if !defined(NOPORTDOCS)
    ${MKDIR} ${PREFIX}/share/doc/xevil/instructions
    ${INSTALL_DATA} ${WRKSRC}/readme.txt ${PREFIX}/share/doc/xevil
    ${INSTALL_DATA} ${WRKSRC}/instructions/* \
    ${PREFIX}/share/doc/xevil/instructions
.endif

.include <bsd.port.post.mk>