libsamplerate: use BUILD_DIR/SOURCE_DIR, disable progs and docs

This commit is contained in:
Tony Theodore 2017-02-13 01:14:36 +11:00
parent af476fa53e
commit d448b42257
1 changed files with 7 additions and 3 deletions

View File

@ -20,7 +20,11 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS)
$(MAKE) -C '$(1)' -j 1 install LDFLAGS='-no-undefined'
# fftw and sndfile are only used for tests/examples
cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \
$(MXE_CONFIGURE_OPTS) \
--disable-fftw \
--disable-sndfile
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' $(MXE_DISABLE_PROGRAMS) $(MXE_DISABLE_DOCS)
$(MAKE) -C '$(BUILD_DIR)' -j 1 install $(MXE_DISABLE_PROGRAMS) $(MXE_DISABLE_DOCS)
endef