dd5e0f907f
- Upstream has renamed the project from 'nimrod' to 'nim' PR: 199118 Submitted by: Neal Nelson <ports@nicandneal.net>
38 lines
861 B
Makefile
38 lines
861 B
Makefile
# 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>
|