1 | # $Id: JJS 6/22/09 $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name wxWidgets |
---|
6 | version 2.8.9.2 |
---|
7 | categories graphics devel |
---|
8 | platforms darwin |
---|
9 | maintainers mww jwa |
---|
10 | description mature cross-platform C++ GUI framework |
---|
11 | long_description wxWidgets is a mature open-source cross-platform C++ \ |
---|
12 | GUI framework for Mac OS, Unix, Linux, Windows. It can \ |
---|
13 | make use of a variety of native widget sets as well as \ |
---|
14 | its own widget set: Mac OS, GTK+, Motif, WIN32. \ |
---|
15 | wxWidgets will even run on embedded systems using \ |
---|
16 | Linux and X11. |
---|
17 | |
---|
18 | homepage http://www.wxwidgets.org/ |
---|
19 | #distname wxPython-src |
---|
20 | #master_sites sourceforge:wxwindows \ |
---|
21 | # http://biolpc22.york.ac.uk/pub/${version}/ |
---|
22 | master_sites sourceforge:wxpython |
---|
23 | |
---|
24 | use_bzip2 yes |
---|
25 | |
---|
26 | distname wxPython-src |
---|
27 | distfiles ${distname}-${version}${extract.suffix} |
---|
28 | #checksums md5 0461c2085ac1ad7e648aa84c4ba51dd1 \ |
---|
29 | # sha1 5784b10d7cf662c57049f03c5d66151bde950c5e \ |
---|
30 | # rmd160 d7a25ec0a78c43d378999abac2cefeacb0da6e3a |
---|
31 | checksums md5 e3d89746af98b9279e4ff39a57f6dc63 |
---|
32 | |
---|
33 | depends_lib port:jpeg \ |
---|
34 | port:tiff \ |
---|
35 | port:libpng \ |
---|
36 | port:zlib \ |
---|
37 | port:libiconv \ |
---|
38 | port:expat \ |
---|
39 | port:libsdl \ |
---|
40 | port:libsdl_mixer |
---|
41 | |
---|
42 | set worksrcdir ${distname}-${version}/build |
---|
43 | extract.only ${distname}-${version}${extract.suffix} |
---|
44 | |
---|
45 | use_parallel_build no |
---|
46 | |
---|
47 | #patchfiles patch-chkconf.diff patch-TECConvertText.diff |
---|
48 | patchfiles patch-chkconf.diff |
---|
49 | |
---|
50 | #configure.cmd ../${distname}-${version}/configure |
---|
51 | configure.cmd ../configure |
---|
52 | configure.ldflags -L${build.dir}/lib -L${prefix}/lib |
---|
53 | configure.args --mandir=${prefix}/share/man \ |
---|
54 | --with-libiconv-prefix=${prefix} \ |
---|
55 | --with-libjpeg \ |
---|
56 | --with-libtiff \ |
---|
57 | --with-libpng \ |
---|
58 | --with-zlib \ |
---|
59 | --with-sdl \ |
---|
60 | --with-opengl \ |
---|
61 | --with-mac \ |
---|
62 | --disable-sdltest \ |
---|
63 | --enable-unicode \ |
---|
64 | --enable-display \ |
---|
65 | --enable-monolithic |
---|
66 | |
---|
67 | set contrib "gizmos stc ogl" |
---|
68 | set installtype release |
---|
69 | |
---|
70 | build.target |
---|
71 | |
---|
72 | post-build { |
---|
73 | foreach c { ${contrib} } { |
---|
74 | system "cd ${build.dir} && make -C contrib/src/${c}" |
---|
75 | } |
---|
76 | } |
---|
77 | |
---|
78 | post-destroot { |
---|
79 | foreach c { ${contrib} } { |
---|
80 | system "cd ${build.dir} && make -C contrib/src/${c} install ${destroot.destdir}" |
---|
81 | } |
---|
82 | |
---|
83 | xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name} |
---|
84 | # xinstall -m 644 -W ${workpath}/${distname}-${version} \ |
---|
85 | # install-mac.txt install-mgl.txt install-motif.txt \ |
---|
86 | # INSTALL-OS2.txt install-x11.txt readme-cocoa.txt \ |
---|
87 | # readme-gtk.txt readme-mac.txt \ |
---|
88 | # readme-mgl.txt readme-motif.txt readme-x11.txt \ |
---|
89 | # ${destroot}${prefix}/share/doc/${name} |
---|
90 | set confscript ${prefix}/lib/wx/config/mac-unicode-${installtype}-2.8 |
---|
91 | reinplace "s|-L${build.dir}/lib||" ${destroot}${confscript} |
---|
92 | ln -sf ${confscript} ${destroot}${prefix}/bin/wx-config |
---|
93 | } |
---|
94 | |
---|
95 | variant nonmonolithic description {build libraries separately} { |
---|
96 | configure.args-delete --enable-monolithic |
---|
97 | } |
---|
98 | |
---|
99 | variant debug description {add debug info to libraries} { |
---|
100 | configure.args-append --enable-debug |
---|
101 | set installtype debug |
---|
102 | } |
---|
103 | |
---|
104 | livecheck.check regex |
---|
105 | livecheck.url ${homepage}/downloads/ |
---|
106 | livecheck.regex ftp.wxwidgets.org/pub/(2.8.\[0-9\]+)/ |
---|
107 | |
---|