mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
21a283f3be
UNIQUENAME was never unique, it was only used by USE_LDCONFIG and now, we won't have conflicts there. Use PKGBASE instead of LATEST_LINK in PKGLATESTFILE, the *only* consumer is pkg-devel, and it works just fine without LATEST_LINK as pkg-devel has the correct PKGNAME anyway. Now that UNIQUENAME is gone, OPTIONSFILE is too. (it's been called OPTIONS_FILE now.) Reviewed by: antoine, bapt Exp-run by: antoine Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D3336
45 lines
1.3 KiB
Makefile
45 lines
1.3 KiB
Makefile
# Created by: Alejandro Pulver <alepulver@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= lights
|
|
PORTVERSION= 1
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://bfeared.com/library/quake/archive/quakedev/qudos/quake2/mods/:data \
|
|
LOCAL/alepulver/:src
|
|
PKGNAMEPREFIX= ${Q2PKGNAMEPREFIX}
|
|
DISTNAME= Lights.v${PORTVERSION}.Linux
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:data,src \
|
|
Lights-Bots${EXTRACT_SUFX}:src
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
COMMENT= Lights and weapon effects modification for Quake II
|
|
|
|
USES= gmake tar:bzip2
|
|
NO_WRKSUBDIR= yes
|
|
BUILD_WRKSRC= ${WRKSRC}/${PORTNAME}/src
|
|
ALL_TARGET= release
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PKGBASE}
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's/__linux__/__unix__/' ${BUILD_WRKSRC}/q_shared.c
|
|
@${REINPLACE_CMD} -e 's/<malloc\.h>/<stdlib.h>/' \
|
|
${BUILD_WRKSRC}/ace/acebot_compress.c
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${Q2DIR}/${PORTNAME}
|
|
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/release/lights/game.so \
|
|
${STAGEDIR}${Q2DIR}/${PORTNAME}
|
|
${INSTALL_DATA} ${WRKSRC}/lights/pak99.pak \
|
|
${STAGEDIR}${Q2DIR}/${PORTNAME}
|
|
cd ${WRKSRC}/quake2/lights && ${CP} -a autoexec.cfg demos pics \
|
|
sprites ${STAGEDIR}${Q2DIR}/${PORTNAME}
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/quake2/lights/Readme. \
|
|
${STAGEDIR}${DOCSDIR}/readme.txt
|
|
|
|
.include "${.CURDIR}/../quake2-data/Makefile.include"
|
|
.include <bsd.port.mk>
|