pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/graphics/babl



Module Name:    pkgsrc
Committed By:   tnn
Date:           Tue Apr 12 23:42:58 UTC 2022

Modified Files:
        pkgsrc/graphics/babl: Makefile

Log Message:
babl: turn mmx into a PKG_OPTION so people can easily disable it if needed

There are reports of segfaults while building gimp.


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 pkgsrc/graphics/babl/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/graphics/babl/Makefile
diff -u pkgsrc/graphics/babl/Makefile:1.45 pkgsrc/graphics/babl/Makefile:1.46
--- pkgsrc/graphics/babl/Makefile:1.45  Wed Mar 23 22:27:34 2022
+++ pkgsrc/graphics/babl/Makefile       Tue Apr 12 23:42:58 2022
@@ -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
 



Home | Main Index | Thread Index | Old Index