From owner-svn-ports-head@FreeBSD.ORG Tue Jun 17 16:07:24 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0FCF55B8; Tue, 17 Jun 2014 16:07:24 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D8B0F2EF1; Tue, 17 Jun 2014 16:07:23 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s5HG7Np9058285; Tue, 17 Jun 2014 16:07:23 GMT (envelope-from brooks@svn.freebsd.org) Received: (from brooks@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s5HG7NgU058283; Tue, 17 Jun 2014 16:07:23 GMT (envelope-from brooks@svn.freebsd.org) Message-Id: <201406171607.s5HG7NgU058283@svn.freebsd.org> From: Brooks Davis Date: Tue, 17 Jun 2014 16:07:23 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r358140 - head/devel/libdispatch X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jun 2014 16:07:24 -0000 Author: brooks Date: Tue Jun 17 16:07:23 2014 New Revision: 358140 URL: http://svnweb.freebsd.org/changeset/ports/358140 QAT: https://qat.redports.org/buildarchive/r358140/ Log: Apple's GCC block support was backported to FreeBSD's gcc-4.2.1 in base (r260311). With a small revision (r264121) which was MFCd to 10.0-STABLE as r264214, our base GCC got the capacity to build more blocks application cleanly. This support is important for platforms lack support for clang like ia64, powerpc and sparc64. The attached patch: - Overrides the clang port option in platforms that ship a valid block-enabled compiler in base. - Let's platforms like powerpc and sparc use the base compiler. - Adds license information for libdispatch (Apache License 2.0) PR: 188332 Submitted by: Pedro F. Giffuni Modified: head/devel/libdispatch/Makefile Modified: head/devel/libdispatch/Makefile ============================================================================== --- head/devel/libdispatch/Makefile Tue Jun 17 15:55:27 2014 (r358139) +++ head/devel/libdispatch/Makefile Tue Jun 17 16:07:23 2014 (r358140) @@ -10,18 +10,16 @@ MASTER_SITES= ftp://ftp.SpringDaemons.co MAINTAINER= brooks@FreeBSD.org COMMENT= Grand Central Dispatch API support library +LICENSE= APACHE20 + +USES= tar:bzip2 USE_AUTOTOOLS= aclocal autoconf ACLOCAL_ARGS= -Im4 GNU_CONFIGURE= yes -USE_BZIP2= yes USE_LDCONFIG= yes # This is needed because PIC support check in autoconf could fail for clang otherwise. CONFIGURE_ENV= lt_cv_prog_compiler_pic_works=yes -OPTIONS_DEFINE= CLANG -OPTIONS_DEFAULT= CLANG -CLANG_DESC= Build with LLVM/Clang (required for blocks support) - _MAN3= dispatch.3 \ dispatch_after.3 \ dispatch_after_f.3 \ @@ -80,11 +78,17 @@ PLIST_FILES+= ${_MAN3:S|^|man/man3/|:S|$ .include +.if (${OSVERSION} < 1000024) +OPTIONS_DEFINE= CLANG +OPTIONS_DEFAULT= CLANG +CLANG_DESC= Build with LLVM/Clang (required for blocks support) +.endif + .if ${OSVERSION} <= 800107 || (${OSVERSION} >= 900000 && ${OSVERSION} < 900002) IGNORE= is not supported on this OS version .endif -.if ${OSVERSION} > 900000 +.if ((${OSVERSION} > 900000) && (${OSVERSION} < 1000706)) .if ${ARCH} == "powerpc BROKEN= Does not configure on powerpc-9 .elif ${ARCH} == "sparc64