1 | # $Id: Portfile 58210 2009-09-24 06:56:08Z ryandesign@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name wxWidgets |
---|
6 | epoch 1 |
---|
7 | version 2.9.0 |
---|
8 | categories graphics devel |
---|
9 | platforms darwin |
---|
10 | maintainers mww jwa |
---|
11 | description mature cross-platform C++ GUI framework |
---|
12 | long_description wxWidgets is a mature open-source cross-platform C++ \ |
---|
13 | GUI framework for Mac OS, Unix, Linux, Windows. It can \ |
---|
14 | make use of a variety of native widget sets as well as \ |
---|
15 | its own widget set: Mac OS, GTK+, Motif, WIN32. \ |
---|
16 | wxWidgets will even run on embedded systems using \ |
---|
17 | Linux and X11. |
---|
18 | |
---|
19 | homepage http://www.wxwidgets.org/ |
---|
20 | distname wxWidgets |
---|
21 | master_sites sourceforge:wxwindows \ |
---|
22 | http://biolpc22.york.ac.uk/pub/${version}/ |
---|
23 | |
---|
24 | use_bzip2 yes |
---|
25 | |
---|
26 | distfiles ${distname}-${version}${extract.suffix} |
---|
27 | dist_subdir ${distname}/${version} |
---|
28 | checksums md5 09058928eeb72853142c062bdec056ce \ |
---|
29 | sha1 0e14fa85637d07a93a22d4d6a01871cc0e9e31b7 \ |
---|
30 | rmd160 72d91bfa5fdd2ffafcce50d4440d8fba37ab8872 |
---|
31 | |
---|
32 | |
---|
33 | depends_lib port:jpeg \ |
---|
34 | port:tiff \ |
---|
35 | port:libpng \ |
---|
36 | port:zlib \ |
---|
37 | port:libiconv \ |
---|
38 | port:expat \ |
---|
39 | path:lib/pkgconfig/sdl.pc:libsdl \ |
---|
40 | port:libsdl_mixer |
---|
41 | |
---|
42 | set worksrcdir ${distname}-${version}/build |
---|
43 | |
---|
44 | extract.only ${distname}-${version}${extract.suffix} |
---|
45 | |
---|
46 | #patchfiles patch-chkconf.diff patch-TECConvertText.diff |
---|
47 | #patchfiles patch-chkconf.diff |
---|
48 | patchfiles patch-textctrl.diff |
---|
49 | |
---|
50 | configure.cmd ../configure |
---|
51 | configure.ldflags -L${build.dir}/lib -L${prefix}/lib |
---|
52 | configure.args --mandir=${prefix}/share/man \ |
---|
53 | --with-libiconv-prefix=${prefix} \ |
---|
54 | --with-libjpeg \ |
---|
55 | --with-libtiff \ |
---|
56 | --with-libpng \ |
---|
57 | --with-zlib \ |
---|
58 | --with-sdl \ |
---|
59 | --with-opengl \ |
---|
60 | --with-osx_cocoa \ |
---|
61 | --with-macosx-version-min=10.5 \ |
---|
62 | --disable-sdltest \ |
---|
63 | --enable-unicode \ |
---|
64 | --enable-display \ |
---|
65 | --enable-monolithic |
---|
66 | |
---|
67 | set installtype release |
---|
68 | |
---|
69 | build.target |
---|
70 | |
---|
71 | use_parallel_build no |
---|
72 | |
---|
73 | post-destroot { |
---|
74 | xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name} |
---|
75 | # set confscript ${prefix}/lib/${sub}/wx/config/osx_cocoa-unicode-${installtype}-2.9 |
---|
76 | set confscript ${prefix}/lib/wx/config/osx_cocoa-unicode-${installtype}-2.9 |
---|
77 | reinplace "s|-L${build.dir}/lib||" ${destroot}${confscript} |
---|
78 | ln -sf ${confscript} ${destroot}${prefix}/bin/wx-config |
---|
79 | } |
---|
80 | |
---|
81 | variant nonmonolithic description {build libraries separately} { |
---|
82 | configure.args-delete --enable-monolithic |
---|
83 | } |
---|
84 | |
---|
85 | variant debug description {add debug info to libraries} { |
---|
86 | configure.args-append --enable-debug |
---|
87 | set installtype debug |
---|
88 | } |
---|
89 | |
---|
90 | livecheck.type regex |
---|
91 | livecheck.url ${homepage}/downloads/ |
---|
92 | livecheck.regex ftp.wxwidgets.org/pub/(2.9.\[0-9\]+)/ |
---|
93 | |
---|