Source: spout
Version: 1.4-4.1
Tags: patch upstream
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

spout fails to cross build from source, because the upstream Makefile
and config.mk hard code build architecture build tools such as cc and
pkg-config. The attached patch makes those tools substitutable to make
spout cross buildable. Please consider applying it.

Helmut
--- spout-1.4.orig/config.mk
+++ spout-1.4/config.mk
@@ -7,8 +7,9 @@
 MANPREFIX = /usr/share/man
 
 # includes and libs
-SDLINC = $(shell pkg-config --cflags sdl)
-SDLLIB = $(shell pkg-config --libs sdl)
+PKG_CONFIG ?= pkg-config
+SDLINC = $(shell $(PKG_CONFIG) --cflags sdl)
+SDLLIB = $(shell $(PKG_CONFIG) --libs sdl)
 
 INCS = -I. -I/usr/include ${SDLINC}
 LIBS = -lc ${SDLLIB}
--- spout-1.4.orig/Makefile
+++ spout-1.4/Makefile
@@ -18,11 +18,11 @@
 
 .c.o:
 	@echo CC $<
-	@cc -c $(CFLAGS) $(CPPFLAGS) $<
+	@$(CC) -c $(CFLAGS) $(CPPFLAGS) $<
 
 $(TARGETS): $(OBJ)
 	@echo LD $@
-	@cc -o $@ $(OBJ) $(LDFLAGS)
+	@$(CC) -o $@ $(OBJ) $(LDFLAGS)
 
 config.h:
 	@echo creating $@ from config.def.h

Reply via email to