diff options
author | danfe <danfe@FreeBSD.org> | 2013-05-12 21:00:07 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2013-05-12 21:00:07 +0800 |
commit | 5a132498a52e21e43940dddd6583ca0c16ce712e (patch) | |
tree | 681f2350239e886f37ff6efb61d6978d24b1a3db /games | |
parent | 090493bb90c3f2741ba098e699d704f35dbe8cb6 (diff) | |
download | freebsd-ports-gnome-5a132498a52e21e43940dddd6583ca0c16ce712e.tar.gz freebsd-ports-gnome-5a132498a52e21e43940dddd6583ca0c16ce712e.tar.zst freebsd-ports-gnome-5a132498a52e21e43940dddd6583ca0c16ce712e.zip |
Cleanup quake3-data a bit more:
- Remove USE_CRLF knob: instead, when extracting ZIP archives, ask it to
convert text files to Unix style. This should be no-op change, as all
consumers of USE_CRLF also USE_ZIP
- While here, remove unneeded output redirection in `do-extract' target
Diffstat (limited to 'games')
-rw-r--r-- | games/quake3-data/Makefile | 4 | ||||
-rw-r--r-- | games/quake3-data/Makefile.include | 11 | ||||
-rw-r--r-- | games/quake3-excessive/Makefile | 1 | ||||
-rw-r--r-- | games/quake3-freezetag/Makefile | 1 | ||||
-rw-r--r-- | games/quake3-ra3/Makefile | 3 | ||||
-rw-r--r-- | games/quake3-ut/Makefile | 1 | ||||
-rw-r--r-- | games/quake3-wfa/Makefile | 3 |
7 files changed, 6 insertions, 18 deletions
diff --git a/games/quake3-data/Makefile b/games/quake3-data/Makefile index 549e639dbda3..fe12e27118d4 100644 --- a/games/quake3-data/Makefile +++ b/games/quake3-data/Makefile @@ -37,8 +37,8 @@ PLIST_SUB+= TEAMARENA="@comment " do-extract: @${RM} -rf ${WRKDIR} @${MKDIR} ${WRKDIR} - @cd ${WRKDIR} && ${TAIL} +356 ${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX} | \ - ${TAR} zxf - >/dev/null + @cd ${WRKDIR} && ${TAIL} +356 \ + ${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX} | ${TAR} xzf - do-install: @${MKDIR} ${DATADIR} diff --git a/games/quake3-data/Makefile.include b/games/quake3-data/Makefile.include index e976c4b57723..a7f196158479 100644 --- a/games/quake3-data/Makefile.include +++ b/games/quake3-data/Makefile.include @@ -16,14 +16,7 @@ SUB_LIST+= Q3DIR="${Q3DIR}" RUN_DEPENDS+= ${Q3DIR}/baseq3/pak1.pk3:${PORTSDIR}/games/quake3-data .endif -.if defined(USE_CRLF) -. if defined(USE_ZIP) +# When extracting ZIP archives, ask it to convert text files to Unix style +.if defined(USE_ZIP) EXTRACT_BEFORE_ARGS= -aqo -. else -pre-patch: - @${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 diff --git a/games/quake3-excessive/Makefile b/games/quake3-excessive/Makefile index 0abd45363e57..e6fa3e81d895 100644 --- a/games/quake3-excessive/Makefile +++ b/games/quake3-excessive/Makefile @@ -19,7 +19,6 @@ COMMENT= Quake III Arena Mod: Excessive WRKSRC= ${WRKDIR}/${PORTNAME} USE_ZIP= yes -USE_CRLF= yes NO_BUILD= yes DATADIR= ${Q3DIR}/${PORTNAME} diff --git a/games/quake3-freezetag/Makefile b/games/quake3-freezetag/Makefile index fb776633c8c0..5681360f7402 100644 --- a/games/quake3-freezetag/Makefile +++ b/games/quake3-freezetag/Makefile @@ -20,7 +20,6 @@ COMMENT= Quake III Arena Mod: Freeze Tag WRKSRC= ${WRKDIR}/freeze USE_ZIP= yes -USE_CRLF= yes NO_BUILD= yes DATADIR= ${Q3DIR}/${PORTNAME} diff --git a/games/quake3-ra3/Makefile b/games/quake3-ra3/Makefile index 6c45765fa693..0b5572188be6 100644 --- a/games/quake3-ra3/Makefile +++ b/games/quake3-ra3/Makefile @@ -11,10 +11,9 @@ DISTNAME= ${PORTNAME}${PORTVERSION:S/.//} MAINTAINER= ports@FreeBSD.org COMMENT= Quake III Arena mod: Rocket Arena 3 -NO_PACKAGE= Package will be 131MB, set FORCE_PACKAGE if you really want it +NO_PACKAGE= package will be 131MB, set FORCE_PACKAGE if you really want it USE_ZIP= yes -USE_CRLF= yes NO_BUILD= yes WRKSRC= ${WRKDIR}/arena diff --git a/games/quake3-ut/Makefile b/games/quake3-ut/Makefile index f17faa14b9a9..a2df46639f4a 100644 --- a/games/quake3-ut/Makefile +++ b/games/quake3-ut/Makefile @@ -14,7 +14,6 @@ COMMENT= Quake III Arena mod: Urban Terror NO_PACKAGE= package will be 445MB, set FORCE_PACKAGE if you really want it USE_ZIP= yes -USE_CRLF= yes .if defined(.PARSEDIR) USE_GMAKE= yes .endif diff --git a/games/quake3-wfa/Makefile b/games/quake3-wfa/Makefile index 5a4dfcf0046a..729ae621784a 100644 --- a/games/quake3-wfa/Makefile +++ b/games/quake3-wfa/Makefile @@ -13,10 +13,9 @@ DIST_SUBDIR= ${PORTNAME} MAINTAINER= ports@FreeBSD.org COMMENT= Quake III Arena mod: Weapons Factory Arena -NO_PACKAGE= Package will be 200MB, set FORCE_PACKAGE if you really want it +NO_PACKAGE= package will be 200MB, set FORCE_PACKAGE if you really want it USE_ZIP= yes -USE_CRLF= yes NO_BUILD= yes NO_WRKSUBDIR= yes |