Date: Tue, 17 Jun 2014 16:07:23 +0000 (UTC) From: Brooks Davis <brooks@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r358140 - head/devel/libdispatch Message-ID: <201406171607.s5HG7NgU058283@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <pfg@FreeBSD.org> 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 <bsd.port.pre.mk> +.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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406171607.s5HG7NgU058283>