summaryrefslogtreecommitdiffstats
path: root/src/aubio.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/aubio.mk')
-rw-r--r--src/aubio.mk12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/aubio.mk b/src/aubio.mk
index 40728e7..593c5d1 100644
--- a/src/aubio.mk
+++ b/src/aubio.mk
@@ -25,7 +25,13 @@ define $(PKG)_BUILD
--with-target-platform='win$(BITS)' \
--prefix='$(PREFIX)/$(TARGET)' \
--enable-fftw3f \
- --enable-static --disable-shared
-endef
+ $(if $(BUILD_STATIC), \
+ --enable-static --disable-shared, \
+ --disable-static --enable-shared)
+
+ # It is not trivial to adjust the installation path for the DLL in the
+ # waf-based build system. Adjust it here.
+ $(if $(BUILD_SHARED), \
+ mv '$(PREFIX)/$(TARGET)/lib/libaubio-4.dll' '$(PREFIX)/$(TARGET)/bin')
-$(PKG)_BUILD_SHARED =
+endef