1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
--- morse-2.5.orig/morse.d/Makefile
+++ morse-2.5/morse.d/Makefile
@@ -3,16 +3,18 @@
BEEPERS = beepLinux.c beepOSS.c beepX11.c beepALSA.c
SOURCES = alarm.c morse.c alarm.h beep.h $(BEEPERS)
+PKG_CONFIG ?= pkg-config
+
# The flags necessary to link with the X11 libraries.
X11LIBS = -L/usr/X11R6/lib -lX11
# The flags necessary to link with PulseAudio and support pthread
-PA_CFLAGS = -pthread $(shell pkg-config --cflags libpulse-simple)
-PA_LIBS = $(shell pkg-config --libs libpulse-simple) -pthread
+PA_CFLAGS = -pthread $(shell $(PKG_CONFIG) --cflags libpulse-simple)
+PA_LIBS = $(shell $(PKG_CONFIG) --libs libpulse-simple) -pthread
# The flags necessary to link with ALSA
-ALSA_CFLAGS = $(shell pkg-config --cflags alsa)
-ALSA_LIBS = $(shell pkg-config --libs alsa)
+ALSA_CFLAGS = $(shell $(PKG_CONFIG) --cflags alsa)
+ALSA_LIBS = $(shell $(PKG_CONFIG) --libs alsa)
# Any additional flags your favorite C compiler requires to work.
CFLAGS = -O3 -I/usr/X11R6/include $($(device)_EXTRA_CFLAGS)
|