source: trunk/dports/devel/nsis/Portfile

Last change on this file was 151442, checked in by khindenburg@…, 15 months ago

nsis: update to 3.0 #51934

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# -*- 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
2# $Id: Portfile 151442 2016-08-16 14:02:26Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name                nsis
7version             3.0
8categories          devel
9license             zlib CPL-1 MIT
10platforms           darwin
11maintainers         nomaintainer
12
13description         NSIS is a tool for creating win32 installers.
14long_description    NSIS (Nullsoft Scriptable Install System) is a tool \
15            that allows programmers to create software installers \
16            for Windows. It is released under an open source \
17            license and is completely free for any use.
18
19homepage            http://nsis.sourceforge.net/
20master_sites        sourceforge
21
22distfiles           nsis-${version}-src.tar.bz2 \
23                    nsis-${version}.zip
24
25checksums           nsis-3.0-src.tar.bz2 \
26                    rmd160  10da864e78b23789bf0cbd45d7815240fc73d52b \
27                    sha256  53a1e8ef109acd828ec909f3e6203f69d917f1a5b8bff27e93e66d0bddc5637e \
28                    nsis-3.0.zip \
29                    rmd160  f76d61becc57ec8e62b6f53c986e647fd7ac67cb \
30                    sha256  87b1d36765bb2f6e0fe531fdd8c9282b28e86b88d1f6b61842777bb791955372
31
32worksrcdir          nsis-${version}-src
33use_bzip2           yes
34
35depends_build       port:scons port:i386-mingw32-gcc
36
37extract.only        nsis-${version}-src.tar.bz2
38
39post-extract {
40    system "cd ${workpath} && unzip ${distpath}/nsis-${version}.zip"
41}
42
43use_configure       no
44
45# nsis can only ever be built 32-bit, but relies on libiconv. Since the
46# dependency is limited to only iconv, we will rely on the base system
47# 32-bit libiconv installation. Should MacPorts switch to 32-bit/64-bit
48# universal builds by default, this decision should be revisited.
49set scons.args      "PREFIX=\"${prefix}\" PREFIX_DEST=\"${destroot}\" SKIPSTUBS=all SKIPPLUGINS=all SKIPUTILS=all SKIPMISC=all"
50# APPEND_CPPPATH=\"${prefix}/include\" APPEND_LIBPATH=\"${prefix}/lib\"
51
52build {
53    system "cd ${worksrcpath} && scons ${scons.args}"
54}
55
56destroot {
57    system "cd ${worksrcpath} && scons ${scons.args} install"
58    foreach dir {Bin Docs Include Plugins Contrib Examples Menu Stubs} {
59        file delete -force ${destpath}${prefix}/share/nsis/${dir}
60        file copy -force ${workpath}/nsis-${version}/${dir} ${destpath}${prefix}/share/nsis
61    }
62    system "chmod -R go-w '${destpath}${prefix}/share/nsis'"
63}
Note: See TracBrowser for help on using the repository browser.