diff options
author | tnn <tnn@pkgsrc.org> | 2022-04-12 23:42:58 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2022-04-12 23:42:58 +0000 |
commit | e4c17bcb2ca54e6946fe6f93c962396239046c88 (patch) | |
tree | c650c0e738a173297dcffc58ac1a91f65b2abaab /graphics/babl | |
parent | a760de60c0040a54dedbc400a498741b2a0785b4 (diff) | |
download | pkgsrc-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/Makefile | 21 |
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 |