Skip to content

Instantly share code, notes, and snippets.

@artynet
Last active June 6, 2017 13:13
Show Gist options
  • Save artynet/188bb34cfc94acdb554d283a3502770a to your computer and use it in GitHub Desktop.
Save artynet/188bb34cfc94acdb554d283a3502770a to your computer and use it in GitHub Desktop.
Build NSIS on OSX
BUILD nsis v2.46 on OSX >= 10.9
scons PREFIX=/Users/arturo/Programmi/nsis-2.46 ZLIB_W32=/Users/arturo/Programmi/Zlib-1.2.7-win32-x86 \
STRIP=no install-stubs install-plugins install-data install-utils install-examples install-doc install-conf
scons APPEND_CCFLAGS=--stdlib=libstdc++ APPEND_LINKFLAGS=--stdlib=libstdc++ \
PREFIX=/Users/arturo/Programmi/nsis-2.46 ZLIB_W32=/Users/arturo/Programmi/Zlib-1.2.7-win32-x86 \
STRIP=no install-compiler
scons PREFIX=/Users/arturo/Programmi/nsis-2.46 ZLIB_W32=/Users/arturo/Programmi/Zlib-1.2.7-win32-x86 \
STRIP=no VERSION=2.46 install
scons PREFIX=/Users/arturo/Programmi/nsis-30 ZLIB_W32=/Users/arturo/Programmi/Zlib-1.2.7-win32-x86 \
STRIP=no VERSION=3.0 install
scons PREFIX=/Users/arturo/Programmi/nsis-301 ZLIB_W32=/Users/arturo/Programmi/Zlib-1.2.7-win32-x86 \
STRIP=no VERSION=3.01 install
scons PREFIX=/Users/arturo/Programmi/nsis-301 ZLIB_W32=/Users/arturo/Programmi/Zlib-1.2.11-win32-x86 STRIP=no VERSION=3.01 install
-------------------------------------------------------------------------------------------------------------------------------------
BUILD ZLIB 1.2.11
#!/bin/bash
PREFIXDIR=$HOME/Programmi/Zlib-1.2.11-win32-x86
make -f win32/Makefile.gcc BINARY_PATH=$PREFIXDIR/bin INCLUDE_PATH=$PREFIXDIR/include LIBRARY_PATH=$PREFIXDIR/lib SHARED_MODE=1 PREFIX=i686-w64-mingw32- install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment