diff options
| author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2025-07-30 14:44:36 +0000 |
|---|---|---|
| committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2025-07-30 21:18:25 +0000 |
| commit | 38419d1c4ee50b19a3f2cb6caaeb4398990b8fd7 (patch) | |
| tree | f55ab839758892988e18ac8813900235f42e9f8e | |
| parent | 1adeafd9815f3e19aa12dc25a3fd48c2c0367aea (diff) | |
math/py-mnnpy: fix build on powerpc* with CPUTYPE
-march is not supported on powerpc*.
| -rw-r--r-- | math/py-mnnpy/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/math/py-mnnpy/Makefile b/math/py-mnnpy/Makefile index 87667c377ea6..505523b429e4 100644 --- a/math/py-mnnpy/Makefile +++ b/math/py-mnnpy/Makefile @@ -25,7 +25,11 @@ USE_PYTHON= distutils cython autoplist post-patch: .if defined(CPUTYPE) +. if ${ARCH:Mpowerpc*} + @${REINPLACE_CMD} -e "s|'-march=native'|'-mcpu=${CPUTYPE}'|" ${WRKSRC}/setup.py +. else @${REINPLACE_CMD} -e "s|'-march=native'|'-march=${CPUTYPE}'|" ${WRKSRC}/setup.py +. endif .else @${REINPLACE_CMD} -e "s|'-march=native', ||" ${WRKSRC}/setup.py .endif |
