# -*- 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
set major [lindex [split ${version} .] 0]
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:project/nsis/NSIS%20${major}/${version}
distname ${name}-${version}-src
distfiles-append nsis-${version}.zip
extract.only-delete nsis-${version}.zip
checksums nsis-3.04-src.tar.bz2 \
rmd160 9647acea3069fb8abb89853f3b394f4be7307728 \
sha256 609536046c50f35cfd909dd7df2ab38f2e835d0da3c1048aa0d48c59c5a4f4f5 \
rmd160 795f9233fbbbd60876734a68397d172b1f47dec5 \
sha256 22f3349fea453a45551745635c13e5efb7849ecbdce709daa2b2fa8e2ac55fc4 \
depends_lib port:libiconv \
# Installer checks for cross-compiler during build, but doesn't seem to use it?
system -W ${workpath} "unzip ${distpath}/nsis-${version}.zip"
build.args APPEND_CCFLAGS="[get_canonical_archflags cc] -stdlib=${configure.cxx_stdlib}" \
APPEND_CPPPATH="${prefix}/include" \
APPEND_LIBPATH="${prefix}/lib" \
APPEND_LINKFLAGS="[get_canonical_archflags ld] -stdlib=${configure.cxx_stdlib}" \