aboutsummaryrefslogtreecommitdiffstats
path: root/lang/pcc
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2013-09-02 13:36:56 +0800
committerdanfe <danfe@FreeBSD.org>2013-09-02 13:36:56 +0800
commit7db60dadd005e47f59d03a0c17008cd32f65dff2 (patch)
treef790f1d5b7925b77e4923318adfea50bfce91bea /lang/pcc
parentee3e3d2850eeafa9d8a97c14a48522e5a511f1a7 (diff)
downloadfreebsd-ports-gnome-7db60dadd005e47f59d03a0c17008cd32f65dff2.tar.gz
freebsd-ports-gnome-7db60dadd005e47f59d03a0c17008cd32f65dff2.tar.zst
freebsd-ports-gnome-7db60dadd005e47f59d03a0c17008cd32f65dff2.zip
- 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)
Diffstat (limited to 'lang/pcc')
-rw-r--r--lang/pcc/Makefile15
-rw-r--r--lang/pcc/pkg-descr2
2 files changed, 10 insertions, 7 deletions
diff --git a/lang/pcc/Makefile b/lang/pcc/Makefile
index 43c33ff241b5..10c0034efc1f 100644
--- a/lang/pcc/Makefile
+++ b/lang/pcc/Makefile
@@ -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/pcc-releases/ \
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
diff --git a/lang/pcc/pkg-descr b/lang/pcc/pkg-descr
index 1843c6bc43cf..b5f48120f1c8 100644
--- a/lang/pcc/pkg-descr
+++ b/lang/pcc/pkg-descr
@@ -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