mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
b8d66f2d08
PR: 191154 Submitted by: Carlos Jacobo Puga Medina Verified by: Redports x4 (i386-only)
55 lines
1.1 KiB
Makefile
55 lines
1.1 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= tcc
|
|
PORTVERSION= 0.9.26
|
|
CATEGORIES= lang
|
|
MASTER_SITES= SAVANNAH/tinycc
|
|
|
|
MAINTAINER= cjpugmed@gmail.com
|
|
COMMENT= Tiny C Compiler
|
|
|
|
LICENSE= LGPL21
|
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
CONFLICTS= TenDRA-[0-9]*
|
|
|
|
USES= tar:bzip2 gmake perl5
|
|
USE_PERL5= build
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --prefix="${PREFIX}" --cc="${CC}"
|
|
MAKE_ARGS= CONFIG_NOLDL=1
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
PORTDOCS= COPYING Changelog README TODO VERSION
|
|
|
|
.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
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/tcc
|
|
${INSTALL_MAN} ${WRKSRC}/tcc.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
|
|
${INSTALL_DATA} ${WRKSRC}/lib/i386/bcheck.o ${STAGEDIR}${PREFIX}/lib/tcc/
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|