aboutsummaryrefslogtreecommitdiffstats
path: root/lang/pcc/Makefile
blob: 43c33ff241b5b47017c28d6fb966f60b2fc18c9e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# 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=    The Portable C Compiler

ONLY_FOR_ARCHS= i386 amd64

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}
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

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>