summaryrefslogtreecommitdiff
path: root/lang/racket
diff options
context:
space:
mode:
authorJimmy Olgeni <olgeni@FreeBSD.org>2019-11-26 11:21:23 +0000
committerJimmy Olgeni <olgeni@FreeBSD.org>2019-11-26 11:21:23 +0000
commitf6d35d07e99ececbd4b467117a568ca33f428873 (patch)
tree4b0ddb8bf02028228c8da1f53653b64387835028 /lang/racket
parentUpdate to the 20191124 snapshot of GCC 10.0.0. (diff)
lang/racket and lang/racket-minimal: make FUTURES depend on JIT.
Set CFLAGS only for amd64 with JIT enabled, so as to unbreak i386 (poudriere confirms.) PR: 237528 Submitted by: m.ne@gmx.net
Notes
Notes: svn path=/head/; revision=518462
Diffstat (limited to 'lang/racket')
-rw-r--r--lang/racket/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/lang/racket/Makefile b/lang/racket/Makefile
index cc6a4c822b8a..a6f1f9c49a5f 100644
--- a/lang/racket/Makefile
+++ b/lang/racket/Makefile
@@ -52,11 +52,17 @@ OPTIONS_DEFAULT_i386= JIT
FUTURES_DESC= Enable futures
JIT_DESC= Enable JIT compiler
-JIT_CFLAGS= -msse -msse2 -mfpmath=sse
+FUTURES_IMPLIES= JIT
FUTURES_CONFIGURE_ENABLE= futures
JIT_CONFIGURE_ENABLE= jit
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MJIT} && ${ARCH} == "amd64"
+CFLAGS+= -msse -msse2 -mfpmath=sse
+.endif
+
post-install:
${FIND} ${STAGEDIR}${PREFIX} -type d -empty -delete
${REINPLACE_CMD} -e "s@${STAGEDIR}@@" ${STAGEDIR}${PREFIX}/share/applications/*.desktop