pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/graphics/babl babl: turn mmx into a PKG_OPTION so peop...
details: https://anonhg.NetBSD.org/pkgsrc/rev/145c92e5b887
branches: trunk
changeset: 376756:145c92e5b887
user: tnn <tnn%pkgsrc.org@localhost>
date: Tue Apr 12 23:42:58 2022 +0000
description:
babl: turn mmx into a PKG_OPTION so people can easily disable it if needed
There are reports of segfaults while building gimp.
diffstat:
graphics/babl/Makefile | 21 ++++++++++++++++++---
1 files changed, 18 insertions(+), 3 deletions(-)
diffs (37 lines):
diff -r b66666a43873 -r 145c92e5b887 graphics/babl/Makefile
--- a/graphics/babl/Makefile Tue Apr 12 23:38:23 2022 +0000
+++ b/graphics/babl/Makefile Tue Apr 12 23:42:58 2022 +0000
@@ -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.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
Home |
Main Index |
Thread Index |
Old Index