# -*- 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-${version}-src.tar.bz2 \
rmd160 209f4234ba4199cbcce6843a6c8c5d06030e84d3 \
sha256 5f6d135362c70f6305317b3af6d8398184ac1a22d3f23b9c4164543c13fb8d60 \
rmd160 61fef3ba08ab0ee726b194148899a67da0502220 \
sha256 deef3e3d90ab1a9e0ef294fff85eead25edbcb429344ad42fc9bc42b5c3b1fb5
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}" \