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

Bug#946079: gxtuner FTCBFS: hard codes the build architecture pkg-config



Source: gxtuner
Version: 3.0-2
Tags: patch upstream
User: debian-cross@lists.debian.org
Usertags: ftcbfs

gxtuner fails to cross build from source, because the upstream Makefile
hard codes the build architecture pkg-config. Please consider applying
the attached patch to make pkg-config substitutable and gxtuner cross
buildable.

Helmut
--- gxtuner-3.0.orig/Makefile
+++ gxtuner-3.0/Makefile
@@ -12,8 +12,9 @@
 	INCLUDE_L_DIR = /usr/local/include/
 	VER = 2.4
 	NAME = gxtuner
-	LIBS = `pkg-config --libs jack gtk+-3.0 gthread-2.0 fftw3f x11` -lzita-resampler
-	CFLAGS += -Wall -ffast-math `pkg-config --cflags jack gtk+-3.0 gthread-2.0 fftw3f`
+	PKG_CONFIG ?= pkg-config
+	LIBS = `$(PKG_CONFIG) --libs jack gtk+-3.0 gthread-2.0 fftw3f x11` -lzita-resampler
+	CFLAGS += -Wall -ffast-math `$(PKG_CONFIG) --cflags jack gtk+-3.0 gthread-2.0 fftw3f`
 	OBJS = resources.o jacktuner.o gxtuner.o cmdparser.o gx_pitch_tracker.o gtkknob.o \
            paintbox.o tuner.o deskpager.o main.o
 	DEBNAME = $(NAME)_$(VER)

Reply to: