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

PORTNAME=	matrix
PORTVERSION=	1
CATEGORIES=	games
MASTER_SITES=	http://qudos.quakedev.com/linux/quake2/mods/
PKGNAMEPREFIX=	${Q2PKGNAMEPREFIX}
DISTNAME=	Matrix-v${PORTVERSION}.fixed.Linux

MAINTAINER=	danfe@FreeBSD.org
COMMENT=	Matrix modification for Quake II

USES=		gmake tar:bzip2
WRKSRC=		${WRKDIR}/${PORTNAME}
BUILD_WRKSRC=	${WRKSRC}/MatrixFixSource
ALL_TARGET=	release

DOCSDIR=	${PREFIX}/share/doc/${PKGBASE}

OPTIONS_DEFINE=	DOCS

.include "${.CURDIR}/../quake2-data/Makefile.include"

post-patch:
	@${REINPLACE_CMD} -e 's/__linux__/__unix__/' \
		${BUILD_WRKSRC}/q_shared.[ch]

do-install:
	@${MKDIR} ${STAGEDIR}${Q2DIR}/${PORTNAME}
	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/release/matrix/game.so \
		${STAGEDIR}${Q2DIR}/${PORTNAME}
	cd ${WRKSRC} && ${INSTALL_DATA} *.cfg *.ini *.pak \
		${STAGEDIR}${Q2DIR}/${PORTNAME}
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud