# -*- 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 b97f524fcda4dc333d73593c41130db5f8dddde1 \
sha256 abae7f4488bc6de7a4dd760d5f0e7cd3aad7747d4d7cd85786697c8991695eaa \
rmd160 806e501feff324f94e6d16e442cbaf6de4404837 \
sha256 b53a79078f2c6abf21f11d9fe68807f35b228393eb17a0cd3873614190116ba7
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}" \