Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Jul 2012 18:03:59 +0000 (UTC)
From:      Li-Wen Hsu <lwhsu@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r301282 - head/lang/clay
Message-ID:  <201207211803.q6LI3x9p066100@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <jyyou@cs.nctu.edu.tw> (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 <bsd.port.pre.mk>
 
-.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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207211803.q6LI3x9p066100>