many packages: use --build instead of wine cross_compiling hack

This commit is contained in:
Mark Brand 2011-11-26 16:30:36 +01:00
parent d5661822a8
commit 3cce3e9b58
34 changed files with 35 additions and 74 deletions

View File

@ -20,10 +20,9 @@ endef
define $(PKG)_BUILD
cd '$(1)' && ./buildconf
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build='$(BUILD)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--with-gnutls \

View File

@ -21,10 +21,9 @@ endef
define $(PKG)_BUILD
$(SED) -i 's,__declspec(dllimport),,' '$(1)/include/IL/il.h'
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build='$(BUILD)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--enable-ILU \

View File

@ -20,10 +20,9 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build='$(BUILD)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--disable-visibility \

View File

@ -22,10 +22,9 @@ endef
define $(PKG)_BUILD
cd '$(1)' && autoconf
$(SED) -i 's,\$$uname,MINGW,g' '$(1)/configure'
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build='$(BUILD)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--enable-threads \

View File

@ -22,11 +22,10 @@ define $(PKG)_BUILD
# ensure there is no (buggy) attempt to install the *.dll.a file
# (remove this line of you want to link dynamically)
$(SED) -i 's,^install-data-local:.*,install-data-local:,' '$(1)/src/Makefile.in'
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
$(SED) -i 's,^\(Libs:.*\),\1 @EXPAT_LIBS@ @FREETYPE_LIBS@,' '$(1)/fontconfig.pc.in'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build='$(BUILD)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--with-arch='$(TARGET)' \

View File

@ -25,12 +25,10 @@ define $(PKG)_UPDATE_orig
endef
define $(PKG)_BUILD
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--prefix='$(PREFIX)/$(TARGET)' \
--host='$(TARGET)' \
--build='$(BUILD)' \
--disable-rpath \
--disable-dependency-tracking \
--disable-shared \

View File

@ -21,10 +21,9 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build='$(BUILD)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--disable-modules \

View File

@ -53,10 +53,9 @@ define $(PKG)_BUILD
$(INSTALL) -m755 '$(1).native/gio/glib-compile-schemas' '$(PREFIX)/$(TARGET)/bin/'
# cross build
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build='$(BUILD)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--with-threads=win32 \

View File

@ -20,11 +20,9 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
# cross build
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build='$(BUILD)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
CXX='$(TARGET)-c++' \

View File

@ -20,10 +20,9 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build='$(BUILD)' \
--prefix='$(PREFIX)/$(TARGET)' \
--disable-shared \
--enable-static

View File

@ -31,8 +31,6 @@ define $(PKG)_BUILD
$(MAKE) -C '$(1)' -j '$(JOBS)' clean
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
# fix hard-coded gnutls dependencies
$(SED) -i "s/-lgnutls/`'$(TARGET)-pkg-config' --libs-only-l gnutls`/g;" '$(1)/configure'
@ -42,6 +40,7 @@ define $(PKG)_BUILD
cd '$(1)' && ac_cv_func_malloc_0_nonnull=yes ./configure \
--prefix='$(PREFIX)/$(TARGET)' \
--host='$(TARGET)' \
--build='$(BUILD)' \
--enable-gnutls \
CPPFLAGS='-DWITH_NTLM'

View File

@ -22,10 +22,9 @@ endef
define $(PKG)_BUILD
cd '$(1)' && autoconf
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build='$(BUILD)' \
--prefix='$(PREFIX)/$(TARGET)' \
--disable-shared \
--without-x \

View File

@ -22,10 +22,9 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build='$(BUILD)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
MAKE=$(MAKE)

View File

@ -22,10 +22,9 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build='$(BUILD)' \
--prefix='$(PREFIX)/$(TARGET)' \
--disable-shared \
MAKE=$(MAKE)

View File

@ -20,8 +20,6 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
# build the win32 thread sources instead of the posix thread sources
$(SED) -i 's,IlmThreadPosix\.,IlmThreadWin32.,' '$(1)/IlmThread/Makefile.in'
$(SED) -i 's,IlmThreadSemaphorePosix\.,IlmThreadSemaphoreWin32.,' '$(1)/IlmThread/Makefile.in'
@ -31,6 +29,7 @@ define $(PKG)_BUILD
# threading. It will just disable the unwanted check for pthread.
cd '$(1)' && $(SHELL) ./configure \
--host='$(TARGET)' \
--build='$(BUILD)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--disable-threading \

View File

@ -19,10 +19,9 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build='$(BUILD)' \
--prefix='$(PREFIX)/$(TARGET)' \
--disable-shared \
--with-x=no \

