Ticket #26410: wxWidgets-devel-2.9.1-Portfile

File wxWidgets-devel-2.9.1-Portfile, 2.7 KB (added by stevecheckoway (Stephen Checkoway), 13 years ago)

Different Portfile

Line 
1# $Id: Portfile 73275 2010-11-08 21:04:38Z mww@macports.org $
2
3PortSystem 1.0
4PortGroup               archcheck 1.0
5
6name                    wxWidgets-devel
7conflicts               wxgtk wxWidgets
8epoch                   2
9version                 2.9.1
10revision                1
11categories              graphics devel
12platforms               darwin
13maintainers             jwa
14description             mature cross-platform C++ GUI framework
15long_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
22homepage                http://www.wxwidgets.org/
23distname                wxWidgets
24master_sites            sourceforge:wxwindows \
25                            http://biolpc22.york.ac.uk/pub/${version}/
26
27use_bzip2               yes
28
29distfiles               ${distname}-${version}${extract.suffix}
30dist_subdir             ${distname}/${version}
31checksums           md5     81c20d7b2ba31becb18e467dbe09be8f \
32                    sha1    3ffe0614acce46448f5c14942176fb2daa6efd00 \
33                    rmd160  106f5b0238e31e12bbede7f1c2cf0e0134076e29
34
35depends_lib             port:jpeg \
36                            port:tiff \
37                            port:libpng \
38                            port:zlib \
39                            port:libiconv \
40                            port:expat
41
42archcheck.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
49set worksrcdir  ${distname}-${version}/build
50
51extract.only    ${distname}-${version}${extract.suffix}
52
53patch.dir       ${worksrcpath}/..
54patchfiles      patch-configure-change_install_names.diff
55configure.cmd           ../configure
56configure.ldflags       -L${build.dir}/lib -L${prefix}/lib
57configure.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
69build.target
70
71universal_variant       no
72use_parallel_build      yes
73
74supported_archs x86_64 ppc64 i386 ppc
75configure.ccache = no
76configure.cppflags-append -arch ${configure.build_arch}
77
78post-destroot {
79    set confscript ${prefix}/lib/wx/config/osx_cocoa-unicode-2.9
80    ln -sf ${confscript} ${destroot}${prefix}/bin/wx-config
81}
82
83variant nonmonolithic description {build libraries separately} {
84    configure.args-delete       --enable-monolithic
85}
86
87variant debug description {add debug info to libraries} {
88    configure.args-append       --enable-debug
89}
90
91livecheck.type          regex
92livecheck.url           ${homepage}/downloads/
93livecheck.regex         Current Stable Release.*(2\\.\[0-9\]\\.\[0-9\]+)