aboutsummaryrefslogtreecommitdiffstats
path: root/lang/ucc/Makefile
blob: 518b5376a9f5cea7d07629b54a9c80bb070d6842 (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
# Created by: Wen Heping <wenheping@gmail.com>
# $FreeBSD$

PORTNAME=   ucc
PORTVERSION=    1.6.0
PORTREVISION=   1
CATEGORIES= lang
MASTER_SITES=   SF/${PORTNAME}/OldFiles
DISTNAME=   ucc160

MAINTAINER= ports@FreeBSD.org
COMMENT=    C Compiler Which Implements the ANSI C89 Standard

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/GPL.txt

USES=       dos2unix zip
WRKSRC=     ${WRKDIR}/${PORTNAME}

USE_LDCONFIG=   yes

post-patch: .SILENT
    ${REINPLACE_CMD} 's/make/$$(MAKE)/' \
        ${WRKSRC}/Makefile
    ${REINPLACE_CMD} -e '/^CC[[:blank:]]*=/d' \
        -e '/^CFLAGS/ { s/=/+=/; s/-g//; }' \
        -e '/:[[:blank:]]/s/\.c/.o/g' \
        -e 's/$$^/$$>/g' \
        ${WRKSRC}/driver/Makefile \
        ${WRKSRC}/ucl/Makefile
    ${REINPLACE_CMD} -e 's#$${PREFIX}#${STAGEDIR}${PREFIX}#g' ${WRKSRC}/Makefile

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*

.include <bsd.port.mk>