aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2013-03-02 22:52:46 +0800
committermiwi <miwi@FreeBSD.org>2013-03-02 22:52:46 +0800
commit9ea1b5184fb1df5c0375f8efd4fbcbba31d52479 (patch)
tree32de811b4a8cbbd98d4cb06ec41007beb5ee8d27 /lang
parent856ddcd2c2c7f49c8bae91c69d36fcd02cd4e72a (diff)
downloadfreebsd-ports-gnome-9ea1b5184fb1df5c0375f8efd4fbcbba31d52479.tar.gz
freebsd-ports-gnome-9ea1b5184fb1df5c0375f8efd4fbcbba31d52479.tar.zst
freebsd-ports-gnome-9ea1b5184fb1df5c0375f8efd4fbcbba31d52479.zip
- Update to 0.9.25
PR: 176551 Submitted by: Ports Fury
Diffstat (limited to 'lang')
-rw-r--r--lang/tcc/Makefile32
-rw-r--r--lang/tcc/files/patch-Makefile20
-rw-r--r--lang/tcc/pkg-plist2
3 files changed, 41 insertions, 13 deletions
diff --git a/lang/tcc/Makefile b/lang/tcc/Makefile
index aeacab5c4b83..573cc45770b3 100644
--- a/lang/tcc/Makefile
+++ b/lang/tcc/Makefile
@@ -2,37 +2,47 @@
PORTNAME= tcc
PORTVERSION= 0.9.25
-PORTREVISION= 2
CATEGORIES= lang
-MASTER_SITES= ${MASTER_SITE_SAVANNAH}
-MASTER_SITE_SUBDIR= tinycc
+MASTER_SITES= SAVANNAH/tinycc
MAINTAINER= ports@FreeBSD.org
COMMENT= Tiny C Compiler
+LICENSE= LGPL21
+
+OPTIONS_DEFINE= DOCS
+
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
+HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix="${PREFIX}" --cc="${CC}"
-MAKE_ARGS+= CONFIG_NOLDL=1
-MAN1= tcc.1
+MAKE_ARGS= CONFIG_NOLDL=1
+MAKE_JOBS_SAFE= yes
-.if defined(NOPORTDOCS)
-MAKE_ARGS+= NOPORTDOCS=1 CFLAGS="${CFLAGS}"
+MAN1= tcc.1
+
+.include <bsd.port.options.mk>
+
+.if empty(PORT_OPTIONS:MDOCS)
+MAKE_ARGS+= NOPORTDOCS=1
.endif
.include <bsd.port.pre.mk>
-.if (${ARCH} == i386)
-PLIST_SUB+= WITH_I386=""
+.if ${ARCH} == "i386"
+PLIST_SUB+= I386=""
.else
-PLIST_SUB+= WITH_I386="@comment "
+PLIST_SUB+= I386="@comment "
+.endif
+
+.if ${CC:T:M*clang*} || ${OSVERSION} >= 1000024
+CFLAGS+= -fheinous-gnu-extensions
.endif
.include <bsd.port.post.mk>
diff --git a/lang/tcc/files/patch-Makefile b/lang/tcc/files/patch-Makefile
index b8248da8158b..30809392b05d 100644
--- a/lang/tcc/files/patch-Makefile
+++ b/lang/tcc/files/patch-Makefile
@@ -41,11 +41,29 @@
ifdef CONFIG_CROSS
PROGS+=$(PROGS_CROSS)
+@@ -180,7 +193,7 @@
+ endif
+
+ %.o: %.c
+- $(LIBTCC1_CC) -o $@ -c $< -O2 -Wall
++ $(LIBTCC1_CC) -o $@ -c $< $(CFLAGS) -Wall
+
+ %.o: %.S
+ $(LIBTCC1_CC) -o $@ -c $<
+@@ -189,7 +202,7 @@
+ $(AR) rcs $@ $^
+
+ bcheck.o: bcheck.c
+- $(CC) -o $@ -c $< -O2 -Wall
++ $(CC) -o $@ -c $< $(CFLAGS) -Wall
+
+ # install
+ TCC_INCLUDES = stdarg.h stddef.h stdbool.h float.h varargs.h tcclib.h
@@ -210,8 +223,10 @@
$(INSTALL) -m644 $(BCHECK_O) "$(tccdir)"
endif
$(INSTALL) -m644 $(addprefix include/,$(TCC_INCLUDES)) "$(tccdir)/include"
-+ifndef NOPORTSDOC
++ifndef NOPORTDOCS
mkdir -p "$(docdir)"
$(INSTALL) -m644 tcc-doc.html "$(docdir)"
+endif
diff --git a/lang/tcc/pkg-plist b/lang/tcc/pkg-plist
index a3c870221352..63f4ecbbd773 100644
--- a/lang/tcc/pkg-plist
+++ b/lang/tcc/pkg-plist
@@ -1,7 +1,7 @@
bin/tcc
include/libtcc.h
lib/libtcc.a
-%%WITH_I386%%lib/tcc/bcheck.o
+%%I386%%lib/tcc/bcheck.o
lib/tcc/include/float.h
lib/tcc/include/stdarg.h
lib/tcc/include/stdbool.h