mirror of https://git.wownero.com/dsc/mxe.git
nsis: use scons-local with python2 and use SOURCE_DIR
This commit is contained in:
parent
822c7e4099
commit
cd851f6d77
10
src/nsis.mk
10
src/nsis.mk
|
@ -9,7 +9,7 @@ $(PKG)_CHECKSUM := 604c011593be484e65b2141c50a018f1b28ab28c994268e4ecd377773f3ff
|
|||
$(PKG)_SUBDIR := nsis-$($(PKG)_VERSION)-src
|
||||
$(PKG)_FILE := nsis-$($(PKG)_VERSION)-src.tar.bz2
|
||||
$(PKG)_URL := https://$(SOURCEFORGE_MIRROR)/project/nsis/NSIS 3/$($(PKG)_VERSION)/$($(PKG)_FILE)
|
||||
$(PKG)_DEPS := cc
|
||||
$(PKG)_DEPS := cc scons-local
|
||||
|
||||
define $(PKG)_UPDATE
|
||||
$(WGET) -q -O- 'https://nsis.sourceforge.io/Download' | \
|
||||
|
@ -18,10 +18,14 @@ define $(PKG)_UPDATE
|
|||
endef
|
||||
|
||||
define $(PKG)_BUILD
|
||||
# scons supports -j option but nsis parallel build fails
|
||||
# nsis uses it's own BUILD_PREFIX which isn't user configurable
|
||||
mkdir -p '$(BUILD_DIR).scons'
|
||||
$(call PREPARE_PKG_SOURCE,scons-local,'$(BUILD_DIR).scons')
|
||||
$(if $(findstring x86_64-w64-mingw32,$(TARGET)),\
|
||||
$(SED) -i 's/pei-i386/pei-x86-64/' '$(1)/SCons/Config/linker_script' && \
|
||||
$(SED) -i 's/m_target_type=TARGET_X86ANSI/m_target_type=TARGET_AMD64/' '$(1)/Source/build.cpp')
|
||||
cd '$(1)' && scons \
|
||||
$(SED) -i 's/m_target_type=TARGET_X86ANSI/m_target_type=TARGET_AMD64/' '$(SOURCE_DIR)/Source/build.cpp')
|
||||
cd '$(SOURCE_DIR)' && $(PYTHON2) '$(BUILD_DIR).scons/scons.py' \
|
||||
XGCC_W32_PREFIX='$(TARGET)-' \
|
||||
PREFIX='$(PREFIX)/$(TARGET)' \
|
||||
`[ -d /usr/local/include ] && echo APPEND_CPPPATH=/usr/local/include` \
|
||||
|
|
Loading…
Reference in New Issue