mirror of https://github.com/wb2osz/direwolf.git
macOS: use INSTALLDIR in makefile to find libraries
This commit is contained in:
parent
9665fa845b
commit
9a98aed96e
|
@ -24,6 +24,13 @@
|
||||||
# 3. Removed fsk_fast_filter.h from atest receipe, clang compiler was having
|
# 3. Removed fsk_fast_filter.h from atest receipe, clang compiler was having
|
||||||
# a hissy fit. Not check with GCC.
|
# a hissy fit. Not check with GCC.
|
||||||
|
|
||||||
|
# Where should we install it?
|
||||||
|
# Looks for libraries and includes, default is Homebrew
|
||||||
|
INSTALLDIR := /usr/local
|
||||||
|
|
||||||
|
# To use Macports, uncomment this line
|
||||||
|
#INSTALLDIR := /opt/local
|
||||||
|
|
||||||
APPS := direwolf decode_aprs text2tt tt2text ll2utm utm2ll aclients atest log2gpx gen_packets ttcalc kissutil
|
APPS := direwolf decode_aprs text2tt tt2text ll2utm utm2ll aclients atest log2gpx gen_packets ttcalc kissutil
|
||||||
|
|
||||||
all : $(APPS) direwolf.conf
|
all : $(APPS) direwolf.conf
|
||||||
|
@ -91,19 +98,19 @@ endif
|
||||||
# Use PortAudio Library
|
# Use PortAudio Library
|
||||||
|
|
||||||
# Force static linking of portaudio if the static library is available.
|
# Force static linking of portaudio if the static library is available.
|
||||||
PA_LIB_STATIC := $(shell find /opt/local/lib -maxdepth 1 -type f -name "libportaudio.a")
|
PA_LIB_STATIC := $(shell find $(INSTALLDIR)/lib -maxdepth 1 -type f -name "libportaudio.a")
|
||||||
#$(info $$PA_LIB_STATIC is [${PA_LIB_STATIC}])
|
#$(info $$PA_LIB_STATIC is [${PA_LIB_STATIC}])
|
||||||
ifeq (${PA_LIB_STATIC},)
|
ifeq (${PA_LIB_STATIC},)
|
||||||
LDLIBS += -L/opt/local/lib -lportaudio
|
LDLIBS += -L$(INSTALLDIR)/lib -lportaudio
|
||||||
else
|
else
|
||||||
LDLIBS += /opt/local/lib/libportaudio.a
|
LDLIBS += $(INSTALLDIR)/lib/libportaudio.a
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Include libraries portaudio requires.
|
# Include libraries portaudio requires.
|
||||||
LDLIBS += -framework CoreAudio -framework AudioUnit -framework AudioToolbox
|
LDLIBS += -framework CoreAudio -framework AudioUnit -framework AudioToolbox
|
||||||
LDLIBS += -framework Foundation -framework CoreServices
|
LDLIBS += -framework Foundation -framework CoreServices
|
||||||
|
|
||||||
CFLAGS += -DUSE_PORTAUDIO -I/opt/local/include
|
CFLAGS += -DUSE_PORTAUDIO -I$(INSTALLDIR)/include
|
||||||
|
|
||||||
# Uncomment following lines to enable GPS interface & tracker function.
|
# Uncomment following lines to enable GPS interface & tracker function.
|
||||||
# Not available for MacOSX (as far as I know).
|
# Not available for MacOSX (as far as I know).
|
||||||
|
@ -112,12 +119,12 @@ CFLAGS += -DUSE_PORTAUDIO -I/opt/local/include
|
||||||
# Well never mind, issue with Macports with 64bit libs ;-( leave the check in
|
# Well never mind, issue with Macports with 64bit libs ;-( leave the check in
|
||||||
# until (if ever) Macports fixes the issue.
|
# until (if ever) Macports fixes the issue.
|
||||||
|
|
||||||
#GPS_HEADER := $(shell find /opt/local/include -maxdepth 1 -type f -name "gps.h")
|
#GPS_HEADER := $(shell find $(INSTALLDIR)/include -maxdepth 1 -type f -name "gps.h")
|
||||||
#ifeq (${GPS_HEADER},)
|
#ifeq (${GPS_HEADER},)
|
||||||
#GPS_OBJS :=
|
#GPS_OBJS :=
|
||||||
#else
|
#else
|
||||||
#CFLAGS += -DENABLE_GPSD
|
#CFLAGS += -DENABLE_GPSD
|
||||||
#LDLIBS += -L/opt/local/lib -lgps -lgpsd
|
#LDLIBS += -L$(INSTALLDIR)/lib -lgps -lgpsd
|
||||||
#GPS_OBJS := dwgps.o dwgpsnmea.o dwgpsd.o
|
#GPS_OBJS := dwgps.o dwgpsnmea.o dwgpsd.o
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue