# Created by: Neal Nelson # $FreeBSD: head/lang/nim/Makefile 413746 2016-04-21 16:43:14Z swills $ 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 BROKEN_powerpc64= Does not build OPTIONS_DEFINE= DOCS MAKE_JOBS_UNSAFE= yes USES= compiler zip .include 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