diff options
Diffstat (limited to 'math/py-mnnpy/Makefile')
-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 |