fixes to work with new support in Homebrew.jl for libsndfile and portaudio
This commit is contained in:
parent
450a9e9184
commit
3d1def96ec
2 changed files with 8 additions and 1 deletions
2
deps/build.jl
vendored
2
deps/build.jl
vendored
|
@ -17,7 +17,7 @@ provides(AptGet, {"libsndfile1-dev" => libsndfile})
|
|||
end
|
||||
using Homebrew
|
||||
provides(Homebrew.HB, {"portaudio" => libportaudio})
|
||||
provides(Homebrew.HB, {"sndfile" => libsndfile})
|
||||
provides(Homebrew.HB, {"libsndfile" => libsndfile})
|
||||
end
|
||||
|
||||
@BinDeps.install [:libportaudio => :libportaudio,
|
||||
|
|
7
deps/src/Makefile
vendored
7
deps/src/Makefile
vendored
|
@ -19,6 +19,10 @@ CFLAGS =-g
|
|||
LIBS =-L/usr/local/lib -lportaudio
|
||||
LINUX_LIBS =-lrt
|
||||
LINUX_LDFLAGS =-rdynamic
|
||||
# add the Homebrew.jl tree to the include dirs in case we used it for
|
||||
# portaudio and libsndfile
|
||||
DARWIN_LDFLAGS =-L../../../Homebrew/deps/usr/lib
|
||||
DARWIN_INC =-I../../../Homebrew/deps/usr/include
|
||||
|
||||
OBJS = shim.o
|
||||
|
||||
|
@ -33,10 +37,13 @@ ifeq ($(OS), WINNT)
|
|||
SHLIB_EXT = dll
|
||||
else ifeq ($(OS), Darwin)
|
||||
SHLIB_EXT = dylib
|
||||
INC += $(DARWIN_INC)
|
||||
LDFLAGS += $(DARWIN_LDFLAGS)
|
||||
else
|
||||
LIBS += $(LINUX_LIBS)
|
||||
LDFLAGS += $(LINUX_LDFLAGS)
|
||||
SHLIB_EXT = so
|
||||
INC += $(LINUX_INC)
|
||||
endif
|
||||
|
||||
default: libportaudio_shim.$(SHLIB_EXT)
|
||||
|
|
Loading…
Reference in a new issue