Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Sep 2013 05:36:56 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r325935 - head/lang/pcc
Message-ID:  <201309020536.r825auNi087577@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Mon Sep  2 05:36:56 2013
New Revision: 325935
URL: http://svnweb.freebsd.org/changeset/ports/325935

Log:
  - Try to fix parallel (-jX) builds: use make's -C switch and add a missing
    dependency
  - While here: adjust header and COMMENT, remove useless WRKSRC assignment,
    put USES higher up where it's normally found
  - Kill EOL whitespace in pkg-descr
  
  Reported by:	marino
  Approved by:	miwi, bapt (portmgr, implicit)

Modified:
  head/lang/pcc/Makefile
  head/lang/pcc/pkg-descr

Modified: head/lang/pcc/Makefile
==============================================================================
--- head/lang/pcc/Makefile	Mon Sep  2 05:22:58 2013	(r325934)
+++ head/lang/pcc/Makefile	Mon Sep  2 05:36:56 2013	(r325935)
@@ -1,4 +1,4 @@
-# Created by: David O'Brien (obrien@NUXI.org)
+# Created by: David O'Brien <obrien@NUXI.org>
 # $FreeBSD$
 
 PORTNAME=	pcc
@@ -10,20 +10,23 @@ MASTER_SITES=	ftp://pcc.ludd.ltu.se/pub/
 EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	joel@FreeBSD.org
-COMMENT=	The Portable C Compiler
+COMMENT=	Portable C Compiler
 
 ONLY_FOR_ARCHS=	i386 amd64
 
-WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
+USES=		gmake
 GNU_CONFIGURE=	yes
 CONFIGURE_ENV=	YACC=${YACC}
-USES=		gmake
-
-MAKE_JOBS_UNSAFE=yes
 
 MAN1=		ccom.1 cpp.1 pcc.1
 PLIST_FILES=	bin/pcc libexec/ccom libexec/cpp
 
+# Fix -jX builds: use -C switch instead of cd'ing and add missing dependency
+post-patch:
+	@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -E \
+	's/cd (.+)(;| &&) (\$$[{(]MAKE[})][^$$]*)( \$$\(MFLAGS\))?/\3 -C \1/'
+	@${ECHO_CMD} 'builtins.o: pass1.h' >> ${WRKSRC}/cc/ccom/Makefile.in
+
 pre-configure:
 	${MKDIR} ${WRKSRC}/os/freebsd
 	${CP} ${FILESDIR}/*.h ${WRKSRC}/os/freebsd

Modified: head/lang/pcc/pkg-descr
==============================================================================
--- head/lang/pcc/pkg-descr	Mon Sep  2 05:22:58 2013	(r325934)
+++ head/lang/pcc/pkg-descr	Mon Sep  2 05:36:56 2013	(r325935)
@@ -1,6 +1,6 @@
 This compiler is based on the original Portable C Compiler by S. C. Johnson,
 written in the late 70's.  Even though much of the compiler has been
-rewritten, some of the basics still remain.  
+rewritten, some of the basics still remain.
 
 The intention is to write a C99 compiler while still keeping it small, simple,
 fast and understandable.  I think of it as if it shall be able to compile and



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309020536.r825auNi087577>