mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
Cleanup Quake1-related ports and stagify appropriately.
This commit is contained in:
parent
3abb633d25
commit
d1a1c83626
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=348452
@ -59,7 +59,9 @@ PLIST_SUB+= QUAKEWORLD="@comment "
|
||||
pre-fetch:
|
||||
.if ${PORT_OPTIONS:MFULLGAME} && !exists(${_DISTDIR}/pak1.pak)
|
||||
@${ECHO_CMD}
|
||||
@${ECHO_CMD} You need to copy the file pak1.pak from the original Quake CDROM to ${_DISTDIR} in order to install this port. | ${FMT}
|
||||
@${ECHO_CMD} You need to copy the file pak1.pak from the \
|
||||
original Quake CDROM to ${_DISTDIR} in order to \
|
||||
install this port. | ${FMT}
|
||||
@${ECHO_CMD}
|
||||
@${FALSE}
|
||||
.endif
|
||||
@ -74,13 +76,14 @@ do-install:
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}/qw
|
||||
${INSTALL_DATA} ${WRKSRC}/qw/qwprogs.dat ${STAGEDIR}${DATADIR}/qw
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}/qw/skins
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/qw/skins/fixskins.sh ${STAGEDIR}${DATADIR}/qw/skins
|
||||
. if ${PORT_OPTIONS:MQW_SKINS}
|
||||
. for f in ${SKINFILES}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/qw/skins/fixskins.sh \
|
||||
${STAGEDIR}${DATADIR}/qw/skins
|
||||
. if ${PORT_OPTIONS:MQW_SKINS}
|
||||
. for f in ${SKINFILES}
|
||||
@${UNZIP_CMD} -nq ${_DISTDIR}/${f} -d ${STAGEDIR}${DATADIR}/qw/skins
|
||||
. endfor
|
||||
. endfor
|
||||
@(cd ${STAGEDIR}${DATADIR}/qw/skins && LANG=C ./fixskins.sh *)
|
||||
. endif
|
||||
. endif
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -21,8 +21,6 @@ PORTDOCS= *
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
.include "${.CURDIR}/../quake-data/Makefile.include"
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}
|
||||
.for f in Autoexec.cfg PROGS.DAT
|
||||
@ -33,4 +31,5 @@ do-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/${f:L}
|
||||
.endfor
|
||||
|
||||
.include "${.CURDIR}/../quake-data/Makefile.include"
|
||||
.include <bsd.port.mk>
|
||||
|
@ -5,8 +5,7 @@ PORTNAME= source
|
||||
PORTVERSION= 1.01
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= ${MASTER_SITE_IDSOFTWARE}
|
||||
MASTER_SITE_SUBDIR= source
|
||||
MASTER_SITES= IDSOFTWARE/source
|
||||
PKGNAMEPREFIX= quake-
|
||||
DISTNAME= qcc
|
||||
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
||||
@ -24,7 +23,6 @@ OPTIONS_DEFAULT= QUAKEWORLD
|
||||
|
||||
QUAKEWORLD_DESC= Install QuakeWorld game source
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MQUAKEWORLD}
|
||||
@ -36,24 +34,18 @@ PLIST_SUB+= QUAKEWORLD=""
|
||||
PLIST_SUB+= QUAKEWORLD="@comment "
|
||||
.endif
|
||||
|
||||
pre-patch:
|
||||
# CRLF -> LF conversion (XXX why not USE_DOS2UNIX?)
|
||||
@${FIND} ${WRKSRC} -type f | ${XARGS} ${FILE} | \
|
||||
${GREP} 'CRLF' | ${SED} -e 's/:.*//' | ${XARGS} \
|
||||
${REINPLACE_CMD} -i "" -e "s/`${PRINTF} '\r'`$$//"
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's,^\.\.,.,' ${WRKSRC}/send/v101qc/progs.src
|
||||
@${RM} ${WRKSRC}/send/v101qc/progs.src.bak
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${DATADIR}
|
||||
${CP} -a ${WRKSRC}/send/v101qc ${DATADIR}
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}
|
||||
${CP} -a ${WRKSRC}/send/v101qc ${STAGEDIR}${DATADIR}
|
||||
.if ${PORT_OPTIONS:MQUAKEWORLD}
|
||||
@${MKDIR} ${DATADIR}/qw
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}/qw
|
||||
. for f in *.h *.qc *.src
|
||||
@${REINPLACE_CMD} -e "s|`${ECHO_CMD} -e '\r'`$$||" ${WRKSRC}/qw/${f}
|
||||
${INSTALL_DATA} ${WRKSRC}/qw/${f} ${DATADIR}/qw
|
||||
@${REINPLACE_CMD} -e 's,[[:cntrl:]]*$$,,' ${WRKSRC}/qw/${f}
|
||||
${INSTALL_DATA} ${WRKSRC}/qw/${f} ${STAGEDIR}${DATADIR}/qw
|
||||
. endfor
|
||||
.endif
|
||||
|
||||
|
@ -1,8 +1,6 @@
|
||||
# Makefile for dependency to quake-source.
|
||||
# Makefile for dependency on quake-source
|
||||
|
||||
PREFIX= ${LOCALBASE}
|
||||
|
||||
Q1SRCDIR= ${PREFIX}/share/quake-source
|
||||
Q1SRCDIR= ${LOCALBASE}/share/quake-source
|
||||
|
||||
.if ${PORTNAME} == "source"
|
||||
DATADIR= ${Q1SRCDIR}
|
||||
|
Loading…
Reference in New Issue
Block a user