aboutsummaryrefslogtreecommitdiffstats
path: root/games/quake2-rogue/Makefile
blob: c1930458ef59d86c1e572229df94378aded62cea (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
# Created by: Alejandro Pulver <alepulver@FreeBSD.org>
# $FreeBSD$

PORTNAME=   rogue
PORTVERSION=    3.20
CATEGORIES= games
MASTER_SITES=   IDSOFTWARE/quake2/source
PKGNAMEPREFIX=  ${Q2PKGNAMEPREFIX}
DISTNAME=   ${PORTNAME}src${PORTVERSION:S/.//}
EXTRACT_SUFX=   .shar.Z

MAINTAINER= danfe@FreeBSD.org
COMMENT=    Quake II: Ground Zero (Rogue) official mission pack

NO_WRKSUBDIR=   yes
SUB_FILES=  pkg-message

PLIST_FILES=    %%Q2DIR%%/${PORTNAME}/game.so
PLIST_DIRS= %%Q2DIR%%/${PORTNAME}

do-extract:
    @cd ${WRKSRC} && uncompress -c ${DISTDIR}/${DISTFILES} | \
        ${TAIL} +454 | ${SH}

post-extract:
    @${CP} ${FILESDIR}/${MAKEFILE} ${WRKSRC}

post-patch:
    @${REINPLACE_CMD} -e '/#include <nan\.h>/d' ${WRKSRC}/g_local.h
    @${REINPLACE_CMD} -e 's/__linux__/__unix__/' ${WRKSRC}/q_shared.[ch]

do-install:
    @${MKDIR} ${STAGEDIR}${Q2DIR}/${PORTNAME}
    ${INSTALL_PROGRAM} ${WRKSRC}/game.so ${STAGEDIR}${Q2DIR}/${PORTNAME}

.include "${.CURDIR}/../quake2-data/Makefile.include"
.include <bsd.port.mk>