gnu: stepmania: Fix build flags non-Intel machines.
* gnu/packages/games.scm (stepmania)[arguments]: Add a configure-flag on non-Intel machines to disable SSE2 optimizations.
This commit is contained in:
		
							parent
							
								
									fc9c47bd7c
								
							
						
					
					
						commit
						296c84847f
					
				
					 1 changed files with 9 additions and 1 deletions
				
			
		| 
						 | 
					@ -156,7 +156,9 @@
 | 
				
			||||||
  #:use-module (guix build-system scons)
 | 
					  #:use-module (guix build-system scons)
 | 
				
			||||||
  #:use-module (guix build-system python)
 | 
					  #:use-module (guix build-system python)
 | 
				
			||||||
  #:use-module (guix build-system cmake)
 | 
					  #:use-module (guix build-system cmake)
 | 
				
			||||||
  #:use-module (guix build-system trivial))
 | 
					  #:use-module (guix build-system trivial)
 | 
				
			||||||
 | 
					  #:use-module ((srfi srfi-1) #:hide (zip))
 | 
				
			||||||
 | 
					  #:use-module (srfi srfi-26))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(define-public armagetronad
 | 
					(define-public armagetronad
 | 
				
			||||||
  (package
 | 
					  (package
 | 
				
			||||||
| 
						 | 
					@ -6045,6 +6047,12 @@ civilized than your own.")
 | 
				
			||||||
       #:out-of-source? #f              ;for the 'install-desktop' phase
 | 
					       #:out-of-source? #f              ;for the 'install-desktop' phase
 | 
				
			||||||
       #:configure-flags
 | 
					       #:configure-flags
 | 
				
			||||||
       (list "-DWITH_SYSTEM_FFMPEG=1"
 | 
					       (list "-DWITH_SYSTEM_FFMPEG=1"
 | 
				
			||||||
 | 
					             ;; SSE instructions are available on Intel systems only.
 | 
				
			||||||
 | 
					             ,@(if (any (cute string-prefix? <> (or (%current-target-system)
 | 
				
			||||||
 | 
					                                                    (%current-system)))
 | 
				
			||||||
 | 
					                        '("x64_64" "i686"))
 | 
				
			||||||
 | 
					                   '()
 | 
				
			||||||
 | 
					                   '("-DWITH_SSE2=NO"))
 | 
				
			||||||
             ;; Configuration cannot find GTK2 without the two following
 | 
					             ;; Configuration cannot find GTK2 without the two following
 | 
				
			||||||
             ;; flags.
 | 
					             ;; flags.
 | 
				
			||||||
             (string-append "-DGTK2_GDKCONFIG_INCLUDE_DIR="
 | 
					             (string-append "-DGTK2_GDKCONFIG_INCLUDE_DIR="
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue