mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
[MAINTAINER UPDATE] games/quake3-data: redesign, change dependant ports
- Changed quake3-data/Makefile.include to be more similar to bsd.*.mk files, also it doesn't override port's variables. - Change dependant ports. PR: ports/90149 Submitted by: Alejandro Pulver <alejandro@varnet.biz>
This commit is contained in:
parent
fc631bd198
commit
7146cbc5d7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=151623
@ -23,6 +23,7 @@ COMMENT= Quake III Arena -- first person shooter (native build)
|
||||
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
|
||||
|
||||
USE_ZIP= yes
|
||||
USE_CRLF= yes
|
||||
USE_GMAKE= yes
|
||||
USE_REINPLACE= yes
|
||||
USE_PERL5_BUILD=yes
|
||||
|
@ -10,6 +10,7 @@ DISTVERSION= 1.32b-3
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= ftp://ftp.idsoftware.com/idstuff/quake3/linux/ \
|
||||
ftp://ftp.fasta.fh-dortmund.de/mirror/idstuff/quake3/linux/
|
||||
PKGNAMEPREFIX= ${Q3PKGNAMEPREFIX}
|
||||
DISTNAME= linuxq3apoint-${DISTVERSION}.x86
|
||||
EXTRACT_SUFX= .run
|
||||
|
||||
@ -21,6 +22,8 @@ NO_WRKSUBDIR= yes
|
||||
|
||||
OPTIONS= TEAMARENA "Install Quake III Team Arena data files" on
|
||||
|
||||
DATADIR= ${Q3DIR}
|
||||
|
||||
SUB_FILES= pkg-message
|
||||
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||
|
||||
|
@ -1,44 +1,33 @@
|
||||
# Makefile for defining variables used by other Quake III Arena related ports.
|
||||
# Makefile for defining variables used by other Doom related ports.
|
||||
|
||||
# Package name prefix.
|
||||
# Set variables.
|
||||
|
||||
Q3PKGNAMEPREFIX=quake3-
|
||||
Q3PKGNAMEPREFIX?=quake3-
|
||||
Q3DIR?= ${LOCALBASE}/share/quake3
|
||||
|
||||
.if ${PORTNAME} != "quake3"
|
||||
PKGNAMEPREFIX?= ${Q3PKGNAMEPREFIX}
|
||||
.endif
|
||||
# Add them to the environment.
|
||||
|
||||
# Dependency to "games/quake3-data".
|
||||
MAKE_ENV+= Q3DIR="${Q3DIR}"
|
||||
PLIST_SUB+= Q3DIR="${Q3DIR:S/${LOCALBASE}\///}"
|
||||
SUB_LIST+= Q3DIR="${Q3DIR}"
|
||||
|
||||
# Add the dependency.
|
||||
|
||||
.if ${PORTNAME} != "data"
|
||||
RUN_DEPENDS+= ${Q3DIR}/baseq3/pak1.pk3:${PORTSDIR}/games/quake3-data
|
||||
.endif
|
||||
|
||||
# Installation directories.
|
||||
# DOS to Unix text conversion.
|
||||
|
||||
Q3DIR= ${LOCALBASE}/share/quake3
|
||||
|
||||
.if ${PORTNAME} == "data" || ${PORTNAME} == "quake3"
|
||||
DATADIR?= ${Q3DIR}
|
||||
.else
|
||||
DATADIR?= ${Q3DIR}/${PORTNAME}
|
||||
.endif
|
||||
|
||||
DOCSDIR?= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
|
||||
|
||||
PLIST_SUB+= Q3DIR="${Q3DIR:S/${PREFIX}\///}"
|
||||
|
||||
# Convert "dos" text files to "unix".
|
||||
|
||||
.if defined(USE_ZIP)
|
||||
.if defined(USE_CRLF)
|
||||
. if defined(USE_ZIP)
|
||||
EXTRACT_BEFORE_ARGS= -aqo
|
||||
.else
|
||||
. else
|
||||
USE_REINPLACE= yes
|
||||
REINPLACE_ARGS= -i ""
|
||||
|
||||
pre-patch:
|
||||
# remove trailing ^M
|
||||
@${FIND} -E ${WRKSRC} -type f \
|
||||
-iregex ".*\.(bat|cfg|gam|htm|html|inf|ini|lst|sc|scr|txt|url)" \
|
||||
-exec ${REINPLACE_CMD} -e "s|`${ECHO_CMD} -e '\r'`$$||" {} \;
|
||||
@${FIND} ${WRKDIR} -type f -print0 | \
|
||||
${XARGS} -0 ${FILE} | ${GREP} 'CRLF' | \
|
||||
${SED} -e "s/:.*//" | ${SED} -e 's/ /\\ /g' | \
|
||||
${XARGS} ${REINPLACE_CMD} -i "" -e "s/`${PRINTF} '\r'`$$//"
|
||||
. endif
|
||||
.endif
|
||||
|
@ -10,6 +10,7 @@ PORTVERSION= 003
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
||||
MASTER_SITE_SUBDIR= pat
|
||||
PKGNAMEPREFIX= ${Q3PKGNAMEPREFIX}
|
||||
DISTNAME= ${PORTNAME}_q3_server_${PORTVERSION}
|
||||
|
||||
MAINTAINER= pat@FreeBSD.org
|
||||
@ -18,8 +19,11 @@ COMMENT= Quake III Arena Mod: Excessive
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
|
||||
USE_ZIP= yes
|
||||
USE_CRLF= yes
|
||||
NO_BUILD= yes
|
||||
|
||||
DATADIR= ${Q3DIR}/${PORTNAME}
|
||||
|
||||
post-extract:
|
||||
@(cd ${WRKSRC}; ${UNZIP_CMD} description.pk3)
|
||||
|
||||
|
@ -10,6 +10,7 @@ PORTVERSION= 1.51b
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
||||
MASTER_SITE_SUBDIR= pat
|
||||
PKGNAMEPREFIX= ${Q3PKGNAMEPREFIX}
|
||||
DISTNAME= q3freeze${PORTVERSION:S/.//}
|
||||
|
||||
MAINTAINER= pat@FreeBSD.org
|
||||
@ -18,8 +19,11 @@ COMMENT= Quake III Arena Mod: Freeze Tag
|
||||
WRKSRC= ${WRKDIR}/freeze
|
||||
|
||||
USE_ZIP= yes
|
||||
USE_CRLF= yes
|
||||
NO_BUILD= yes
|
||||
|
||||
DATADIR= ${Q3DIR}/${PORTNAME}
|
||||
|
||||
.include "${.CURDIR}/../quake3-data/Makefile.include"
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
@ -10,6 +10,7 @@ PORTVERSION= 1.03a
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= ${MASTER_SITE_GENTOO}
|
||||
MASTER_SITE_SUBDIR= distfiles
|
||||
PKGNAMEPREFIX= ${Q3PKGNAMEPREFIX}
|
||||
DISTNAME= osp-Quake3-${PORTVERSION}_full
|
||||
|
||||
MAINTAINER= pat@FreeBSD.org
|
||||
@ -18,8 +19,11 @@ COMMENT= Quake III Arena Mod: OSP Tourney DM/CA/CTF
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
|
||||
USE_ZIP= yes
|
||||
USE_CRLF= yes
|
||||
NO_BUILD= yes
|
||||
|
||||
DATADIR= ${Q3DIR}/${PORTNAME}
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${DATADIR}
|
||||
.for f in *.cfg *.pk3 description.txt filters.txt
|
||||
|
@ -10,6 +10,7 @@ PORTVERSION= 1.76
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= ftp.clanbase.com/pub/ \
|
||||
ftp.mirrors.degnet.de/pub/misc/PlanetQuake3.net/modifications/rocketarena3/
|
||||
PKGNAMEPREFIX= ${Q3PKGNAMEPREFIX}
|
||||
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//}
|
||||
|
||||
MAINTAINER= pat@FreeBSD.org
|
||||
@ -20,8 +21,11 @@ NO_PACKAGE= "Package will be 102MB, set FORCE_PACKAGE if you really want to buil
|
||||
WRKSRC= ${WRKDIR}/arena
|
||||
|
||||
USE_ZIP= yes
|
||||
USE_CRLF= yes
|
||||
NO_BUILD= yes
|
||||
|
||||
DATADIR= ${Q3DIR}/${PORTNAME}
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${DATADIR}
|
||||
.for f in *.cfg *.pk3
|
||||
|
@ -9,16 +9,20 @@ PORTNAME= ut
|
||||
PORTVERSION= 3.7
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= ftp://ftp.snt.utwente.nl/pub/games/urbanterror/
|
||||
PKGNAMEPREFIX= ${Q3PKGNAMEPREFIX}
|
||||
DISTNAME= urbanTerror${PORTVERSION:S/.//}_full
|
||||
|
||||
MAINTAINER= pat@FreeBSD.org
|
||||
COMMENT= Quake III Arena Mod: Urban Terror
|
||||
|
||||
USE_ZIP= yes
|
||||
USE_CRLF= yes
|
||||
NO_BUILD= yes
|
||||
NO_WRKSUBDIR= yes
|
||||
NO_PACKAGE= "Distfile is \>256MB\; define FORCE_PACKAGE if you really want this."
|
||||
|
||||
DATADIR= ${Q3DIR}/${PORTNAME}
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${DATADIR}
|
||||
.for f in *.pk3 description.txt
|
||||
|
@ -9,6 +9,7 @@ PORTNAME= wfa
|
||||
PORTVERSION= 3.5b
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= http://www.ijs.si/~lesi/distfiles/
|
||||
PKGNAMEPREFIX= ${Q3PKGNAMEPREFIX}
|
||||
DISTFILES= WFA35Engine.zip WFA35MapPack1.zip WFA35MapPack2.zip \
|
||||
WFA_v35b.zip 35b_mappack1.zip
|
||||
DIST_SUBDIR= ${PORTNAME}
|
||||
@ -19,9 +20,12 @@ COMMENT= Quake III Arena Mod: Weapons Factory Arena
|
||||
NO_PACKAGE= "Package will be 138MB, set FORCE_PACKAGE if you really want to build it"
|
||||
|
||||
USE_ZIP= yes
|
||||
USE_CRLF= yes
|
||||
NO_BUILD= yes
|
||||
NO_WRKSUBDIR= yes
|
||||
|
||||
DATADIR= ${Q3DIR}/${PORTNAME}
|
||||
|
||||
post-extract:
|
||||
@${RM} ${WRKSRC}/help/BobWFACfgV236.exe
|
||||
|
||||
|
@ -23,6 +23,7 @@ COMMENT= Quake III Arena -- first person shooter (native build)
|
||||
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
|
||||
|
||||
USE_ZIP= yes
|
||||
USE_CRLF= yes
|
||||
USE_GMAKE= yes
|
||||
USE_REINPLACE= yes
|
||||
USE_PERL5_BUILD=yes
|
||||
|
Loading…
Reference in New Issue
Block a user