# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 name nsis version 3.0 categories devel license zlib CPL-1 MIT platforms darwin maintainers nomaintainer description NSIS is a tool for creating win32 installers. long_description NSIS (Nullsoft Scriptable Install System) is a tool \ that allows programmers to create software installers \ for Windows. It is released under an open source \ license and is completely free for any use. homepage http://nsis.sourceforge.net/ master_sites sourceforge distfiles nsis-${version}-src.tar.bz2 \ nsis-${version}.zip checksums nsis-3.0-src.tar.bz2 \ rmd160 10da864e78b23789bf0cbd45d7815240fc73d52b \ sha256 53a1e8ef109acd828ec909f3e6203f69d917f1a5b8bff27e93e66d0bddc5637e \ nsis-3.0.zip \ rmd160 f76d61becc57ec8e62b6f53c986e647fd7ac67cb \ sha256 87b1d36765bb2f6e0fe531fdd8c9282b28e86b88d1f6b61842777bb791955372 worksrcdir nsis-${version}-src use_bzip2 yes depends_build port:scons port:i386-mingw32-gcc extract.only nsis-${version}-src.tar.bz2 post-extract { system "cd ${workpath} && unzip ${distpath}/nsis-${version}.zip" } use_configure no # nsis can only ever be built 32-bit, but relies on libiconv. Since the # dependency is limited to only iconv, we will rely on the base system # 32-bit libiconv installation. Should MacPorts switch to 32-bit/64-bit # universal builds by default, this decision should be revisited. set scons.args "PREFIX=\"${prefix}\" PREFIX_DEST=\"${destroot}\" SKIPSTUBS=all SKIPPLUGINS=all SKIPUTILS=all SKIPMISC=all" # APPEND_CPPPATH=\"${prefix}/include\" APPEND_LIBPATH=\"${prefix}/lib\" build { system "cd ${worksrcpath} && scons ${scons.args}" } destroot { system "cd ${worksrcpath} && scons ${scons.args} install" foreach dir {Bin Docs Include Plugins Contrib Examples Menu Stubs} { file delete -force ${destpath}${prefix}/share/nsis/${dir} file copy -force ${workpath}/nsis-${version}/${dir} ${destpath}${prefix}/share/nsis } system "chmod -R go-w '${destpath}${prefix}/share/nsis'" }