summaryrefslogtreecommitdiffstats
path: root/src/sdl_mixer.mk
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2017-11-26 07:19:42 (GMT)
committerTony Theodore <tonyt@logyst.com>2017-11-28 09:33:07 (GMT)
commit0837aae2ef8c7f68c6425afa29dae56f0951d48a (patch)
treeea8cdab16066723c3869dead2a3d32fb990e3286 /src/sdl_mixer.mk
parent640a1b3a5ee53779233c172dd74bccc0de645764 (diff)
downloadmxe-0837aae2ef8c7f68c6425afa29dae56f0951d48a.zip
mxe-0837aae2ef8c7f68c6425afa29dae56f0951d48a.tar.gz
mxe-0837aae2ef8c7f68c6425afa29dae56f0951d48a.tar.bz2
sdl pkgs: enable shared
Diffstat (limited to 'src/sdl_mixer.mk')
-rw-r--r--src/sdl_mixer.mk32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/sdl_mixer.mk b/src/sdl_mixer.mk
index a8a85e9..05d4ff1 100644
--- a/src/sdl_mixer.mk
+++ b/src/sdl_mixer.mk
@@ -20,17 +20,15 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
- $(SED) -i 's,^\(Requires:.*\),\1 vorbisfile,' '$(1)/SDL_mixer.pc.in'
+ $(SED) -i 's,^\(Requires:.*\),\1 vorbisfile,' '$(SOURCE_DIR)/SDL_mixer.pc.in'
echo \
'Libs.private:' \
"`$(TARGET)-pkg-config libmodplug --libs`" \
"`$(PREFIX)/$(TARGET)/bin/smpeg-config --libs`" \
- >> '$(1)/SDL_mixer.pc.in'
- $(SED) -i 's,for path in /usr/local; do,for path in; do,' '$(1)/configure'
- cd '$(1)' && ./configure \
- --host='$(TARGET)' \
- --disable-shared \
- --prefix='$(PREFIX)/$(TARGET)' \
+ >> '$(SOURCE_DIR)/SDL_mixer.pc.in'
+ $(SED) -i 's,for path in /usr/local; do,for path in; do,' '$(SOURCE_DIR)/configure'
+ cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \
+ $(MXE_CONFIGURE_OPTS) \
--with-sdl-prefix='$(PREFIX)/$(TARGET)' \
--disable-sdltest \
--disable-music-mod \
@@ -38,20 +36,22 @@ define $(PKG)_BUILD
--enable-music-ogg \
--disable-music-flac \
--enable-music-mp3 \
- --disable-music-mod-shared \
- --disable-music-ogg-shared \
- --disable-music-flac-shared \
- --disable-music-mp3-shared \
- --disable-smpegtest \
- --with-smpeg-prefix='$(PREFIX)/$(TARGET)' \
+ $(if $(BUILD_STATIC), \
+ --disable-music-mod-shared \
+ --disable-music-ogg-shared \
+ --disable-music-flac-shared \
+ --disable-music-mp3-shared \
+ --disable-smpegtest \
+ --with-smpeg-prefix='$(PREFIX)/$(TARGET)' \
+ , \
+ --without-smpeg)
WINDRES='$(TARGET)-windres' \
LIBS='-lvorbis -logg'
- $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
+ $(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' $(if $(BUILD_SHARED),build/libSDL_mixer.la)
+ $(MAKE) -C '$(BUILD_DIR)' -j 1 install-hdrs install-lib
'$(TARGET)-gcc' \
-W -Wall -Werror -ansi -pedantic \
'$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-sdl_mixer.exe' \
`'$(TARGET)-pkg-config' SDL_mixer --cflags --libs`
endef
-
-$(PKG)_BUILD_SHARED =