source: trunk/dports/cross/wxmsw/Portfile

Last change on this file was 90449, checked in by ryandesign@…, 5 years ago

i386-mingw32-libunicows, wxmsw: rewrite master_sites to avoid redirects

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 90449 2012-03-06 05:16:13Z ryandesign@macports.org $
2
3PortSystem              1.0
4name                    wxmsw
5version                 2.8.4
6categories              cross
7maintainers             nomaintainer
8description             The wxWidgets GUI toolkit with Win32 bindings
9long_description        \
10        A C++ package for platform independent software development
11
12homepage                http://wxwidgets.org/
13platforms               darwin
14master_sites    sourceforge:project/wxwindows/wxMSW/${version}
15distname                wxMSW-${version}
16checksums               md5 72a614037769a7d8ad7c5eb9ed9d887c
17use_zip         yes
18
19# Parameters for this port.
20set crossgcc-target i386-mingw32
21
22depends_lib             port:i386-mingw32-gcc port:i386-mingw32-w32api port:dos2unix
23
24configure.ldflags       "-L${prefix}/${crossgcc-target}/lib"
25configure.cppflags      "-I${prefix}/${crossgcc-target}/include"
26configure.args  --host=i386-mingw32 --target=mingw32 \
27                                --bindir=${prefix}/${crossgcc-target}/bin \
28                                --libdir=${prefix}/${crossgcc-target}/lib \
29                                --includedir=${prefix}/${crossgcc-target}/include \
30                                --with-msw --with-libpng --with-libjpeg --with-libtiff \
31                                --with-zlib
32
33post-extract {
34        system "dos2unix ${worksrcpath}/configure"
35        system "chmod +x ${worksrcpath}/configure"
36        system "dos2unix ${worksrcpath}/config.sub"
37        system "dos2unix ${worksrcpath}/config.guess"
38        system "dos2unix ${worksrcpath}/src/expat/configure"
39        system "chmod +x ${worksrcpath}/src/expat/configure"
40        system "dos2unix ${worksrcpath}/src/expat/expat_config.h.in"
41        system "dos2unix ${worksrcpath}/src/expat/conftools/config.sub"
42        system "dos2unix ${worksrcpath}/src/expat/conftools/config.guess"
43}
44
45post-destroot {
46        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
47        eval xinstall -m 644 [glob ${worksrcpath}/*.txt] \
48                ${destroot}${prefix}/share/doc/${name}
49}
50
51variant opengl {
52        configure.args-append   --with-opengl
53}
54
55post-destroot {
56        system "dos2unix ${destroot}${prefix}/${crossgcc-target}/lib/wx/config/*"
57        system "chmod +x ${destroot}${prefix}/${crossgcc-target}/lib/wx/config/*"
58
59        xinstall -m 755 -d ${destroot}${prefix}/bin
60        file rename ${destroot}${prefix}/${crossgcc-target}/bin/wx-config \
61                    ${destroot}${prefix}/bin/wx-config
62}
63
Note: See TracBrowser for help on using the repository browser.