From 7bec03d8ad64ae6fb916ce96123cf625085a9f03 Mon Sep 17 00:00:00 2001 From: Tony Theodore Date: Mon, 24 Jul 2017 19:20:55 +1000 Subject: [PATCH] gtk2/3: use new-style options and remove gailutil.def `gailutil.def` causes package conflicts and `*.def` files aren't really relevant for MXE (see #1772). --- src/gtk2.mk | 9 +++++++-- src/gtk3.mk | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/gtk2.mk b/src/gtk2.mk index 884bb030..210d7aca 100644 --- a/src/gtk2.mk +++ b/src/gtk2.mk @@ -21,7 +21,7 @@ define $(PKG)_UPDATE endef define $(PKG)_BUILD - cd '$(1)' && ./configure \ + cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \ $(MXE_CONFIGURE_OPTS) \ --enable-explicit-deps \ --disable-glibtest \ @@ -32,7 +32,12 @@ define $(PKG)_BUILD --disable-man \ --with-included-immodules \ --without-x - $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= + $(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' $(MXE_DISABLE_CRUFT) EXTRA_DIST= + $(MAKE) -C '$(BUILD_DIR)' -j 1 install $(MXE_DISABLE_CRUFT) EXTRA_DIST= + + # cleanup to avoid gtk2/3 conflicts (EXTRA_DIST doesn't exclude it) + # and *.def files aren't really relevant for MXE + rm -f '$(PREFIX)/$(TARGET)/lib/gailutil.def' '$(TARGET)-gcc' \ -W -Wall -Werror -ansi \ diff --git a/src/gtk3.mk b/src/gtk3.mk index 49ca20e5..4630af90 100644 --- a/src/gtk3.mk +++ b/src/gtk3.mk @@ -20,7 +20,7 @@ define $(PKG)_UPDATE endef define $(PKG)_BUILD - cd '$(1)' && ./configure \ + cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \ $(MXE_CONFIGURE_OPTS) \ --disable-glibtest \ --disable-cups \ @@ -29,7 +29,12 @@ define $(PKG)_BUILD --disable-man \ --with-included-immodules \ --enable-win32-backend - $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= + $(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' $(MXE_DISABLE_CRUFT) EXTRA_DIST= + $(MAKE) -C '$(BUILD_DIR)' -j 1 install $(MXE_DISABLE_CRUFT) EXTRA_DIST= + + # cleanup to avoid gtk2/3 conflicts (EXTRA_DIST doesn't exclude it) + # and *.def files aren't really relevant for MXE + rm -f '$(PREFIX)/$(TARGET)/lib/gailutil.def' '$(TARGET)-gcc' \ -W -Wall -Werror -ansi \