# Created by: David O'Brien # $FreeBSD$ PORTNAME= pcc PORTVERSION= 1.0.0 CATEGORIES= lang MASTER_SITES= ftp://pcc.ludd.ltu.se/pub/pcc-releases/ \ http://pcc.ludd.ltu.se/ftp/pub/pcc-releases/ \ ftp://226.net120.skekraft.net/pcc-releases/ EXTRACT_SUFX= .tgz MAINTAINER= joel@FreeBSD.org COMMENT= Portable C Compiler ONLY_FOR_ARCHS= i386 amd64 USES= gmake GNU_CONFIGURE= yes CONFIGURE_ENV= YACC=${YACC} 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 ${REINPLACE_CMD} -e "s,%%OSVERMAJOR%%,${OSREL:R}," \ ${WRKSRC}/os/freebsd/ccconfig.h .include