aboutsummaryrefslogtreecommitdiffstats
path: root/lang/clay
diff options
context:
space:
mode:
authorlwhsu <lwhsu@FreeBSD.org>2012-07-22 02:03:59 +0800
committerlwhsu <lwhsu@FreeBSD.org>2012-07-22 02:03:59 +0800
commit7f22ae3111ad1168815b6be43899c503e99af892 (patch)
tree581d4888b6c1ffd122e63f98a405ca67d7968260 /lang/clay
parent632ac3ecb7d70e4fb0c0cadceede813e54e707b4 (diff)
downloadfreebsd-ports-gnome-7f22ae3111ad1168815b6be43899c503e99af892.tar.gz
freebsd-ports-gnome-7f22ae3111ad1168815b6be43899c503e99af892.tar.zst
freebsd-ports-gnome-7f22ae3111ad1168815b6be43899c503e99af892.zip
- Add option to build clay-bindgen
PR: ports/169969 Submitted by: Jyun-Yan You <jyyou@cs.nctu.edu.tw> (maintainer)
Diffstat (limited to 'lang/clay')
-rw-r--r--lang/clay/Makefile21
-rw-r--r--lang/clay/pkg-plist1
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