freebsd-ports/games/linux-rtcw/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

63 lines
1.6 KiB
Makefile

# Created by: Nik Clayton <nik@FreeBSD.org>
# $FreeBSD$
PORTNAME= rtcw
DISTVERSION= 1.41b
PORTREVISION= 2
CATEGORIES= games linux
MASTER_SITES= IDSOFTWARE/wolf/linux
PKGNAMEPREFIX= linux-
DISTNAME= wolf-linux-${DISTVERSION}.x86
EXTRACT_SUFX= .run
MAINTAINER= ports@FreeBSD.org
COMMENT= Return to Castle Wolfenstein (Linux version)
USES= makeself
USE_LINUX= yes
USE_LINUX_APPS= xorglibs
NO_WRKSUBDIR= yes
WRAPPERS= wolf wolfded wolfsp
# Ignore older version which seems to be newer
PORTSCOUT= skipv:1.41-3
PORTDOCS= *
OPTIONS_DEFINE= DOCS NVIDIA_GL
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNVIDIA_GL}
RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver
NVIDIA_GL_EXTVER= '__GL_ExtensionStringVersion=18999 '
.else
USE_LINUX_APPS+= dri
.endif
# XXX: should probably be converted to use the LICENSE framework
post-extract:
@${MV} ${WRKSRC}/pb/PB_EULA.txt ${WRKSRC}
do-build:
.for f in ${WRAPPERS}
(${ECHO_CMD} "#!${SH}"; ${ECHO_CMD}; \
${ECHO_CMD} "cd ${DATADIR} || exit 1"; \
${ECHO_CMD} '${NVIDIA_GL_EXTVER}exec ./${f} "$$@"') > ${WRKDIR}/${f}
.endfor
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
.for f in ${WRAPPERS}
${INSTALL_PROGRAM} ${WRKSRC}/bin/Linux/x86/${f}.x86 ${STAGEDIR}${DATADIR}/${f}
${INSTALL_SCRIPT} ${WRKDIR}/${f} ${STAGEDIR}${PREFIX}/bin
.endfor
${CP} -a ${WRKSRC}/main ${WRKSRC}/pb ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/Wolf[MS]P.xpm ${STAGEDIR}${PREFIX}/share/pixmaps
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && \
${INSTALL_DATA} CHANGES INSTALL QUICKSTART *.txt ${STAGEDIR}${DOCSDIR}
${CP} -a ${WRKSRC}/Docs ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>