Commits

Joshua Root authored 94d30bbe1ca
i386-mingw32-gcc: use --host as well as --build since it apparently doesn't default the former to the latter, and mark mtree violation

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@60617 d073be05-634f-4543-b044-5fe20cf6d1d6
No tags

cross/i386-mingw32-gcc/Portfile

Modified
64 64 --disable-nls \
65 65 --with-gnu-as \
66 66 --with-gnu-ld \
67 67 --disable-multilib \
68 68 --with-gxx-include-dir=${prefix}/${crossgcc-target}/include/c++/${gnu_version}/
69 69 if {$build_arch != ""} {
70 70 configure.cc_archflags
71 71 configure.cxx_archflags
72 72 configure.objc_archflags
73 73 if {${os.platform} == "darwin"} {
74 - configure.args-append --build=${build_arch}-apple-darwin${os.major}
74 + configure.args-append --build=${build_arch}-apple-darwin${os.major} \
75 + --host=${build_arch}-apple-darwin${os.major}
75 76 }
76 77 }
77 78
78 79 build.dir ${workpath}/build
79 80
80 81 post-patch {
81 82 namespace eval crossgcc {}
82 83
83 84 # Fix the info pages and related stuff.
84 85 #
156 157
157 158 # fastjar/fastjar.texi
158 159 crossgcc::fixinfo fastjar/ fastjar/Makefile.in fastjar texi
159 160
160 161 # gettext stuff.
161 162 crossgcc::fixgettext gcc
162 163 crossgcc::fixgettext fastjar
163 164
164 165 }
165 166
167 +destroot.violate_mtree yes
166 168 post-destroot {
167 169 # Stuff I don't want (either because they're in the system
168 170 # or because they would conflict with other FSF ports)
169 171 # (it's easier for maintainability purposes to fix things here)
170 172
171 173 # aliases for locales (should be on the system)
172 174 file delete "${destroot}/${prefix}/share/locale/locale.alias"
173 175
174 176 # FSF propaganda (should already be there or would conflict)
175 177 file delete -force "${destroot}/${prefix}/share/man/man7"

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut