| 1 | # $Id$ |
|---|
| 2 | |
|---|
| 3 | PortSystem 1.0 |
|---|
| 4 | |
|---|
| 5 | name wxWidgets |
|---|
| 6 | version 2.8.9 |
|---|
| 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 wxWidgets |
|---|
| 20 | master_sites sourceforge:wxwindows \ |
|---|
| 21 | http://biolpc22.york.ac.uk/pub/${version}/ |
|---|
| 22 | |
|---|
| 23 | use_bzip2 yes |
|---|
| 24 | |
|---|
| 25 | distfiles ${distname}-${version}${extract.suffix} |
|---|
| 26 | dist_subdir ${distname}/${version} |
|---|
| 27 | checksums ${distname}-${version}${extract.suffix} \ |
|---|
| 28 | md5 b0b2d0f6915a21ca6f33896ee8f50387 \ |
|---|
| 29 | ${distname}-${version}${extract.suffix} \ |
|---|
| 30 | sha1 5ad687f8c8d5a9ef6acfa1b8ba0376f86fb07406 \ |
|---|
| 31 | ${distname}-${version}${extract.suffix} \ |
|---|
| 32 | rmd160 d0f1a07cecae6645b0367decf9a6dbe463fa4505 |
|---|
| 33 | |
|---|
| 34 | depends_lib port:jpeg \ |
|---|
| 35 | port:tiff \ |
|---|
| 36 | port:libpng \ |
|---|
| 37 | port:zlib \ |
|---|
| 38 | port:libiconv \ |
|---|
| 39 | port:expat \ |
|---|
| 40 | port:libsdl \ |
|---|
| 41 | port:libsdl_mixer |
|---|
| 42 | |
|---|
| 43 | set worksrcdir ${distname}-${version}/build |
|---|
| 44 | |
|---|
| 45 | extract.only ${distname}-${version}${extract.suffix} |
|---|
| 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\]+)/ |
|---|