diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2015-06-27 00:35:25 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2015-06-27 00:35:25 +0000 |
commit | b5635a506187316f6a6fb7246d66af1928c43630 (patch) | |
tree | 6c92e017ea53fef18a9160f8abea3c8794a63d5d /lang | |
parent | cfa38ccfa3313dc47d0ce9d9be448d4044bc5e61 (diff) |
Notes
Diffstat (limited to 'lang')
-rw-r--r-- | lang/moscow_ml/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lang/moscow_ml/Makefile b/lang/moscow_ml/Makefile index 271bf2d93091..9c2c6c426c07 100644 --- a/lang/moscow_ml/Makefile +++ b/lang/moscow_ml/Makefile @@ -16,7 +16,7 @@ LIB_DEPENDS= libgmp.so:${PORTSDIR}/math/gmp \ RESTRICTED= Restrictions on for-profit distribution -USES= perl5 +USES= compiler:features perl5 ALL_TARGET= world MAKE_ARGS= MOSMLHOME="${MOSMLHOME}" DOCSDIR="${DOCSDIR}" \ LD_RUN_PATH="${PREFIX}/lib/mosml" @@ -28,7 +28,13 @@ SUB_FILES= pkg-message OPTIONS_DEFINE= DOCS EXAMPLES +.include <bsd.port.pre.mk> + post-patch: .SILENT +.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} < 36 + ${FIND} ${WRKSRC} -name Makefile | ${XARGS} \ + ${REINPLACE_CMD} -e "s,-fno-defer-pop,," +.endif ${FIND} ${WRKSRC} -name Makefile | ${XARGS} \ ${REINPLACE_CMD} -e "s,-O2,${CFLAGS} -I${LOCALBASE}/include," ${FIND} ${WRKDIR}/mosml/examples -name Makefile -o \ @@ -69,4 +75,4 @@ post-install: ${STAGEDIR}${PREFIX}/lib/mosml/header @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/mosml/lib*.so -.include <bsd.port.mk> +.include <bsd.port.post.mk> |