gnu: sdl-mixer: Fix fluidsynth in dependents.
Fixes <https://bugs.gnu.org/39008>. Reported by Pierre Neidhardt <mail@ambrevar.xyz>. * gnu/packages/sdl.scm (sdl-mixer)[arguments]<#:phases>[fix-fluidsynth]: New phase.
This commit is contained in:
		
							parent
							
								
									058d0251bd
								
							
						
					
					
						commit
						fa0c1a21c9
					
				
					 1 changed files with 12 additions and 1 deletions
				
			
		| 
						 | 
					@ -270,7 +270,18 @@ WEBP, XCF, XPM, and XV.")
 | 
				
			||||||
         "--disable-music-flac-shared"
 | 
					         "--disable-music-flac-shared"
 | 
				
			||||||
         "--disable-music-fluidsynth-shared"
 | 
					         "--disable-music-fluidsynth-shared"
 | 
				
			||||||
         "--disable-music-mod-shared"
 | 
					         "--disable-music-mod-shared"
 | 
				
			||||||
         "--disable-music-ogg-shared")))
 | 
					         "--disable-music-ogg-shared")
 | 
				
			||||||
 | 
					       #:phases
 | 
				
			||||||
 | 
					       (modify-phases %standard-phases
 | 
				
			||||||
 | 
					         (add-after 'unpack 'fix-fluidsynth
 | 
				
			||||||
 | 
					           (lambda* (#:key inputs #:allow-other-keys)
 | 
				
			||||||
 | 
					             (substitute* "configure"
 | 
				
			||||||
 | 
					              (("EXTRA_LDFLAGS -lfluidsynth")
 | 
				
			||||||
 | 
					               (string-append "EXTRA_LDFLAGS "
 | 
				
			||||||
 | 
					                              "-L"
 | 
				
			||||||
 | 
					                              (assoc-ref inputs "fluidsynth")
 | 
				
			||||||
 | 
					                              "/lib -lfluidsynth")))
 | 
				
			||||||
 | 
					             #t)))))
 | 
				
			||||||
    (inputs
 | 
					    (inputs
 | 
				
			||||||
     `(("fluidsynth" ,fluidsynth)
 | 
					     `(("fluidsynth" ,fluidsynth)
 | 
				
			||||||
       ("libflac" ,flac)
 | 
					       ("libflac" ,flac)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue