mirror of https://git.wownero.com/dsc/mxe.git
packages gcc libvpx openssl portaudio: use escaped substitution style
prompted by sample package recipe on @TimothyGu's wiki
This commit is contained in:
parent
89f10e44f8
commit
7d7dd227db
|
@ -83,7 +83,7 @@ define $(PKG)_BUILD_mingw-w64
|
|||
cd '$(1).crt-build' && '$(1)/$(mingw-w64_SUBDIR)/mingw-w64-crt/configure' \
|
||||
--host='$(TARGET)' \
|
||||
--prefix='$(PREFIX)/$(TARGET)' \
|
||||
mxe-config-opts
|
||||
@gcc-crt-config-opts@
|
||||
$(MAKE) -C '$(1).crt-build' -j '$(JOBS)' || $(MAKE) -C '$(1).crt-build' -j '$(JOBS)'
|
||||
$(MAKE) -C '$(1).crt-build' -j 1 install
|
||||
|
||||
|
@ -95,8 +95,8 @@ define $(PKG)_BUILD_mingw-w64
|
|||
$($(PKG)_POST_BUILD)
|
||||
endef
|
||||
|
||||
$(PKG)_BUILD_x86_64-w64-mingw32 = $(subst mxe-config-opts,--disable-lib32,$($(PKG)_BUILD_mingw-w64))
|
||||
$(PKG)_BUILD_i686-w64-mingw32 = $(subst mxe-config-opts,--disable-lib64,$($(PKG)_BUILD_mingw-w64))
|
||||
$(PKG)_BUILD_x86_64-w64-mingw32 = $(subst @gcc-crt-config-opts@,--disable-lib32,$($(PKG)_BUILD_mingw-w64))
|
||||
$(PKG)_BUILD_i686-w64-mingw32 = $(subst @gcc-crt-config-opts@,--disable-lib64,$($(PKG)_BUILD_mingw-w64))
|
||||
|
||||
define $(PKG)_BUILD_$(BUILD)
|
||||
for f in c++ cpp g++ gcc gcov; do \
|
||||
|
|
|
@ -22,7 +22,7 @@ define $(PKG)_BUILD
|
|||
CROSS='$(TARGET)-' \
|
||||
./configure \
|
||||
--prefix='$(PREFIX)/$(TARGET)' \
|
||||
--target=libvpx-target \
|
||||
--target=@libvpx-target@ \
|
||||
--disable-examples \
|
||||
--disable-install-docs \
|
||||
--as=$(TARGET)-yasm
|
||||
|
@ -31,6 +31,6 @@ define $(PKG)_BUILD
|
|||
$(TARGET)-ranlib $(PREFIX)/$(TARGET)/lib/libvpx.a
|
||||
endef
|
||||
|
||||
$(PKG)_BUILD_i686-pc-mingw32 = $(subst libvpx-target ,x86-win32-gcc ,$($(PKG)_BUILD))
|
||||
$(PKG)_BUILD_i686-w64-mingw32 = $(subst libvpx-target ,x86-win32-gcc ,$($(PKG)_BUILD))
|
||||
$(PKG)_BUILD_x86_64-w64-mingw32 = $(subst libvpx-target ,x86_64-win64-gcc ,$($(PKG)_BUILD))
|
||||
$(PKG)_BUILD_i686-pc-mingw32 = $(subst @libvpx-target@,x86-win32-gcc,$($(PKG)_BUILD))
|
||||
$(PKG)_BUILD_i686-w64-mingw32 = $(subst @libvpx-target@,x86-win32-gcc,$($(PKG)_BUILD))
|
||||
$(PKG)_BUILD_x86_64-w64-mingw32 = $(subst @libvpx-target@,x86_64-win64-gcc,$($(PKG)_BUILD))
|
||||
|
|
|
@ -20,7 +20,7 @@ endef
|
|||
|
||||
define $(PKG)_BUILD
|
||||
cd '$(1)' && CC='$(TARGET)-gcc' ./Configure \
|
||||
mingw \
|
||||
@openssl-target@ \
|
||||
zlib \
|
||||
$(if $(BUILD_STATIC),no-,)shared \
|
||||
no-capieng \
|
||||
|
@ -32,4 +32,6 @@ define $(PKG)_BUILD
|
|||
CROSS_COMPILE='$(TARGET)-'
|
||||
endef
|
||||
|
||||
$(PKG)_BUILD_x86_64-w64-mingw32 = $(subst mingw ,mingw64 ,$($(PKG)_BUILD))
|
||||
$(PKG)_BUILD_i686-pc-mingw32 = $(subst @openssl-target@,mingw,$($(PKG)_BUILD))
|
||||
$(PKG)_BUILD_i686-w64-mingw32 = $(subst @openssl-target@,mingw,$($(PKG)_BUILD))
|
||||
$(PKG)_BUILD_x86_64-w64-mingw32 = $(subst @openssl-target@,mingw64,$($(PKG)_BUILD))
|
||||
|
|
|
@ -25,7 +25,7 @@ define $(PKG)_BUILD
|
|||
cd '$(1)' && ./configure \
|
||||
$(MXE_CONFIGURE_OPTS) \
|
||||
--with-host_os=mingw \
|
||||
--with-winapi=portaudio-winapi \
|
||||
--with-winapi=@portaudio-winapi@ \
|
||||
--with-dxdir=$(PREFIX)/$(TARGET) \
|
||||
ac_cv_path_AR=$(TARGET)-ar \
|
||||
$(if $(BUILD_SHARED),\
|
||||
|
@ -43,6 +43,6 @@ endef
|
|||
$(PKG)_WINAPI_MINGW_ORG = wmme,directx,wasapi,wdmks
|
||||
$(PKG)_WINAPI_MINGW_W64 = wmme,directx
|
||||
|
||||
$(PKG)_BUILD_i686-pc-mingw32 = $(subst portaudio-winapi,$($(PKG)_WINAPI_MINGW_ORG),$($(PKG)_BUILD))
|
||||
$(PKG)_BUILD_i686-w64-mingw32 = $(subst portaudio-winapi,$($(PKG)_WINAPI_MINGW_W64),$($(PKG)_BUILD))
|
||||
$(PKG)_BUILD_x86_64-w64-mingw32 = $(subst portaudio-winapi,$($(PKG)_WINAPI_MINGW_W64),$($(PKG)_BUILD))
|
||||
$(PKG)_BUILD_i686-pc-mingw32 = $(subst @portaudio-winapi@,$($(PKG)_WINAPI_MINGW_ORG),$($(PKG)_BUILD))
|
||||
$(PKG)_BUILD_i686-w64-mingw32 = $(subst @portaudio-winapi@,$($(PKG)_WINAPI_MINGW_W64),$($(PKG)_BUILD))
|
||||
$(PKG)_BUILD_x86_64-w64-mingw32 = $(subst @portaudio-winapi@,$($(PKG)_WINAPI_MINGW_W64),$($(PKG)_BUILD))
|
||||
|
|
Loading…
Reference in New Issue