1 | # $Id: Portfile 73275 2010-11-08 21:04:38Z mww@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup archcheck 1.0 |
---|
5 | |
---|
6 | name wxWidgets-devel |
---|
7 | conflicts wxgtk wxWidgets |
---|
8 | epoch 2 |
---|
9 | version 2.9.1 |
---|
10 | revision 1 |
---|
11 | categories graphics devel |
---|
12 | platforms darwin |
---|
13 | maintainers jwa |
---|
14 | description mature cross-platform C++ GUI framework |
---|
15 | long_description wxWidgets is a mature open-source cross-platform C++ \ |
---|
16 | GUI framework for Mac OS, Unix, Linux, Windows. It can \ |
---|
17 | make use of a variety of native widget sets as well as \ |
---|
18 | its own widget set: Mac OS, GTK+, Motif, WIN32. \ |
---|
19 | wxWidgets will even run on embedded systems using \ |
---|
20 | Linux and X11. |
---|
21 | |
---|
22 | homepage http://www.wxwidgets.org/ |
---|
23 | distname wxWidgets |
---|
24 | master_sites sourceforge:wxwindows \ |
---|
25 | http://biolpc22.york.ac.uk/pub/${version}/ |
---|
26 | |
---|
27 | use_bzip2 yes |
---|
28 | |
---|
29 | distfiles ${distname}-${version}${extract.suffix} |
---|
30 | dist_subdir ${distname}/${version} |
---|
31 | checksums md5 81c20d7b2ba31becb18e467dbe09be8f \ |
---|
32 | sha1 3ffe0614acce46448f5c14942176fb2daa6efd00 \ |
---|
33 | rmd160 106f5b0238e31e12bbede7f1c2cf0e0134076e29 |
---|
34 | |
---|
35 | depends_lib port:jpeg \ |
---|
36 | port:tiff \ |
---|
37 | port:libpng \ |
---|
38 | port:zlib \ |
---|
39 | port:libiconv \ |
---|
40 | port:expat |
---|
41 | |
---|
42 | archcheck.files lib/libjpeg.dylib \ |
---|
43 | lib/libtiff.dylib \ |
---|
44 | lib/libpng.dylib \ |
---|
45 | lib/libz.dylib \ |
---|
46 | lib/libiconv.dylib \ |
---|
47 | lib/libexpat.dylib |
---|
48 | |
---|
49 | set worksrcdir ${distname}-${version}/build |
---|
50 | |
---|
51 | extract.only ${distname}-${version}${extract.suffix} |
---|
52 | |
---|
53 | patch.dir ${worksrcpath}/.. |
---|
54 | patchfiles patch-configure-change_install_names.diff |
---|
55 | configure.cmd ../configure |
---|
56 | configure.ldflags -L${build.dir}/lib -L${prefix}/lib |
---|
57 | configure.args --mandir=${prefix}/share/man \ |
---|
58 | --with-libiconv-prefix=${prefix} \ |
---|
59 | --with-libjpeg \ |
---|
60 | --with-libtiff \ |
---|
61 | --with-libpng \ |
---|
62 | --with-zlib \ |
---|
63 | --with-opengl \ |
---|
64 | --with-cocoa \ |
---|
65 | --enable-unicode \ |
---|
66 | --enable-display \ |
---|
67 | --enable-monolithic |
---|
68 | |
---|
69 | build.target |
---|
70 | |
---|
71 | universal_variant no |
---|
72 | use_parallel_build yes |
---|
73 | |
---|
74 | supported_archs x86_64 ppc64 i386 ppc |
---|
75 | configure.ccache = no |
---|
76 | configure.cppflags-append -arch ${configure.build_arch} |
---|
77 | |
---|
78 | post-destroot { |
---|
79 | set confscript ${prefix}/lib/wx/config/osx_cocoa-unicode-2.9 |
---|
80 | ln -sf ${confscript} ${destroot}${prefix}/bin/wx-config |
---|
81 | } |
---|
82 | |
---|
83 | variant nonmonolithic description {build libraries separately} { |
---|
84 | configure.args-delete --enable-monolithic |
---|
85 | } |
---|
86 | |
---|
87 | variant debug description {add debug info to libraries} { |
---|
88 | configure.args-append --enable-debug |
---|
89 | } |
---|
90 | |
---|
91 | livecheck.type regex |
---|
92 | livecheck.url ${homepage}/downloads/ |
---|
93 | livecheck.regex Current Stable Release.*(2\\.\[0-9\]\\.\[0-9\]+) |
---|