textproc/hs-pandoc: Try to unbreak on i386.

Turn off compiler optimizations on i386 as they require too much RAM.
Reported by:	pkg-fallout
This commit is contained in:
Gleb Popov 2021-04-27 16:17:11 +03:00
commit dd0399efb0

View file

@ -155,6 +155,13 @@ EXECUTABLES= pandoc
OPTIONS_SUB= yes
.include <bsd.port.pre.mk>
.if ${ARCH} == i386
# compiler goes out of memory
CABAL_FLAGS+= --disable-optimization
.endif
post-extract:
${RM} ${WRKSRC}/cabal.project
@ -163,4 +170,4 @@ post-install-EMBED_DATA-off:
post-install:
${INSTALL_MAN} ${WRKSRC}/man/pandoc.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
.include <bsd.port.mk>
.include <bsd.port.post.mk>