Skip to content

Commit

Permalink
MSYS compilation on Windows and for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
maximd33 authored and bradleysepos committed Oct 5, 2017
1 parent 72b4ee7 commit b13b37e
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 2 deletions.
4 changes: 4 additions & 0 deletions contrib/lame/module.defs
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ LAME.FETCH.sha256 = 24346b4158e4af3bd9f2e194bb23eb473c75fb7377011523353196b19b9
ifneq (none,$(FFMPEG.GCC.g))
LAME.CONFIGURE.extra += --enable-debug
endif

ifeq (1-msys,$(BUILD.cross)-$(HOST.system))
LAME.CONFIGURE.args.build = --build=$(BUILD.machine)-unknown-linux-gnu
endif
10 changes: 8 additions & 2 deletions contrib/libiconv/module.defs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ LIBICONV.FETCH.url = https://download.handbrake.fr/handbrake/contrib/libicon
LIBICONV.FETCH.url += https://ftp.gnu.org/gnu/libiconv/libiconv-1.15.tar.gz
LIBICONV.FETCH.sha256 = ccf536620a45458d26ba83887a983b96827001e92a13847b45e4925cc8913178

ifeq (1,$(BUILD.cross))
# this contrib will not build under MinGW with -std=gnu99
ifeq (1-mingw,$(BUILD.cross)-$(BUILD.system))
LIBICONV.GCC.args.c_std = -std=gnu89
ifeq (mingw,$(BUILD.system))
LIBICONV.GCC.args.c_std = -std=gnu89
endif

ifeq (msys,$(HOST.system))
LIBICONV.CONFIGURE.args.build = --build=$(BUILD.machine)-unknown-linux-gnu
endif
endif
4 changes: 4 additions & 0 deletions contrib/libsamplerate/module.defs
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ LIBSAMPLERATE.EXTRACT.tarbase = libsamplerate

# Disable to avoid Carbon.h dependency on OSX
LIBSAMPLERATE.CONFIGURE.extra = --disable-sndfile

ifeq (1-msys,$(BUILD.cross)-$(HOST.system))
LIBSAMPLERATE.CONFIGURE.args.build = --build=$(BUILD.machine)-unknown-linux-gnu
endif
4 changes: 4 additions & 0 deletions contrib/libtheora/module.defs
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ LIBTHEORA.CONFIGURE.extra = \
--with-ogg=$(call fn.ABSOLUTE,$(CONTRIB.build/)) \
--with-vorbis=$(call fn.ABSOLUTE,$(CONTRIB.build/)) \
HAVE_PKG_CONFIG=no

ifeq (1-msys,$(BUILD.cross)-$(HOST.system))
LIBTHEORA.CONFIGURE.args.build = --build=$(BUILD.machine)-unknown-linux-gnu
endif
4 changes: 4 additions & 0 deletions contrib/libxml2/module.defs
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ LIBXML2.FETCH.sha256 = ffb911191e509b966deb55de705387f14156e1a56b21824357cdf005
# in the MinGW environment.
LIBXML2.CONFIGURE.extra = \
--without-python --without-threads

ifeq (1-msys,$(BUILD.cross)-$(HOST.system))
LIBXML2.CONFIGURE.args.build = --build=$(BUILD.machine)-unknown-linux-gnu
endif

0 comments on commit b13b37e

Please sign in to comment.