Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

root/trunk/dports/graphics/wxWidgets/Portfile

Revision 40194, 3.1 KB (checked in by jwa@…, 2 months ago)

version bump to 2.8.9

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1# $Id$
2
3PortSystem 1.0
4
5name                    wxWidgets
6version                 2.8.9
7categories              graphics devel
8platforms               darwin
9maintainers             mww jwa
10description             mature cross-platform C++ GUI framework
11long_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
18homepage                http://www.wxwidgets.org/
19distname                wxWidgets
20master_sites            sourceforge:wxwindows \
21                            http://biolpc22.york.ac.uk/pub/${version}/
22
23use_bzip2               yes
24
25distfiles               ${distname}-${version}${extract.suffix}
26dist_subdir             ${distname}/${version}
27checksums               ${distname}-${version}${extract.suffix} \
28                            md5 b0b2d0f6915a21ca6f33896ee8f50387 \
29                            ${distname}-${version}${extract.suffix} \
30                            sha1 5ad687f8c8d5a9ef6acfa1b8ba0376f86fb07406 \
31                            ${distname}-${version}${extract.suffix} \
32                            rmd160 d0f1a07cecae6645b0367decf9a6dbe463fa4505
33
34depends_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
43set worksrcdir  ${distname}-${version}/build
44
45extract.only    ${distname}-${version}${extract.suffix}
46
47#patchfiles     patch-chkconf.diff patch-TECConvertText.diff
48patchfiles      patch-chkconf.diff
49
50#configure.cmd  ../${distname}-${version}/configure
51configure.cmd           ../configure
52configure.ldflags       -L${build.dir}/lib -L${prefix}/lib
53configure.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
67set contrib             "gizmos stc ogl"
68set installtype         release
69
70build.target
71
72post-build {
73    foreach c { ${contrib} } {
74        system "cd ${build.dir} && make -C contrib/src/${c}"
75    }
76}
77
78post-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
95variant nonmonolithic description {build libraries separately} {
96    configure.args-delete       --enable-monolithic
97}
98
99variant debug description {add debug info to libraries} {
100    configure.args-append       --enable-debug
101    set installtype debug
102}
103
104livecheck.check         regex
105livecheck.url           ${homepage}/downloads/
106livecheck.regex         ftp.wxwidgets.org/pub/(2.8.\[0-9\]+)/
Note: See TracBrowser for help on using the browser.