1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/lang/nim/Makefile
Mathieu Arnold 4b2033bc3a Update to 0.11.2
PR:		203981
Submitted by:	Torsten Zühlsdorff
Approved by:	maintainer
Sponsored by:	Absolight
2015-10-28 12:57:46 +00:00

41 lines
899 B
Makefile

# 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>