aboutsummaryrefslogtreecommitdiffstats
path: root/lang/tcc/Makefile
blob: 7e9ea383e582fe82eff121ba4385170864e66029 (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
39
40
41
42
43
44
# $FreeBSD$

PORTNAME=   tcc
PORTVERSION=    0.9.25
PORTREVISION=   2
CATEGORIES= lang
MASTER_SITES=   SAVANNAH/tinycc

MAINTAINER= ports@FreeBSD.org
COMMENT=    Tiny C Compiler

LICENSE=    LGPL21

ONLY_FOR_ARCHS= i386
#ONLY_FOR_ARCHS=    i386 amd64 arm mips powerpc

CONFLICTS=  TenDRA-*

USES=       gmake perl5
USE_BZIP2=  yes
USE_PERL5=  build
HAS_CONFIGURE=  yes
CONFIGURE_ARGS= --prefix="${PREFIX}" --cc="${CC}"
MAKE_ARGS=  CONFIG_NOLDL=1

OPTIONS_DEFINE= DOCS

.include <bsd.port.options.mk>

.if ${ARCH} == "i386"
PLIST_SUB+= I386=""
.else
PLIST_SUB+= I386="@comment "
.endif

.if ${CC:T:M*clang*} || ${OSVERSION} >= 1000024
CFLAGS+=    -fheinous-gnu-extensions
.endif

.if ! ${PORT_OPTIONS:MDOCS}
MAKE_ARGS+= NOPORTDOCS=1
.endif

.include <bsd.port.mk>