1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/games/quake2-rogue/Makefile
Alexey Dokuchaev 61a77b54ca Mostly cosmetic fixes over various Quake2 ports:
- Wrap overly long lines to fit standard terminal width
- When installing pre-generated docs, do not check PORT_OPTIONS:MDOCS
  which is useless in post-stage era
- Simplify MASTER_SITES, optimize away MASTER_SITE_SUBDIR if possible
- Amend COMMENT text and pkg-descr in `quake2-lights' port
- Unbreak installation of Quake2-LNX (icculus.org port)
2014-07-09 02:29:21 +00:00

39 lines
998 B
Makefile

# 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:
@${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} ${STAGEDIR}${Q2DIR}/${PORTNAME}
${INSTALL_PROGRAM} ${WRKSRC}/game.so ${STAGEDIR}${Q2DIR}/${PORTNAME}
.include "${.CURDIR}/../quake2-data/Makefile.include"
.include <bsd.port.mk>