1 | # $Id: Portfile 50980 2009-05-14 19:41:55Z and.damore@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name nsis |
---|
5 | version 2.45 |
---|
6 | categories devel win32 |
---|
7 | platforms darwin |
---|
8 | maintainers landonf openmaintainer |
---|
9 | homepage http://nsis.sourceforge.net/ |
---|
10 | description NSIS is a tool for creating win32 installers. |
---|
11 | long_description NSIS (Nullsoft Scriptable Install System) is a tool \ |
---|
12 | that allows programmers to create software installers \ |
---|
13 | for Windows. It is released under an open source \ |
---|
14 | license and is completely free for any use. |
---|
15 | |
---|
16 | master_sites sourceforge |
---|
17 | |
---|
18 | distfiles nsis-${version}-src.tar.bz2 \ |
---|
19 | nsis-${version}.zip |
---|
20 | checksums nsis-${version}-src.tar.bz2 \ |
---|
21 | md5 91a167a19c75f8dd52654e4cdc2ae0d4 \ |
---|
22 | sha1 ce02adf68dbedc798615ffb212d27a9b03d5defb \ |
---|
23 | rmd160 c5b1abdac37892b3f49455fa42d44c030dc451b7 \ |
---|
24 | nsis-${version}.zip \ |
---|
25 | md5 8fb39ec61b003653968c0f1c6b6dc73f \ |
---|
26 | sha1 d956939a4aa0cc78c72a93f236b121c40e0c4bc9 \ |
---|
27 | rmd160 327d0ed9ebdfab44ecaf71c7b4a83c8b874f7519 |
---|
28 | |
---|
29 | worksrcdir nsis-${version}-src |
---|
30 | use_bzip2 yes |
---|
31 | |
---|
32 | depends_build port:scons port:i386-mingw32-gcc |
---|
33 | |
---|
34 | extract.only nsis-${version}-src.tar.bz2 |
---|
35 | |
---|
36 | post-extract { |
---|
37 | system "cd ${workpath} && unzip ${distpath}/nsis-${version}.zip" |
---|
38 | } |
---|
39 | |
---|
40 | use_configure no |
---|
41 | |
---|
42 | set scons.args "PREFIX=\"${prefix}\" PREFIX_DEST=\"${destroot}\" SKIPSTUBS=all SKIPPLUGINS=all SKIPUTILS=all SKIPMISC=all APPEND_CPPPATH=\"${prefix}/include\" " |
---|
43 | |
---|
44 | build { |
---|
45 | system "cd ${worksrcpath} && scons ${scons.args}" |
---|
46 | } |
---|
47 | |
---|
48 | destroot { |
---|
49 | system "cd ${worksrcpath} && scons ${scons.args} install" |
---|
50 | foreach dir {Bin Docs Include Plugins Contrib Examples Menu Stubs} { |
---|
51 | file delete -force ${destpath}${prefix}/share/nsis/${dir} |
---|
52 | file copy -force ${workpath}/nsis-${version}/${dir} ${destpath}${prefix}/share/nsis |
---|
53 | } |
---|
54 | system "chmod -R go-w '${destpath}${prefix}/share/nsis'" |
---|
55 | } |
---|