1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/lang/tcc/Makefile

45 lines
732 B
Makefile

# $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>