1 | # $Id: Portfile,v 1.17 2005/10/19 08:10:11 blb Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name wxWidgets |
---|
6 | version 2.6.2 |
---|
7 | categories graphics devel |
---|
8 | platforms darwin |
---|
9 | maintainers mww@opendarwin.org blb@opendarwin.org |
---|
10 | description mature cross-platform C++ GUI framework |
---|
11 | long_description wxWidgets is a mature open-source cross-platform C++ \ |
---|
12 | GUI framework for MacOS, Unix, Linux, Windows. It can \ |
---|
13 | make use of a variety of native widget sets as well as \ |
---|
14 | its own widget set: MacOS, GTK+, Motif, WIN32. \ |
---|
15 | wxWidgets will even run on embedded systems using \ |
---|
16 | Linux and X11. |
---|
17 | |
---|
18 | homepage http://www.wxwidgets.org/ |
---|
19 | master_sites ftp://biolpc22.york.ac.uk/pub/${version}/ \ |
---|
20 | sourceforge:wxwindows |
---|
21 | dist_subdir ${name}/${version} |
---|
22 | checksums md5 ee0aa211febd992c8540e6c9df749b51 |
---|
23 | use_bzip2 yes |
---|
24 | |
---|
25 | depends_lib port:jpeg \ |
---|
26 | port:tiff \ |
---|
27 | port:libpng \ |
---|
28 | port:zlib \ |
---|
29 | port:libiconv \ |
---|
30 | port:expat \ |
---|
31 | port:libsdl \ |
---|
32 | port:libsdl_mixer |
---|
33 | |
---|
34 | set worksrcdir build |
---|
35 | |
---|
36 | post-extract { |
---|
37 | file mkdir ${worksrcpath} |
---|
38 | } |
---|
39 | |
---|
40 | configure.cmd ../${name}-${version}/configure |
---|
41 | configure.env CPPFLAGS="-I${prefix}/include" \ |
---|
42 | CFLAGS="-I${prefix}/include" \ |
---|
43 | LDFLAGS="-L${prefix}/lib" |
---|
44 | configure.args --mandir=${prefix}/share/man \ |
---|
45 | --with-libiconv-prefix=${prefix} \ |
---|
46 | --with-libjpeg \ |
---|
47 | --with-libtiff \ |
---|
48 | --with-libpng \ |
---|
49 | --with-zlib \ |
---|
50 | --with-sdl \ |
---|
51 | --with-opengl \ |
---|
52 | --with-mac \ |
---|
53 | --disable-sdltest \ |
---|
54 | --enable-unicode \ |
---|
55 | --enable-display \ |
---|
56 | --enable-monolithic |
---|
57 | |
---|
58 | platform darwin 8 { |
---|
59 | configure.env-append CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0 |
---|
60 | } |
---|
61 | |
---|
62 | set contrib "animate gizmos stc" |
---|
63 | |
---|
64 | build.target |
---|
65 | post-build { |
---|
66 | foreach target { ${contrib} } { |
---|
67 | system "cd ${build.dir} && make -C contrib/src/${target}" |
---|
68 | } |
---|
69 | } |
---|
70 | |
---|
71 | post-destroot { |
---|
72 | foreach target { ${contrib} } { |
---|
73 | system "cd ${destroot.dir} && make -C contrib/src/${target} install ${destroot.destdir}" |
---|
74 | } |
---|
75 | xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name} |
---|
76 | xinstall -m 644 -W ${workpath}/${name}-${version} BuildCVS.txt CHANGES.txt \ |
---|
77 | COPYING.LIB INSTALL-MAC.txt INSTALL-MGL.txt INSTALL-MOTIF.txt \ |
---|
78 | INSTALL-OS2.txt INSTALL-X11.txt LICENCE.txt README-MAC.txt \ |
---|
79 | README-MGL.txt README-MOTIF.txt README-X11.txt README.txt \ |
---|
80 | ${destroot}${prefix}/share/doc/${name} |
---|
81 | system "cd ${destroot}${prefix}/bin && \ |
---|
82 | ln -sf ${prefix}/lib/wx/config/mac-unicode-release-2.6 wx-config" |
---|
83 | } |
---|