mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-03 01:23:49 +00:00
38 lines
1018 B
Makefile
38 lines
1018 B
Makefile
# Created by: David O'Brien <obrien@NUXI.org>
|
|
# $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
|
|
NO_STAGE= yes
|
|
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 <bsd.port.mk>
|