summaryrefslogtreecommitdiff
path: root/graphics/babl
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2022-04-12 23:42:58 +0000
committertnn <tnn@pkgsrc.org>2022-04-12 23:42:58 +0000
commite4c17bcb2ca54e6946fe6f93c962396239046c88 (patch)
treec650c0e738a173297dcffc58ac1a91f65b2abaab /graphics/babl
parenta760de60c0040a54dedbc400a498741b2a0785b4 (diff)
downloadpkgsrc-e4c17bcb2ca54e6946fe6f93c962396239046c88.tar.gz
babl: turn mmx into a PKG_OPTION so people can easily disable it if needed
There are reports of segfaults while building gimp.
Diffstat (limited to 'graphics/babl')
-rw-r--r--graphics/babl/Makefile21
1 files changed, 18 insertions, 3 deletions
diff --git a/graphics/babl/Makefile b/graphics/babl/Makefile
index 3af5f43aaee..6fa6b77783a 100644
--- a/graphics/babl/Makefile
+++ b/graphics/babl/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.45 2022/03/23 22:27:34 tnn Exp $
+# $NetBSD: Makefile,v 1.46 2022/04/12 23:42:58 tnn Exp $
DISTNAME= babl-0.1.90
PKGREVISION= 1
@@ -37,10 +37,25 @@ PLIST_VARS+= x86_64
PLIST.x86_64= yes
.endif
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.babl
+PKG_SUPPORTED_OPTIONS=
+.if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64")
+PKG_SUPPORTED_OPTIONS+= mmx
+.endif
+
.include "../../mk/compiler.mk"
-.if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") && \
- !empty(CC_VERSION:Mgcc-7.*)
+.if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") \
+ && empty(CC_VERSION:Mgcc-7.*)
+PKG_SUGGESTED_OPTIONS= mmx
+.endif
+
+.include "../../mk/bsd.options.mk"
+
+.if empty(PKG_OPTIONS:Mmmx)
+MESON_ARGS+= -Denable-mmx=true
+.else
MESON_ARGS+= -Denable-mmx=false
.endif