[proaudio] jack-tools files update

[ Thread Index | Date Index | More lists.tuxfamily.org/proaudio Archives ]


New patch to use pkg-config, fixing missing -ltinfo flag, also rewrote
cflags.patch - now only one line differs.
--- Makefile.orig	2015-05-19 19:04:00.000000000 +0200
+++ Makefile	2015-05-19 19:05:40.070310007 +0200
@@ -1,7 +1,7 @@
 prefix=$(HOME)/opt
 bin=jack-dl jack-osc jack-play jack-plumbing jack-record jack-scope jack-transport jack-udp
 
-CFLAGS=-Wall -D_POSIX_C_SOURCE=200112 -std=c99 -O3 -g
+CFLAGS+=-Wall -D_POSIX_C_SOURCE=200112 -std=c99
 LDLIBS=c-common/lib-c-common.a -ljack -lpthread -lm
 INSTALL=install
--- Makefile.orig	2016-05-14 13:41:58.253066577 +0500
+++ Makefile	2016-05-14 13:49:36.724093182 +0500
@@ -2,25 +2,25 @@
 bin=jack-dl jack-osc jack-play jack-plumbing jack-record jack-scope jack-transport jack-udp
 
 CFLAGS+=-Wall -D_POSIX_C_SOURCE=200112 -std=c99
-LDLIBS=c-common/lib-c-common.a -ljack -lpthread -lm
+LDLIBS=c-common/lib-c-common.a `pkg-config --libs jack` -lpthread -lm
 INSTALL=install
 
 all: $(bin)
 
 jack-transport: jack-transport.c
-	gcc $(CFLAGS) $(LDFLAGS) -o jack-transport jack-transport.c $(LDLIBS) -lcurses
+	gcc $(CFLAGS) $(LDFLAGS) -o jack-transport jack-transport.c $(LDLIBS) `pkg-config --libs ncurses`
 
 jack-dl: jack-dl.c
 	gcc $(CFLAGS) $(LDFLAGS) -o jack-dl jack-dl.c $(LDLIBS) -ldl -llo
 
 jack-play: jack-play.c
-	gcc $(CFLAGS) $(LDFLAGS) -o jack-play jack-play.c $(LDLIBS) -lsndfile -lsamplerate
+	gcc $(CFLAGS) $(LDFLAGS) -o jack-play jack-play.c $(LDLIBS) `pkg-config --libs sndfile samplerate`
 
 jack-record: jack-record.c
-	gcc $(CFLAGS) $(LDFLAGS) -o jack-record jack-record.c $(LDLIBS) -lsndfile
+	gcc $(CFLAGS) $(LDFLAGS) -o jack-record jack-record.c $(LDLIBS) `pkg-config --libs sndfile`
 
 jack-scope: jack-scope.c
-	gcc $(CFLAGS) $(LDFLAGS) -o jack-scope jack-scope.c $(LDLIBS) -lX11 -lXext
+	gcc $(CFLAGS) $(LDFLAGS) -o jack-scope jack-scope.c $(LDLIBS) `pkg-config --libs x11 xext`
 
 clean:
 	(cd c-common ; make clean)


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/