aboutsummaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorGleb Popov <arrowd@FreeBSD.org>2021-04-27 13:17:11 +0000
committerGleb Popov <arrowd@FreeBSD.org>2021-04-27 13:18:25 +0000
commitdd0399efb00ed11ec8f58f8f457719cd68e5b379 (patch)
tree1dda6f526e835fd46f62e9810a6f8ca025a4d524 /textproc
parent82f9a8e69d0ab329345e794cff7b313e64bb8c86 (diff)
downloadports-dd0399efb00ed11ec8f58f8f457719cd68e5b379.tar.gz
ports-dd0399efb00ed11ec8f58f8f457719cd68e5b379.zip
textproc/hs-pandoc: Try to unbreak on i386.
Turn off compiler optimizations on i386 as they require too much RAM. Reported by: pkg-fallout
Diffstat (limited to 'textproc')
-rw-r--r--textproc/hs-pandoc/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/textproc/hs-pandoc/Makefile b/textproc/hs-pandoc/Makefile
index e1a21ee6aacc..d761ad430996 100644
--- a/textproc/hs-pandoc/Makefile
+++ b/textproc/hs-pandoc/Makefile
@@ -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>