[proaudio] jack-tools files update |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/proaudio Archives
]
- To: Proaudio Mailing List <proaudio@xxxxxxxxxxxxxxxxxxx>
- Subject: [proaudio] jack-tools files update
- From: Nikita Zlobin <nick87720z@xxxxxxxxx>
- Date: Sat, 14 May 2016 16:49:03 +0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version; bh=OSHqGKPHnljIth09+g4+Xa4zjpsyJKIU1Nf2te4RF2Q=; b=WXEVRLEloqvvMxQKCTt1vmSawaDANDK0UzeIc1CkmOvqsGc5mHNvtXRhN3fSkShlYa zvA4jML36VyUwgeCdqWIDzYIKxZAWbush7PgE2uk+XtItqdZ9bqqGRdO0srpuxR+ZhVh Dl+vRK46f1qHaW5GlxzsAP17NgQEUpzyifgzELpG4uxx0i6X/t9CR3pUcS3gUD/THCEq SIXfBTeGB4F4vfVyeJtO7eGNROSHpwG9xkzVaYAXGBZXBSgUtOy4aOY2XukLe0I6RSBG K0yjkzw99RQDOv+bPy9mnsCjkMxMbcOfM2DXb9LNlFL9IKdTQJpLLzWZ4yWdxDCtA5es aYzA==
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)