aboutsummaryrefslogtreecommitdiff
path: root/lang/clay/Makefile
diff options
context:
space:
mode:
authorLi-Wen Hsu <lwhsu@FreeBSD.org>2012-01-26 12:08:11 +0000
committerLi-Wen Hsu <lwhsu@FreeBSD.org>2012-01-26 12:08:11 +0000
commit8a6588eac34614a2b09b2d453763b61b398313ea (patch)
tree692c2440c705451f60b9dddfa30eed06b1212c9c /lang/clay/Makefile
parentce9b6d2abb319571671bceb7f0dcc452bbfd7bf7 (diff)
downloadports-8a6588eac34614a2b09b2d453763b61b398313ea.tar.gz
ports-8a6588eac34614a2b09b2d453763b61b398313ea.zip
Notes
Diffstat (limited to 'lang/clay/Makefile')
-rw-r--r--lang/clay/Makefile47
1 files changed, 47 insertions, 0 deletions
diff --git a/lang/clay/Makefile b/lang/clay/Makefile
new file mode 100644
index 000000000000..8f9f3d2ef2a2
--- /dev/null
+++ b/lang/clay/Makefile
@@ -0,0 +1,47 @@
+# New ports collection makefile for: clay
+# Date created: 2012-01-24
+# Whom: Jyun-Yan You <jyyou@cs.nctu.edu.tw>
+#
+# $FreeBSD$
+#
+
+PORTNAME= clay
+PORTVERSION= 0.1.0
+CATEGORIES= lang
+MASTER_SITES= https://github.com/jckarter/${PORTNAME}/tarball/v${PORTVERSION}/
+DISTNAME= jckarter-${PORTNAME}-v${PORTVERSION}-0-g${GITVERSION}
+
+MAINTAINER= jyyou@cs.nctu.edu.tw
+COMMENT= A language designed for generic programming
+
+LICENSE= BSD
+
+BUILD_DEPENDS= llvm>=3.0:${PORTSDIR}/devel/llvm
+
+GITVERSION= 0dcc5de
+FETCH_ARGS= -pRr
+WRKSRC= ${WRKDIR}/jckarter-${PORTNAME}-${GITVERSION}
+
+ONLY_FOR_ARCHS= i386 amd64
+
+CC= clang
+CXX= clang++
+
+USE_CMAKE= yes
+CMAKE_ARGS+= -G "Unix Makefiles" -DBUILD_FIX=false
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 900044
+BUILD_DEPENDS+= clang>=3.0:${PORTSDIR}/lang/clang
+RUN_DEPENDS+= clang>=3.0:${PORTSDIR}/lang/clang
+.endif
+
+.if defined(NOPORTDOCS)
+pre-configure:
+ ${REINPLACE_CMD} \
+ -e 's|install(DIRECTORY doc/ DESTINATION share/doc/clay)||' \
+ ${WRKSRC}/CMakeLists.txt
+.endif
+
+.include <bsd.port.post.mk>