[28169] trunk/dports/cross
source_changes at macosforge.org
source_changes at macosforge.org
Thu Aug 23 05:28:15 PDT 2007
Revision: 28169
http://trac.macosforge.org/projects/macports/changeset/28169
Author: afb at macports.org
Date: 2007-08-23 05:28:14 -0700 (Thu, 23 Aug 2007)
Log Message:
-----------
new port: ANSI build of wxMSW, matches x11/wxgtk port (closes #11472)
Added Paths:
-----------
trunk/dports/cross/wxmsw/
trunk/dports/cross/wxmsw/Portfile
Added: trunk/dports/cross/wxmsw/Portfile
===================================================================
--- trunk/dports/cross/wxmsw/Portfile (rev 0)
+++ trunk/dports/cross/wxmsw/Portfile 2007-08-23 12:28:14 UTC (rev 28169)
@@ -0,0 +1,63 @@
+# $Id$
+
+PortSystem 1.0
+name wxmsw
+version 2.8.4
+categories cross
+maintainers nomaintainer at 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 72a614037769a7d8ad7c5eb9ed9d887c
+use_zip 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"
+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
+}
+
Property changes on: trunk/dports/cross/wxmsw/Portfile
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070823/3b01c1b3/attachment.html
More information about the macports-changes
mailing list