]> granicus.if.org Git - handbrake/commitdiff
MSYS compilation on Windows and for Windows
authormaxd <maxim.d33@gmail.com>
Mon, 24 Jul 2017 14:24:49 +0000 (16:24 +0200)
committerBradley Sepos <bradley@bradleysepos.com>
Thu, 5 Oct 2017 21:17:34 +0000 (17:17 -0400)
contrib/lame/module.defs
contrib/libiconv/module.defs
contrib/libsamplerate/module.defs
contrib/libtheora/module.defs
contrib/libxml2/module.defs

index b6bca0f70f22f779a2311b67e55eb26b20ace823..400146781001e993075e8b09b55760cbd74f0404 100644 (file)
@@ -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
index 4b2d9fbacff003526f7cccfc03f41a09af021e7a..9c645cc382abbbd9528cff822de04caa4ff7845d 100644 (file)
@@ -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
index f4c4555d47140a007e6b5c1077e4bf9258f4359b..cba9eea5e2157470823a02dc4f8757ce45f17733 100644 (file)
@@ -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
index 9563ba31b449a40a640f7bd69d2ff8f734508d9e..5e4fb57c3464cfddeb46a244fe438b6123af6ea8 100644 (file)
@@ -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
index e4f1755b858bfaa2b574421f5e19855a3ad72027..bf17500d92a5fa9b0e840fb874b32917dcd6f6aa 100644 (file)
@@ -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