summaryrefslogtreecommitdiffstats
path: root/src/sdl2.mk
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2017-12-24 05:55:25 (GMT)
committerTony Theodore <tonyt@logyst.com>2017-12-24 05:55:25 (GMT)
commit920f9cd101b5b2a4fa5d1f391ca6e9a965655acd (patch)
treeadb636bf8895c92e9d9318df0a1b808b77b51fb8 /src/sdl2.mk
parentafad9534597860b0a8ab127fe99d403084adbdfb (diff)
parent488a8b47a7de2537d21668a7793eab2fa2b38cbc (diff)
downloadmxe-920f9cd101b5b2a4fa5d1f391ca6e9a965655acd.zip
mxe-920f9cd101b5b2a4fa5d1f391ca6e9a965655acd.tar.gz
mxe-920f9cd101b5b2a4fa5d1f391ca6e9a965655acd.tar.bz2
Merge branch 'sdl2-libsamplerate' of https://github.com/taisei-project/mxe into taisei-project-sdl2-libsamplerate
Diffstat (limited to 'src/sdl2.mk')
-rw-r--r--src/sdl2.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sdl2.mk b/src/sdl2.mk
index e717e0c..5c00645 100644
--- a/src/sdl2.mk
+++ b/src/sdl2.mk
@@ -9,7 +9,7 @@ $(PKG)_CHECKSUM := ee35c74c4313e2eda104b14b1b86f7db84a04eeab9430d56e001cea268bf4
$(PKG)_SUBDIR := SDL2-$($(PKG)_VERSION)
$(PKG)_FILE := SDL2-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := https://www.libsdl.org/release/$($(PKG)_FILE)
-$(PKG)_DEPS := cc libiconv
+$(PKG)_DEPS := cc libiconv libsamplerate
define $(PKG)_UPDATE
$(WGET) -q -O- 'https://hg.libsdl.org/SDL/tags' | \
@@ -21,7 +21,9 @@ define $(PKG)_BUILD
cd '$(1)' && aclocal -I acinclude && autoconf && ./configure \
$(MXE_CONFIGURE_OPTS) \
--enable-threads \
- --enable-directx
+ --enable-directx \
+ --enable-libsamplerate \
+ --enable-libsamplerate-shared=$(if $(BUILD_SHARED),yes,no)
$(SED) -i 's,defined(__MINGW64_VERSION_MAJOR),defined(__MINGW64_VERSION_MAJOR) \&\& defined(_WIN64),' '$(1)/include/SDL_cpuinfo.h'
$(SED) -i 's,-XCClinker,,' '$(1)/sdl2.pc'
$(SED) -i 's,-XCClinker,,' '$(1)/sdl2-config'