# $Id: Portfile $ PortSystem 1.0 name wxmsw version 2.8.0 categories cross maintainers nomaintainer@macports.org description The wxWidgets GUI toolkit with Win32 bindings long_description \ A C++ package for platform independent software development homepage http://wxwidgets.org/ platforms darwin master_sites sourceforge:wxwindows distname wxMSW-${version} checksums md5 3909971f3a8e86bf4a1a796a7e461357 use_bzip2 yes # Parameters for this port. set crossgcc-target i386-mingw32 depends_lib port:i386-mingw32-gcc port:i386-mingw32-w32api port:dos2unix configure.env LDFLAGS="-L${prefix}/${crossgcc-target}/lib" \ CPPFLAGS="-I${prefix}/${crossgcc-target}/include -D__WIN95__" configure.args --host=i386-mingw32 --target=mingw32 \ --bindir=${prefix}/${crossgcc-target}/bin \ --libdir=${prefix}/${crossgcc-target}/lib \ --includedir=${prefix}/${crossgcc-target}/include \ --with-msw --with-libpng --with-libjpeg --with-libtiff \ --with-zlib post-extract { system "dos2unix ${worksrcpath}/configure" system "chmod +x ${worksrcpath}/configure" system "dos2unix ${worksrcpath}/config.sub" system "dos2unix ${worksrcpath}/config.guess" system "dos2unix ${worksrcpath}/src/expat/configure" system "chmod +x ${worksrcpath}/src/expat/configure" system "dos2unix ${worksrcpath}/src/expat/expat_config.h.in" system "dos2unix ${worksrcpath}/src/expat/conftools/config.sub" system "dos2unix ${worksrcpath}/src/expat/conftools/config.guess" } post-destroot { xinstall -m 755 -d ${destroot}/${prefix}/share/doc/${name} eval xinstall -m 644 [glob ${worksrcpath}/*.txt] \ ${destroot}/${prefix}/share/doc/${name} } variant opengl { configure.args-append --with-opengl } post-destroot { system "dos2unix ${destroot}/${prefix}/${crossgcc-target}/lib/wx/config/*" system "chmod +x ${destroot}/${prefix}/${crossgcc-target}/lib/wx/config/*" xinstall -m 755 -d ${destroot}/${prefix}/bin file rename ${destroot}/${prefix}/${crossgcc-target}/bin/wx-config \ ${destroot}/${prefix}/bin/wx-config }