2014-07-09 04:29:21 +02:00
|
|
|
# Created by: Alejandro Pulver <alepulver@FreeBSD.org>
|
2006-12-26 05:23:35 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= matrix
|
|
|
|
PORTVERSION= 1
|
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= http://qudos.quakedev.com/linux/quake2/mods/
|
|
|
|
PKGNAMEPREFIX= ${Q2PKGNAMEPREFIX}
|
|
|
|
DISTNAME= Matrix-v${PORTVERSION}.fixed.Linux
|
|
|
|
|
2014-07-09 04:29:21 +02:00
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
2006-12-26 05:23:35 +01:00
|
|
|
COMMENT= Matrix modification for Quake II
|
|
|
|
|
2014-05-29 16:35:01 +02:00
|
|
|
USES= gmake tar:bzip2
|
2006-12-26 05:23:35 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/MatrixFixSource
|
|
|
|
ALL_TARGET= release
|
|
|
|
|
2015-08-17 16:20:40 +02:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PKGBASE}
|
2006-12-26 05:23:35 +01:00
|
|
|
|
2014-07-04 00:15:05 +02:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2006-12-26 05:23:35 +01:00
|
|
|
|
2014-07-04 00:15:05 +02:00
|
|
|
.include "${.CURDIR}/../quake2-data/Makefile.include"
|
2006-12-26 05:23:35 +01:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's/__linux__/__unix__/' \
|
|
|
|
${BUILD_WRKSRC}/q_shared.[ch]
|
|
|
|
|
|
|
|
do-install:
|
2014-07-04 00:15:05 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${Q2DIR}/${PORTNAME}
|
2006-12-26 05:23:35 +01:00
|
|
|
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/release/matrix/game.so \
|
2014-07-04 00:15:05 +02:00
|
|
|
${STAGEDIR}${Q2DIR}/${PORTNAME}
|
2014-07-09 04:29:21 +02:00
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} *.cfg *.ini *.pak \
|
|
|
|
${STAGEDIR}${Q2DIR}/${PORTNAME}
|
2014-07-04 00:15:05 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|