[121439] users/mojca/ports/cross/x86_64-w64-mingw32-binutils/Portfile

mojca at macports.org mojca at macports.org
Wed Jun 25 09:34:48 PDT 2014


Revision: 121439
          https://trac.macports.org/changeset/121439
Author:   mojca at macports.org
Date:     2014-06-25 09:34:48 -0700 (Wed, 25 Jun 2014)
Log Message:
-----------
mojca/x86_64-w64-mingw32-binutils: use a single target, subports don't fit well

Modified Paths:
--------------
    users/mojca/ports/cross/x86_64-w64-mingw32-binutils/Portfile

Modified: users/mojca/ports/cross/x86_64-w64-mingw32-binutils/Portfile
===================================================================
--- users/mojca/ports/cross/x86_64-w64-mingw32-binutils/Portfile	2014-06-25 16:31:31 UTC (rev 121438)
+++ users/mojca/ports/cross/x86_64-w64-mingw32-binutils/Portfile	2014-06-25 16:34:48 UTC (rev 121439)
@@ -4,29 +4,23 @@
 PortSystem          1.0
 PortGroup           crossbinutils 1.0
 
-set core_name       w64-mingw32
-set vers            2.24
+# TODO: maybe make a portgroup
+set mingw_name      w64-mingw32
+set mingw_target    x86_64-${mingw_name}
+set mingw_prefix    ${prefix}/${mingw_target}
 
-crossbinutils.setup x86_64-${core_name} ${vers}
+crossbinutils.setup ${mingw_target} 2.24
 
 checksums           rmd160  b4aa3ea5ba9d0d9f817b2cf136e7f911f692af8d \
                     sha256  e5e8c5be9664e7f7f96e0d09919110ab5ad597794f5b1809871177a0f0f14137
 
-subport i686-${core_name}-binutils {
-    crossbinutils.setup i686-${core_name} ${vers}
-}
-
+configure.pre_args-delete \
+                    --prefix=${prefix}
 configure.args-append \
-                    --enable-targets=x86_64-${core_name},i686-${core_name} \
+                    --prefix=${mingw_prefix} \
+                    --with-sysroot=${mingw_prefix} \
                     --disable-werror
+# --enable-targets=x86_64-${mingw_name},i686-${mingw_name}
 
 maintainers         mojca openmaintainer
 homepage            http://mingw-w64.sourceforge.net/
-
-# http://www.drangon.org/mingw/
-# http://pete.akeo.ie/2010/07/compiling-mingw-w64-with-multilib-on.html
-# https://github.com/mirror/mingw-w64/blob/master/mingw-w64-doc/howto-build/mingw-w64-howto-build-adv.txt
-#   --enable-targets=x86_64-w64-mingw32,i686-w64-mingw32 \
-#   --target=x86_64-w64-mingw32
-
-# name for the port could also be w64-mingw32-binutils
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140625/35f882c8/attachment.html>


More information about the macports-changes mailing list