aboutsummaryrefslogtreecommitdiff
path: root/lang/tcc/Makefile
blob: 119997059116223e7949c8ee0b73018096d40d04 (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
# $FreeBSD$

PORTNAME=	tcc
PORTVERSION=	0.9.25
PORTREVISION=	2
CATEGORIES=	lang
MASTER_SITES=	${MASTER_SITE_SAVANNAH}
MASTER_SITE_SUBDIR=	tinycc

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

ONLY_FOR_ARCHS=	i386
#ONLY_FOR_ARCHS=	i386 amd64 arm alpha mips powerpc

CONFLICTS=	TenDRA-*

USE_BZIP2=	yes
HAS_CONFIGURE=	yes
USE_PERL5_BUILD=yes
USE_GMAKE=	yes
CONFIGURE_ARGS=	--prefix="${PREFIX}" --cc="${CC}"
MAKE_ARGS+=	CONFIG_NOLDL=1
MAN1=	tcc.1

.if defined(NOPORTDOCS)
MAKE_ARGS+=	NOPORTDOCS=1 CFLAGS="${CFLAGS}"
.endif

.include <bsd.port.pre.mk>

.if (${ARCH} == i386)
PLIST_SUB+=	WITH_I386=""
.else
PLIST_SUB+=	WITH_I386="@comment "
.endif

.include <bsd.port.post.mk>