blob: d0130c9699de7b67ea0dbd97bdb7c93b364a4453 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Created by: Neal Nelson <ports@nicandneal.net>
# $FreeBSD$
PORTNAME= nim
PORTVERSION= 0.11.2
CATEGORIES= lang
MASTER_SITES= http://nim-lang.org/download/
MAINTAINER= ports@nicandneal.net
COMMENT= 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}
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/nim
.include <bsd.port.post.mk>
|