diff options
author | Li-Wen Hsu <lwhsu@FreeBSD.org> | 2012-07-21 18:03:59 +0000 |
---|---|---|
committer | Li-Wen Hsu <lwhsu@FreeBSD.org> | 2012-07-21 18:03:59 +0000 |
commit | e3459aed9502f5088dbb2982c30ef781c6fb130f (patch) | |
tree | 581d4888b6c1ffd122e63f98a405ca67d7968260 /lang/clay | |
parent | Unbreak by juggling some files between plists (diff) |
- Add option to build clay-bindgen
PR: ports/169969
Submitted by: Jyun-Yan You <jyyou@cs.nctu.edu.tw> (maintainer)
Notes
Notes:
svn path=/head/; revision=301282
Diffstat (limited to 'lang/clay')
-rw-r--r-- | lang/clay/Makefile | 21 | ||||
-rw-r--r-- | lang/clay/pkg-plist | 1 |
2 files changed, 17 insertions, 5 deletions
diff --git a/lang/clay/Makefile b/lang/clay/Makefile index 5682b7b40ae5..9ada0ad525e1 100644 --- a/lang/clay/Makefile +++ b/lang/clay/Makefile @@ -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 programming 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) diff --git a/lang/clay/pkg-plist b/lang/clay/pkg-plist index 50e1b02f0351..ba033e13a1da 100644 --- a/lang/clay/pkg-plist +++ b/lang/clay/pkg-plist @@ -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 |