ports/176551: lang/tcc: Update to version 0.9.25

KATO Tsuguru tkato432 at yahoo.com
Thu Feb 28 18:10:09 UTC 2013


>Number:         176551
>Category:       ports
>Synopsis:       lang/tcc: Update to version 0.9.25
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 28 18:10:08 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p10 i386
>Organization:
>Environment:
>Description:
- Update to version 0.9.25

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/lang/tcc/Makefile lang/tcc/Makefile
--- /usr/ports/lang/tcc/Makefile	2012-11-08 08:25:28.000000000 +0900
+++ lang/tcc/Makefile	2013-02-27 14:17:09.000000000 +0900
@@ -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 at 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 -urN /usr/ports/lang/tcc/files/patch-Makefile lang/tcc/files/patch-Makefile
--- /usr/ports/lang/tcc/files/patch-Makefile	2012-11-08 08:25:28.000000000 +0900
+++ lang/tcc/files/patch-Makefile	2013-02-17 03:03:33.000000000 +0900
@@ -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 -urN /usr/ports/lang/tcc/pkg-plist lang/tcc/pkg-plist
--- /usr/ports/lang/tcc/pkg-plist	2012-11-08 08:25:28.000000000 +0900
+++ lang/tcc/pkg-plist	2013-02-17 02:06:36.000000000 +0900
@@ -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
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list