diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2020-09-15 18:57:18 +0000 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2020-09-15 18:57:18 +0000 |
commit | 9ad316662e537d65f422758ca7639811a45232c0 (patch) | |
tree | ca2f6e829e4381929cb06faef778c9291190f4df /lang/nim/Makefile | |
parent | audio/zrythm: Move math/fftw3* dependencies to LIB_DEPENDS because now it lin... (diff) |
lang/nim: fix build on powerpc64 elfv1
Now newer GCC is required.
Notes
Notes:
svn path=/head/; revision=548743
Diffstat (limited to 'lang/nim/Makefile')
-rw-r--r-- | lang/nim/Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lang/nim/Makefile b/lang/nim/Makefile index 4a71fc60a196..ca5439275663 100644 --- a/lang/nim/Makefile +++ b/lang/nim/Makefile @@ -1,4 +1,4 @@ -# Created by: Neal Nelson <ports@nicandneal.net> + Created by: Neal Nelson <ports@nicandneal.net> # $FreeBSD$ PORTNAME= nim @@ -18,7 +18,7 @@ BROKEN_sparc64= fails to build: build.sh: clang: not found TEST_DEPENDS= node>=0:www/node -USES= compiler tar:xz +USES= compiler:c11 tar:xz USE_LDCONFIG= yes TOOLS_DESC= Build and install nim tools @@ -36,15 +36,17 @@ MAKE_JOBS_UNSAFE= yes TLIST= nimfind nimgrep nimpretty nimsuggest testament -.if ${ARCH} == "powerpc64" -. if defined(PPC_ABI) && ${PPC_ABI} == ELFv1 +.if ${CHOSEN_COMPILER_TYPE} == "gcc" EXTRA_PATCHES= ${PATCHDIR}/elfv1-patch-build.sh -. endif +.else +EXTRA_PATCHES= ${PATCHDIR}/clang-patch-build.sh .endif post-patch: .if defined(PPC_ABI) && ${PPC_ABI} == ELFv1 @${REINPLACE_CMD} -e '/cc =/s/clang/gcc/' ${WRKSRC}/config/nim.cfg + @${REINPLACE_CMD} -e s/%%GCC_DEFAULT%%/${GCC_DEFAULT}/ \ + ${WRKSRC}/build.sh ${WRKSRC}/config/nim.cfg .endif do-build: |