Index: head/lang/tcc/Makefile =================================================================== --- head/lang/tcc/Makefile (revision 393584) +++ head/lang/tcc/Makefile (revision 393585) @@ -1,75 +1,75 @@ # $FreeBSD$ PORTNAME= tcc PORTVERSION= 0.9.26 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= lang MASTER_SITES= SAVANNAH/tinycc MAINTAINER= cpm@fbsd.es COMMENT= Tiny C Compiler LICENSE= LGPL21 ONLY_FOR_ARCHS= amd64 i386 CONFLICTS= TenDRA-[0-9]* USES= gmake makeinfo perl5 tar:bzip2 USE_PERL5= build HAS_CONFIGURE= yes CONFIGURE_ARGS= --prefix="${PREFIX}" --cc="${CC}" MAKE_ARGS= CONFIG_NOLDL=1 OPTIONS_DEFINE= DOCS EXAMPLES INFO= tcc-doc PORTDOCS= COPYING Changelog README TODO VERSION .include .if ${ARCH} == "amd64" CONFIGURE_ARGS+= --cpu=x86-64 --extra-cflags="-DTCC_TARGET_X86_64 -DONE_SOURCE" MAKE_ARGS+= ARCH=x86-64 CPUTYPE= x86_64 FILES= bcheck.o alloca86_64.o libtcc1.o PLIST_SUB+= AMD64="" .else PLIST_SUB+= AMD64="@comment " .endif .if ${ARCH} == "i386" CPUTYPE= i386 FILES= bcheck.o alloca86.o alloca86-bt.o 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 ${RM} -r ${STAGEDIR}${PREFIX}/share/man .for f in ${FILES} ${INSTALL_DATA} ${WRKSRC}/lib/${CPUTYPE}/*.o ${STAGEDIR}${PREFIX}/lib/tcc .endfor .if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/tcc-doc.info ${STAGEDIR}${PREFIX}/info ${RM} -r ${STAGEDIR}${PREFIX}/share/info .endif .if ${PORT_OPTIONS:MEXAMPLES} ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} .endif .include Index: head/lang/tcc/files/patch-configure =================================================================== --- head/lang/tcc/files/patch-configure (nonexistent) +++ head/lang/tcc/files/patch-configure (revision 393585) @@ -0,0 +1,30 @@ +--- configure.orig 2013-02-15 14:24:00 UTC ++++ configure +@@ -45,6 +45,7 @@ tcc_crtprefix="" + tcc_elfinterp="" + tcc_lddir= + confvars= ++define_va_list="" + + cpu=`uname -m` + +@@ -332,6 +333,9 @@ if test -z "$cross_prefix" ; then + + fi + fi ++ if ! $cc -o $CONFTEST -c $source_path/va_list.c 2>/dev/null ; then ++ define_va_list="yes" ++ fi + else + # if cross compiling, cannot launch a program, so make a static guess + case $cpu in +@@ -483,6 +487,9 @@ if test "$have_selinux" = "yes" ; then + echo "#define HAVE_SELINUX" >> $TMPH + echo "HAVE_SELINUX=yes" >> config.mak + fi ++if test "$define_va_list" = "yes" ; then ++ echo "#define DEFINE_VA_LIST" >> $TMPH ++fi + + version=`head $source_path/VERSION` + echo "VERSION=$version" >>config.mak Property changes on: head/lang/tcc/files/patch-configure ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/lang/tcc/files/patch-lib_Makefile =================================================================== --- head/lang/tcc/files/patch-lib_Makefile (revision 393584) +++ head/lang/tcc/files/patch-lib_Makefile (revision 393585) @@ -1,11 +1,11 @@ ---- lib/Makefile.orig 2015-07-21 22:05:25 UTC +--- lib/Makefile.orig 2013-02-15 14:24:00 UTC +++ lib/Makefile @@ -40,7 +40,7 @@ native : TCC = $(TOP)/tcc$(EXESUF) cross : TCC = $(TOP)/$(TARGET)-tcc$(EXESUF) I386_O = libtcc1.o alloca86.o alloca86-bt.o $(BCHECK_O) -X86_64_O = libtcc1.o alloca86_64.o +X86_64_O = libtcc1.o alloca86_64.o $(BCHECK_O) WIN32_O = $(I386_O) crt1.o wincrt1.o dllcrt1.o dllmain.o chkstk.o WIN64_O = $(X86_64_O) crt1.o wincrt1.o dllcrt1.o dllmain.o chkstk.o Index: head/lang/tcc/files/patch-libtcc.c =================================================================== --- head/lang/tcc/files/patch-libtcc.c (nonexistent) +++ head/lang/tcc/files/patch-libtcc.c (revision 393585) @@ -0,0 +1,28 @@ +--- libtcc.c.orig 2013-02-15 14:24:00 UTC ++++ libtcc.c +@@ -931,7 +931,11 @@ LIBTCCAPI TCCState *tcc_new(void) + tcc_define_symbol(s, "__i386", NULL); + tcc_define_symbol(s, "i386", NULL); + #elif defined(TCC_TARGET_X86_64) ++# if defined(__FreeBSD__) ++ tcc_define_symbol(s, "__amd64__", NULL); ++# endif + tcc_define_symbol(s, "__x86_64__", NULL); ++ tcc_define_symbol(s, "__LP64__", NULL); + #elif defined(TCC_TARGET_ARM) + tcc_define_symbol(s, "__ARM_ARCH_4__", NULL); + tcc_define_symbol(s, "__arm_elf__", NULL); +@@ -957,6 +961,13 @@ LIBTCCAPI TCCState *tcc_new(void) + tcc_define_symbol(s, "__linux", NULL); + # endif + # if defined(__FreeBSD__) ++# if defined(DEFINE_VA_LIST) ++# if defined(TCC_TARGET_X86_64) ++ tcc_define_symbol(s, "__va_list", "struct { long pad[3]; }"); ++# else ++ tcc_define_symbol(s, "__va_list", "char *"); ++# endif ++# endif + # define str(s) #s + tcc_define_symbol(s, "__FreeBSD__", str( __FreeBSD__)); + # undef str Property changes on: head/lang/tcc/files/patch-libtcc.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/lang/tcc/files/patch-va__list.c =================================================================== --- head/lang/tcc/files/patch-va__list.c (nonexistent) +++ head/lang/tcc/files/patch-va__list.c (revision 393585) @@ -0,0 +1,9 @@ +--- va_list.c.orig 2015-08-04 22:06:53 UTC ++++ va_list.c +@@ -0,0 +1,6 @@ ++#ifdef __FreeBSD__ ++#undef __GNUC__ ++#undef __GNUC_MINOR__ ++#include ++void foo(__va_list); ++#endif Property changes on: head/lang/tcc/files/patch-va__list.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property