summaryrefslogtreecommitdiff
path: root/lang/nim/Makefile
diff options
context:
space:
mode:
authorBartek Rutkowski <robak@FreeBSD.org>2015-04-03 20:32:14 +0000
committerBartek Rutkowski <robak@FreeBSD.org>2015-04-03 20:32:14 +0000
commitdd5e0f907f0e5d0bc118bccffd5ae911374488b0 (patch)
tree5f8f30c9be2016db9bb793fb6b39fcfd0a562fe0 /lang/nim/Makefile
parentxmpp-client is a simple XMPP client written in pure Go. It supports the OTR (diff)
lang/nimrod: MOVED to lang/nim and update 0.9.2 -> 0.10.2
- Upstream has renamed the project from 'nimrod' to 'nim' PR: 199118 Submitted by: Neal Nelson <ports@nicandneal.net>
Notes
Notes: svn path=/head/; revision=383175
Diffstat (limited to 'lang/nim/Makefile')
-rw-r--r--lang/nim/Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/lang/nim/Makefile b/lang/nim/Makefile
new file mode 100644
index 000000000000..151b36f59299
--- /dev/null
+++ b/lang/nim/Makefile
@@ -0,0 +1,38 @@
+# Created by: Neal Nelson <ports@nicandneal.net>
+# $FreeBSD$
+
+PORTNAME= nim
+PORTVERSION= 0.10.2
+PORTREVISION= 0
+CATEGORIES= lang
+MASTER_SITES= http://nim-lang.org/download/
+
+MAINTAINER= ports@nicandneal.net
+COMMENT= The Nim programming language
+
+LICENSE= MIT
+
+OPTIONS_DEFINE= DOCS
+
+MAKE_JOBS_UNSAFE= yes
+USES= compiler zip
+
+.include <bsd.port.pre.mk>
+
+post-patch:
+.if ${COMPILER_TYPE} == clang
+ @${REINPLACE_CMD} -e '/cc =/s/gcc/clang/' ${WRKSRC}/config/nim.cfg
+.endif
+
+do-build:
+ cd ${WRKSRC} && ${SETENV} CC="${CC}" LINKER="${CC}" \
+ COMP_FLAGS="${CPPFLAGS} ${CFLAGS}" LINK_FLAGS="${LDFLAGS}" \
+ ${SH} build.sh
+ cd ${WRKSRC} && bin/nim c --parallelBuild=${MAKE_JOBS_NUMBER} koch
+ cd ${WRKSRC} && ./koch boot --parallelBuild=${MAKE_JOBS_NUMBER} \
+ -d:release
+
+do-install:
+ cd ${WRKSRC} && ${SH} install.sh ${STAGEDIR}${PREFIX}
+
+.include <bsd.port.post.mk>