changeset 3955:f96ff976ede7

portaudio: only set mingw flags when compiling for mingw (Bug #45175) * src/portaudio.mk: set PKG_SYSDEP_OPTIONS for mingw targets only
author John D
date Thu, 28 May 2015 21:51:36 -0400
parents 14ad478dc07b
children 125325a2a2c4
files src/portaudio.mk
diffstat 1 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/portaudio.mk	Thu May 28 21:45:33 2015 -0400
+++ b/src/portaudio.mk	Thu May 28 21:51:36 2015 -0400
@@ -10,6 +10,14 @@
 $(PKG)_URL      := http://www.portaudio.com/archives/$($(PKG)_FILE)
 $(PKG)_DEPS     := 
 
+$(PKG)_SYSDEP_OPTIONS :=
+ifeq ($(MXE_SYSTEM),mingw)
+  $(PKG)_SYSDEP_OPTIONS += \
+        --with-host_os=mingw \
+        --with-winapi=wmme,directx \
+        --with-dxdir=$(HOST_PREFIX)
+endif
+
 define $(PKG)_UPDATE
     $(WGET) -q -O- 'http://www.portaudio.com/download.html' | \
     $(SED) -n 's,.*pa_stable_v\([0-9][^>]*\)\.tgz.*,\1,p' | \
@@ -26,9 +34,7 @@
         $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
         --prefix='$(HOST_PREFIX)' \
         $(ENABLE_SHARED_OR_STATIC) \
-        --with-host_os=mingw \
-        --with-winapi=wmme,directx \
-        --with-dxdir=$(HOST_PREFIX) \
+        $($(PKG)_SYSDEP_OPTIONS) \
         ac_cv_path_AR=$(MXE_AR) \
         $(if $(filter $(BUILD_SHARED),yes),\
             lt_cv_deplibs_check_method='file_magic file format (pe-i386|pe-x86-64)' \