aboutsummaryrefslogtreecommitdiffstats
path: root/lang/pcc/Makefile
blob: 3e5ce2e45cddc1689f62886e7a161da3f890418b (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
34
35
36
37
38
# ex:ts=8
# Ports collection makefile for:  pcc
# Date created:           Mon Sept 17, 2007
# Whom:               David O'Brien (obrien@NUXI.org)
#
# $FreeBSD$
#

PORTNAME=   pcc
PORTVERSION=    0.9.9.101107
PORTREVISION?=  0
CATEGORIES= lang
MASTER_SITES=   ftp://pcc.ludd.ltu.se/pub/pcc/ \
        http://pcc.ludd.ltu.se/ftp/pub/pcc/ \
        ftp://226.net120.skekraft.net/pcc/
DISTNAME=   pcc-${PORTVERSION:E}
EXTRACT_SUFX=   .tgz

MAINTAINER= joel@FreeBSD.org
COMMENT=    S.C.Johnson's Portable C Compiler brought into the C99 world

ONLY_FOR_ARCHS= i386 amd64

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION:E}
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  YACC=${YACC}
USE_GMAKE=  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>