# Created by: Neal Nelson # $FreeBSD$ PORTNAME= nimrod PORTVERSION= 0.9.2 PORTREVISION= 1 CATEGORIES= lang MASTER_SITES= http://nimrod-code.org/download/ DISTNAME= ${PORTNAME}_${PORTVERSION} MAINTAINER= ports@nicandneal.net COMMENT= The Nimrod programming language LICENSE= MIT OPTIONS_DEFINE= DOCS MAKE_JOBS_UNSAFE= yes USES= compiler zip WRKSRC= ${WRKDIR}/${PORTNAME} .include post-patch: .if ${COMPILER_TYPE} == clang @${REINPLACE_CMD} -e '/cc =/s/gcc/clang/' ${WRKSRC}/config/nimrod.cfg .endif do-build: cd ${WRKSRC} && ${SETENV} CC="${CC}" LINKER="${CC}" \ COMP_FLAGS="${CPPFLAGS} ${CFLAGS}" LINK_FLAGS="${LDFLAGS}" \ ${SH} build.sh cd ${WRKSRC} && bin/nimrod 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