1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/games/quake2-rogue/Makefile

46 lines
1.1 KiB
Makefile

# Created by: Alejandro Pulver <alepulver@FreeBSD.org>
# $FreeBSD$
PORTNAME= rogue
PORTVERSION= 3.20
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_IDSOFTWARE}
MASTER_SITE_SUBDIR= 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}
NO_STAGE= yes
do-extract:
@${MKDIR} ${WRKDIR}
@cd ${WRKDIR} && 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} ${Q2DIR}/${PORTNAME}
${INSTALL_PROGRAM} ${WRKSRC}/game.so ${Q2DIR}/${PORTNAME}
post-install:
@${ECHO_CMD}
@${CAT} ${PKGMESSAGE}
@${ECHO_CMD}
.include "${.CURDIR}/../quake2-data/Makefile.include"
.include <bsd.port.mk>