From owner-svn-ports-all@FreeBSD.ORG Sat Jul 21 18:04:00 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5A024106566B; Sat, 21 Jul 2012 18:04:00 +0000 (UTC) (envelope-from lwhsu@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 2BE078FC25; Sat, 21 Jul 2012 18:04:00 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q6LI40HJ066103; Sat, 21 Jul 2012 18:04:00 GMT (envelope-from lwhsu@svn.freebsd.org) Received: (from lwhsu@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q6LI3x9p066100; Sat, 21 Jul 2012 18:03:59 GMT (envelope-from lwhsu@svn.freebsd.org) Message-Id: <201207211803.q6LI3x9p066100@svn.freebsd.org> From: Li-Wen Hsu Date: Sat, 21 Jul 2012 18:03:59 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r301282 - head/lang/clay X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jul 2012 18:04:00 -0000 Author: lwhsu Date: Sat Jul 21 18:03:59 2012 New Revision: 301282 URL: http://svn.freebsd.org/changeset/ports/301282 Log: - Add option to build clay-bindgen PR: ports/169969 Submitted by: Jyun-Yan You (maintainer) Modified: head/lang/clay/Makefile (contents, props changed) head/lang/clay/pkg-plist (contents, props changed) Modified: head/lang/clay/Makefile ============================================================================== --- head/lang/clay/Makefile Sat Jul 21 17:30:57 2012 (r301281) +++ head/lang/clay/Makefile Sat Jul 21 18:03:59 2012 (r301282) @@ -7,7 +7,7 @@ PORTNAME= clay PORTVERSION= 0.1.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= lang MASTER_SITES= https://github.com/jckarter/${PORTNAME}/tarball/v${PORTVERSION}/ DISTNAME= jckarter-${PORTNAME}-v${PORTVERSION}-0-g${GITVERSION} @@ -17,7 +17,11 @@ COMMENT= A language designed for generic LICENSE= BSD -BUILD_DEPENDS= llvm>=3.0:${PORTSDIR}/devel/llvm +BUILD_DEPENDS= llvm>=3.1:${PORTSDIR}/devel/llvm + +OPTIONS_DEFINE= BINDGEN +BINDGEN_DESC= Build with binding generator +OPTIONS_DEFAULT= BINDGEN GITVERSION= 850c5c9 FETCH_ARGS= -pRr @@ -33,9 +37,16 @@ CXX= clang++ .include -.if ${OSVERSION} < 900044 -BUILD_DEPENDS+= clang>=3.0:${PORTSDIR}/lang/clang -RUN_DEPENDS+= clang>=3.0:${PORTSDIR}/lang/clang +.if ${PORT_OPTIONS:MBINDGEN} +PLIST_SUB+= BINDGEN="" +.else +PLIST_SUB+= BINDGEN="@comment " +CMAKE_ARGS+= -DBUILD_BINDGEN=false +.endif + +.if ${OSVERSION} < 900044 || ${PORT_OPTIONS:MBINDGEN} +BUILD_DEPENDS+= clang>=3.1:${PORTSDIR}/lang/clang +RUN_DEPENDS+= clang>=3.1:${PORTSDIR}/lang/clang .endif .if defined(NOPORTDOCS) Modified: head/lang/clay/pkg-plist ============================================================================== --- head/lang/clay/pkg-plist Sat Jul 21 17:30:57 2012 (r301281) +++ head/lang/clay/pkg-plist Sat Jul 21 18:03:59 2012 (r301282) @@ -1,4 +1,5 @@ bin/clay +%%BINDGEN%%bin/clay-bindgen lib/lib-clay/algorithms/algorithms.clay lib/lib-clay/algorithms/heaps/heaps.clay lib/lib-clay/algorithms/introsort/introsort.clay