2008-11-30 14:03:58 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= tcc
|
2016-06-01 13:15:36 +00:00
|
|
|
DISTVERSIONPREFIX= release_
|
|
|
|
DISTVERSION= 0_9_26
|
2016-07-26 16:34:55 +00:00
|
|
|
PORTREVISION= 5
|
2008-11-30 14:03:58 +00:00
|
|
|
CATEGORIES= lang
|
|
|
|
|
2016-05-13 03:11:06 +00:00
|
|
|
MAINTAINER= cpm@FreeBSD.org
|
2008-11-30 14:03:58 +00:00
|
|
|
COMMENT= Tiny C Compiler
|
|
|
|
|
2013-03-02 14:52:46 +00:00
|
|
|
LICENSE= LGPL21
|
2016-07-26 16:34:55 +00:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
|
|
|
PORTSCOUT= skipv:initial
|
2013-03-02 14:52:46 +00:00
|
|
|
|
2015-07-24 04:28:40 +00:00
|
|
|
ONLY_FOR_ARCHS= amd64 i386
|
2009-08-21 04:39:28 +00:00
|
|
|
|
2016-05-13 03:11:06 +00:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= TinyCC
|
|
|
|
GH_PROJECT= tinycc
|
2008-11-30 21:00:42 +00:00
|
|
|
|
2016-12-27 12:20:41 +00:00
|
|
|
USES= gmake makeinfo perl5
|
2013-08-03 13:44:00 +00:00
|
|
|
USE_PERL5= build
|
2013-03-02 14:52:46 +00:00
|
|
|
HAS_CONFIGURE= yes
|
2011-10-24 04:05:11 +00:00
|
|
|
CONFIGURE_ARGS= --prefix="${PREFIX}" --cc="${CC}"
|
2013-03-02 14:52:46 +00:00
|
|
|
MAKE_ARGS= CONFIG_NOLDL=1
|
2008-11-30 14:03:58 +00:00
|
|
|
|
2014-06-19 20:13:42 +00:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
|
2014-07-29 14:33:17 +00:00
|
|
|
INFO= tcc-doc
|
2016-07-26 16:34:55 +00:00
|
|
|
PORTDOCS= Changelog README TODO VERSION
|
2013-03-02 14:52:46 +00:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2015-07-24 04:28:40 +00:00
|
|
|
.if ${ARCH} == "amd64"
|
2017-04-07 16:03:05 +00:00
|
|
|
CONFIGURE_ARGS+=--cpu=x86-64 --extra-cflags="-DTCC_TARGET_X86_64 -DONE_SOURCE"
|
2015-07-24 04:28:40 +00:00
|
|
|
MAKE_ARGS+= ARCH=x86-64
|
|
|
|
CPUTYPE= x86_64
|
2017-04-07 16:03:05 +00:00
|
|
|
FILES= bcheck.o alloca86_64.o libtcc1.o
|
2015-07-24 04:28:40 +00:00
|
|
|
|
|
|
|
PLIST_SUB+= AMD64=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= AMD64="@comment "
|
|
|
|
.endif
|
|
|
|
|
2013-03-02 14:52:46 +00:00
|
|
|
.if ${ARCH} == "i386"
|
2015-07-24 04:28:40 +00:00
|
|
|
CPUTYPE= i386
|
2017-04-07 16:03:05 +00:00
|
|
|
FILES= bcheck.o alloca86.o alloca86-bt.o
|
2015-07-24 04:28:40 +00:00
|
|
|
|
2013-03-02 14:52:46 +00:00
|
|
|
PLIST_SUB+= I386=""
|
2009-08-21 04:39:28 +00:00
|
|
|
.else
|
2013-03-02 14:52:46 +00:00
|
|
|
PLIST_SUB+= I386="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
CFLAGS+= -fheinous-gnu-extensions
|
2008-11-30 14:03:58 +00:00
|
|
|
|
2014-06-19 20:13:42 +00:00
|
|
|
post-install:
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/tcc
|
2016-05-13 03:11:06 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/tcc-doc.info ${STAGEDIR}${PREFIX}/info
|
|
|
|
${RM} -r ${STAGEDIR}${PREFIX}/share/info
|
2014-06-19 20:13:42 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/tcc.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
|
2014-07-29 14:33:17 +00:00
|
|
|
${RM} -r ${STAGEDIR}${PREFIX}/share/man
|
2015-07-24 04:28:40 +00:00
|
|
|
.for f in ${FILES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/${CPUTYPE}/*.o ${STAGEDIR}${PREFIX}/lib/tcc
|
|
|
|
.endfor
|
2014-06-19 20:13:42 +00:00
|
|
|
|
2016-05-13 03:11:06 +00:00
|
|
|
post-install-DOCS-on:
|
2017-04-07 16:03:05 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2014-06-19 20:13:42 +00:00
|
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
|
|
|
|
2016-05-13 03:11:06 +00:00
|
|
|
post-install-EXAMPLES-on:
|
2017-04-07 16:03:05 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
2014-06-19 20:13:42 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
|
2014-01-29 15:26:02 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|