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 62718 2010-01-14 21:21:56Z ryandesign@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name launch4j |
---|
7 | version 3.0.2 |
---|
8 | categories java |
---|
9 | maintainers panayotis.com:panayotis |
---|
10 | description Cross-platform Java executable wrapper |
---|
11 | long_description \ |
---|
12 | Launch4j is a cross-platform tool for wrapping Java \ |
---|
13 | applications distributed as jars in lightweight Windows \ |
---|
14 | native executables. The executable can be configured to \ |
---|
15 | search for a certain JRE version or use a bundled one, \ |
---|
16 | and it's possible to set runtime options, like the \ |
---|
17 | initial/max heap size. The wrapper also provides better \ |
---|
18 | user experience through an application icon, a native \ |
---|
19 | pre-JRE splash screen, a custom process name, and a Java \ |
---|
20 | download page in case the appropriate JRE cannot be found. |
---|
21 | homepage http://launch4j.sourceforge.net/ |
---|
22 | platforms darwin |
---|
23 | |
---|
24 | master_sites sourceforge |
---|
25 | distname launch4j-${version}-macosx |
---|
26 | extract.suffix .tgz |
---|
27 | checksums \ |
---|
28 | md5 fbe35ef1200196c121682152f94d157e \ |
---|
29 | sha1 7e9faaa807547c687c141fe082098f94ca2d2bb1\ |
---|
30 | rmd160 e76310b9a447ab58957205533f2027ac4e5e43b1 |
---|
31 | |
---|
32 | patchfiles \ |
---|
33 | launcher.diff |
---|
34 | |
---|
35 | use_configure no |
---|
36 | build {} |
---|
37 | |
---|
38 | worksrcdir launch4j |
---|
39 | destroot { |
---|
40 | set sharedir ${destroot}${prefix}/share |
---|
41 | set l4jdir ${sharedir}/launch4j |
---|
42 | set l4jdoc ${sharedir}/doc/launch4j |
---|
43 | |
---|
44 | xinstall -d -m 755 ${l4jdoc} |
---|
45 | file rename ${worksrcpath}/web ${l4jdoc} |
---|
46 | file rename ${worksrcpath}/demo ${l4jdoc} |
---|
47 | file rename ${worksrcpath}/LICENSE.txt ${l4jdoc} |
---|
48 | file rename ${worksrcpath}/w32api/MinGW.LICENSE.txt ${l4jdoc} |
---|
49 | foreach doc {JGoodies.Forms JGoodies.Looks Nuvola.Icon.Theme XStream commons foxtrot} { |
---|
50 | file rename ${worksrcpath}/lib/${doc}.LICENSE.txt ${l4jdoc} |
---|
51 | } |
---|
52 | file rename ${worksrcpath}/bin/COPYING ${l4jdoc}/bin.COPYING |
---|
53 | file rename ${worksrcpath}/bin/readme.txt ${l4jdoc}/bin.readme.txt |
---|
54 | file rename ${worksrcpath}/head/LICENSE.txt ${l4jdoc}/head.LICENSE.txt |
---|
55 | |
---|
56 | file delete -force ${worksrcpath}/head_src |
---|
57 | file delete -force ${worksrcpath}/src |
---|
58 | file delete ${worksrcpath}/build.xml |
---|
59 | file delete ${worksrcpath}/launch4j.exe |
---|
60 | file delete ${worksrcpath}/launch4j.jfpr |
---|
61 | file delete ${worksrcpath}/.classpath |
---|
62 | file delete ${worksrcpath}/.project |
---|
63 | file delete -force ${worksrcpath}/.settings |
---|
64 | |
---|
65 | xinstall -d -m 755 ${sharedir} |
---|
66 | file copy ${worksrcpath} ${sharedir} |
---|
67 | ln -s ../share/launch4j/launch4j ${destroot}${prefix}/bin/launch4j |
---|
68 | } |
---|