View File

@ -19,10 +19,9 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build='$(BUILD)' \
--prefix='$(PREFIX)/$(TARGET)' \
--disable-shared
$(MAKE) -C '$(1)' -j '$(JOBS)'

View File

@ -19,11 +19,10 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--prefix='$(PREFIX)/$(TARGET)' \
--host='$(TARGET)' \
--build='$(BUILD)' \
--disable-shared \
--with-jpeg \
--with-tiff \

View File

@ -20,11 +20,10 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--prefix='$(PREFIX)/$(TARGET)' \
--host='$(TARGET)' \
--build='$(BUILD)' \
--disable-shared \
--with-jpeg \
--with-tiff \

View File

@ -20,10 +20,9 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build='$(BUILD)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--with-gpg-error-prefix='$(PREFIX)/$(TARGET)'

View File

@ -18,12 +18,10 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/libgomp/configure'
mkdir -p '$(1)/build/$(TARGET)/libgomp'
cd '$(1)/build/$(TARGET)/libgomp' && '$(1)/libgomp/configure' \
--host='$(TARGET)' \
--build='$(BUILD)' \
--target='$(TARGET)' \
--prefix='$(PREFIX)' \
--enable-version-specific-runtime-libs \

View File

@ -19,10 +19,9 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build='$(BUILD)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--disable-nls \

View File

@ -20,10 +20,9 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && touch src/libgsasl-7.def && ./configure \
--host='$(TARGET)' \
--build='$(BUILD)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--disable-nls \

View File

@ -20,10 +20,9 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build='$(BUILD)' \
--disable-shared \
--disable-csharp \
--prefix='$(PREFIX)/$(TARGET)' \

View File

@ -20,10 +20,9 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build='$(BUILD)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)'
$(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=

View File

@ -21,10 +21,9 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
# wine confuses the cross-compiling detection, so set it explicitly
#$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build='$(BUILD)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)'
$(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=

View File

@ -20,11 +20,9 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
# cross build
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build='$(BUILD)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
CXX='$(TARGET)-c++' \

View File

@ -19,10 +19,9 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build='$(BUILD)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)'
$(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=

View File

@ -32,10 +32,9 @@ define $(PKG)_BUILD
CONFIG_SHELL=$(SHELL)
$(MAKE) -C '$(1)/$(ilmbase_SUBDIR)' -j '$(JOBS)' install \
bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build='$(BUILD)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--disable-threading \

View File

@ -20,10 +20,9 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build='$(BUILD)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
MAKE=$(MAKE)

View File

@ -21,10 +21,9 @@ endef
define $(PKG)_BUILD
$(SED) -i 's,__declspec(dllimport),,' '$(1)/pcre.h.in'
$(SED) -i 's,__declspec(dllimport),,' '$(1)/pcreposix.h'
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build='$(BUILD)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--enable-utf8 \

View File

@ -19,10 +19,9 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build='$(BUILD)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)'
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= doc_DATA=

View File

@ -21,10 +21,9 @@ endef
define $(PKG)_BUILD
$(SED) -i 's,png_check_sig,png_sig_cmp,g' '$(1)/configure'
$(SED) -i 's,wx_cv_cflags_mthread=yes,wx_cv_cflags_mthread=no,' '$(1)/configure'
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build='$(BUILD)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--enable-compat24 \
@ -70,10 +69,9 @@ define $(PKG)_BUILD
(cd '$(1)/$(wxwidgets_SUBDIR)' && $(PATCH) -p1 -u) < $(PKG_PATCH))
$(SED) -i 's,png_check_sig,png_sig_cmp,g' '$(1)/$(wxwidgets_SUBDIR)/configure'
$(SED) -i 's,wx_cv_cflags_mthread=yes,wx_cv_cflags_mthread=no,' '$(1)/$(wxwidgets_SUBDIR)/configure'
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/$(wxwidgets_SUBDIR)/configure'
cd '$(1)/$(wxwidgets_SUBDIR)' && ./configure \
--host='$(TARGET)' \
--build='$(BUILD)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--enable-compat24 \

View File

@ -20,10 +20,9 @@ endef
define $(PKG)_BUILD
cd '$(1)' && autoconf
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build='$(BUILD)' \
--prefix='$(PREFIX)/$(TARGET)'
$(MAKE) -C '$(1)' -j '$(JOBS)' BUILD_DIR='build' SHARED_LIB=
$(INSTALL) -d '$(PREFIX)/$(TARGET)/include'