svn commit: r314428 - in head/games: frikqcc meqcc qcc qccx
Alexey Dokuchaev
danfe at FreeBSD.org
Sun Mar 17 12:39:12 UTC 2013
Author: danfe
Date: Sun Mar 17 12:39:11 2013
New Revision: 314428
URL: http://svnweb.freebsd.org/changeset/ports/314428
Log:
Cleanup QuakeC compilers we have in the tree:
- Trim old-school Makefile headers
- Get rid of NOPORTDOCS (replace with PORT_OPTIONS:MDOCS}
- Some other things along the line (non-functional)
Modified:
head/games/frikqcc/Makefile
head/games/meqcc/Makefile
head/games/qcc/Makefile
head/games/qccx/Makefile
Modified: head/games/frikqcc/Makefile
==============================================================================
--- head/games/frikqcc/Makefile Sun Mar 17 12:30:41 2013 (r314427)
+++ head/games/frikqcc/Makefile Sun Mar 17 12:39:11 2013 (r314428)
@@ -1,9 +1,5 @@
-# New ports collection makefile for: FrikQCC
-# Date created: 16 Mar 2005
-# Whom: Alexey Dokuchaev <danfe at FreeBSD.org>
-#
+# Created by: Alexey Dokuchaev <danfe at FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= frikqcc
PORTVERSION= 2.6
@@ -15,6 +11,8 @@ DISTNAME= ${PORTNAME:S/qcc//}${PORTVERSI
MAINTAINER= danfe at FreeBSD.org
COMMENT= Advanced QuakeC compiler/decompiler
+LICENSE= GPLv2
+
USE_ZIP= yes
MAKEFILE= ${FILESDIR}/Makefile
@@ -23,10 +21,9 @@ MAKE_JOBS_SAFE= yes
PLIST_FILES= bin/frikqcc bin/frikqcdec
do-install:
-.for p in ${PLIST_FILES:S/bin\///g}
+.for p in ${PLIST_FILES:T}
${INSTALL_PROGRAM} ${WRKSRC}/${p} ${PREFIX}/bin
.endfor
.include "${.CURDIR}/../quake-source/Makefile.include"
-
.include <bsd.port.mk>
Modified: head/games/meqcc/Makefile
==============================================================================
--- head/games/meqcc/Makefile Sun Mar 17 12:30:41 2013 (r314427)
+++ head/games/meqcc/Makefile Sun Mar 17 12:39:11 2013 (r314428)
@@ -1,9 +1,5 @@
-# New ports collection makefile for: MeQCC
-# Date created: 16 Jan 2005
-# Whom: Alexey Dokuchaev <danfe at FreeBSD.org>
-#
+# Created by: Alexey Dokuchaev <danfe at FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= meqcc
PORTVERSION= 1.4
@@ -13,7 +9,7 @@ MASTER_SITES= ftp://ftp.clan-rum.org/qua
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//g}src
MAINTAINER= danfe at FreeBSD.org
-COMMENT= MrElusive's QuakeC compiler
+COMMENT= MrElusive's QuakeC compiler with precompiler support
LICENSE= GPLv2
@@ -25,6 +21,10 @@ NO_WRKSUBDIR= yes
PLIST_FILES= bin/meqcc
PORTDOCS= *
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
post-patch:
@${REINPLACE_CMD} -e 's/<io\.h>/<unistd.h>/ ; /<conio\.h>/d' \
${WRKSRC}/l_log.c
@@ -33,7 +33,7 @@ post-patch:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/qcc ${PREFIX}/bin/${PORTNAME}
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/[^gr]*.txt ${DOCSDIR}
.endif
Modified: head/games/qcc/Makefile
==============================================================================
--- head/games/qcc/Makefile Sun Mar 17 12:30:41 2013 (r314427)
+++ head/games/qcc/Makefile Sun Mar 17 12:39:11 2013 (r314428)
@@ -1,9 +1,5 @@
-# New ports collection makefile for: qcc
-# Date created: October 25th 1996
-# Whom: James FitzGibbon <jfitz at FreeBSD.org>
-#
+# Created by: James FitzGibbon <jfitz at FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= qcc
PORTVERSION= 1.01
@@ -23,13 +19,17 @@ MAKEFILE= makefile
PLIST_FILES= bin/qcc
PORTDOCS= readme.txt
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
post-extract:
@${REINPLACE_CMD} -E '/^CFLAGS/d; s/cc( -c)? \$$\(C/$$(CC)\1 \$$\(C/' \
${WRKSRC}/${MAKEFILE}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/readme.txt ${DOCSDIR}
.endif
Modified: head/games/qccx/Makefile
==============================================================================
--- head/games/qccx/Makefile Sun Mar 17 12:30:41 2013 (r314427)
+++ head/games/qccx/Makefile Sun Mar 17 12:39:11 2013 (r314428)
@@ -1,9 +1,5 @@
-# New ports collection makefile for: QCCX
-# Date created: 18 Jan 2005
-# Whom: Alexey Dokuchaev <danfe at FreeBSD.org>
-#
+# Created by: Alexey Dokuchaev <danfe at FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= qccx
PORTVERSION= 1.0.0
@@ -13,22 +9,26 @@ MASTER_SITES= http://www.quakewiki.net/a
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//g}
MAINTAINER= danfe at FreeBSD.org
-COMMENT= A very fast optimizing QuakeC compiler
+COMMENT= Very fast optimizing QuakeC compiler
LICENSE= GPLv2
USE_ZIP= yes
USE_DOS2UNIX= pr_comp.cpp qcc.cpp ${PORTDOCS}
+MAKEFILE= ${FILESDIR}/Makefile
NO_WRKSUBDIR= yes
-MAKEFILE= ${FILESDIR}/Makefile
PORTDOCS= manual.txt readme.txt
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
@${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/*.qc ${WRKSRC}/progs.src ${DATADIR}
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif
More information about the svn-ports-head
mailing list