Ticket #41275: Portfile-nsis.diff

File Portfile-nsis.diff, 1.3 KB (added by steve+macports@…, 10 years ago)
  • Portfile

    old new  
    3131worksrcdir              nsis-${version}-src
    3232use_bzip2               yes
    3333
    34 depends_build           port:scons port:i386-mingw32-gcc
     34depends_build           port:scons
    3535
    3636extract.only            nsis-${version}-src.tar.bz2
    3737
     
    3939        system "cd ${workpath} && unzip ${distpath}/nsis-${version}.zip"
    4040}
    4141
     42patchfiles              patch-SConstruct.diff
     43
    4244use_configure           no
    4345
     46# nsis doesn't compile against libc++, which is the default in clang on 10.9
     47# https://sourceforge.net/p/nsis/bugs/1085/
     48compiler.whitelist      llvm-gcc-4.2 macports-llvm-gcc-4.2 gcc-4.2 apple-gcc-4.2
     49
    4450# nsis can only ever be built 32-bit, but relies on libiconv. Since the dependency is limited to only iconv,
    4551# we will rely on the base system 32-bit libiconv installation. Should MacPorts switch to 32-bit/64-bit universal
    4652# builds by default, this decision should be revisited.
    47 set scons.args          "PREFIX=\"${prefix}\" PREFIX_DEST=\"${destroot}\" SKIPSTUBS=all SKIPPLUGINS=all SKIPUTILS=all SKIPMISC=all"
     53set scons.args          "PREFIX=\"${prefix}\" PREFIX_DEST=\"${destroot}\" CC=\"${configure.cc}\" CXX=\"${configure.cxx}\" SKIPSTUBS=all SKIPPLUGINS=all SKIPUTILS=all SKIPMISC=all"
    4854# APPEND_CPPPATH=\"${prefix}/include\" APPEND_LIBPATH=\"${prefix}/lib\"
    4955
    5056build {