summaryrefslogtreecommitdiff
path: root/cross
diff options
context:
space:
mode:
authorasau <asau@pkgsrc.org>2010-03-15 18:34:36 +0000
committerasau <asau@pkgsrc.org>2010-03-15 18:34:36 +0000
commit544425a4e4d7c95a0c7fdc66f0e0d64d0dce28bd (patch)
tree3456c799619b7e02a77d1a707ab77b24c36a29f9 /cross
parentb4ef5afc4b4c8835c6548accc1d512c19b29205c (diff)
downloadpkgsrc-544425a4e4d7c95a0c7fdc66f0e0d64d0dce28bd.tar.gz
Import MinGW packages into "cross" category. From pkgsrc-wip project.
MinGW, a contraction of "Minimalist GNU for Windows," is a port of the GNU Compiler Collection (GCC), and GNU Binutils, for use in the development of native Microsoft Windows applications.
Diffstat (limited to 'cross')
-rw-r--r--cross/mingw-binutils/DESCR3
-rw-r--r--cross/mingw-binutils/Makefile30
-rw-r--r--cross/mingw-binutils/PLIST126
-rw-r--r--cross/mingw-binutils/buildlink3.mk12
-rw-r--r--cross/mingw-binutils/distinfo6
-rw-r--r--cross/mingw-binutils/patches/patch-aa13
-rw-r--r--cross/mingw-gcc/DESCR4
-rw-r--r--cross/mingw-gcc/Makefile45
-rw-r--r--cross/mingw-gcc/PLIST317
-rw-r--r--cross/mingw-gcc/buildlink3.mk17
-rw-r--r--cross/mingw-gcc/distinfo12
-rw-r--r--cross/mingw-gcc/patches/patch-ab13
-rw-r--r--cross/mingw-runtime-bin/DESCR4
-rw-r--r--cross/mingw-runtime-bin/Makefile27
-rw-r--r--cross/mingw-runtime-bin/PLIST91
-rw-r--r--cross/mingw-runtime-bin/buildlink3.mk15
-rw-r--r--cross/mingw-runtime-bin/distinfo5
-rw-r--r--cross/mingw-w32api-bin/DESCR4
-rw-r--r--cross/mingw-w32api-bin/Makefile27
-rw-r--r--cross/mingw-w32api-bin/PLIST459
-rw-r--r--cross/mingw-w32api-bin/buildlink3.mk16
-rw-r--r--cross/mingw-w32api-bin/distinfo5
-rw-r--r--cross/mingw/DESCR4
-rw-r--r--cross/mingw/Makefile17
-rw-r--r--cross/mingw/Makefile.common29
25 files changed, 1301 insertions, 0 deletions
diff --git a/cross/mingw-binutils/DESCR b/cross/mingw-binutils/DESCR
new file mode 100644
index 00000000000..86d4b63c061
--- /dev/null
+++ b/cross/mingw-binutils/DESCR
@@ -0,0 +1,3 @@
+MinGW-binutils: A part of cross-environment for MingGW, gas, ld, and binutils.
+This runs on any platform and generating binaries to run on MingGW, say,
+Windows environment.
diff --git a/cross/mingw-binutils/Makefile b/cross/mingw-binutils/Makefile
new file mode 100644
index 00000000000..85afa0d9720
--- /dev/null
+++ b/cross/mingw-binutils/Makefile
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/03/15 18:34:36 asau Exp $
+
+DISTNAME= binutils-2.18
+PKGNAME= mingw-${DISTNAME:S/-src//}
+CATEGORIES= cross
+MASTER_SITES= ${MASTER_SITE_GNU:=binutils/}
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://mingw.sourceforge.net/
+COMMENT= GNU binutils for win32 cross-development
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_PKGLOCALEDIR= yes
+GNU_CONFIGURE= yes
+USE_CROSSBASE= yes
+USE_TOOLS+= pax
+INFO_FILES= yes
+
+post-install:
+.for f in windres dllwrap
+ ${LN} -fs ${PREFIX}/bin/${MINGW_TARGET}-${f} \
+ ${DESTDIR}${PREFIX}/${MINGW_TARGET}/bin/${f}
+.endfor
+
+.include "../../cross/mingw/Makefile.common"
+.include "../../cross/mingw-w32api-bin/buildlink3.mk"
+.include "../../cross/mingw-runtime-bin/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/cross/mingw-binutils/PLIST b/cross/mingw-binutils/PLIST
new file mode 100644
index 00000000000..8e3e838b8dc
--- /dev/null
+++ b/cross/mingw-binutils/PLIST
@@ -0,0 +1,126 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2010/03/15 18:34:36 asau Exp $
+bin/${MINGW_TARGET}-addr2line
+bin/${MINGW_TARGET}-ar
+bin/${MINGW_TARGET}-as
+bin/${MINGW_TARGET}-c++filt
+bin/${MINGW_TARGET}-dlltool
+bin/${MINGW_TARGET}-dllwrap
+bin/${MINGW_TARGET}-gprof
+bin/${MINGW_TARGET}-ld
+bin/${MINGW_TARGET}-nm
+bin/${MINGW_TARGET}-objcopy
+bin/${MINGW_TARGET}-objdump
+bin/${MINGW_TARGET}-ranlib
+bin/${MINGW_TARGET}-readelf
+bin/${MINGW_TARGET}-size
+bin/${MINGW_TARGET}-strings
+bin/${MINGW_TARGET}-strip
+bin/${MINGW_TARGET}-windmc
+bin/${MINGW_TARGET}-windres
+${MINGW_TARGET}/bin/ar
+${MINGW_TARGET}/bin/as
+${MINGW_TARGET}/bin/dlltool
+${MINGW_TARGET}/bin/ld
+${MINGW_TARGET}/bin/nm
+${MINGW_TARGET}/bin/objcopy
+${MINGW_TARGET}/bin/objdump
+${MINGW_TARGET}/bin/ranlib
+${MINGW_TARGET}/bin/strip
+${MINGW_TARGET}/bin/windres
+${MINGW_TARGET}/bin/dllwrap
+${MINGW_TARGET}/lib/ldscripts/i386pe.x
+${MINGW_TARGET}/lib/ldscripts/i386pe.xbn
+${MINGW_TARGET}/lib/ldscripts/i386pe.xn
+${MINGW_TARGET}/lib/ldscripts/i386pe.xr
+${MINGW_TARGET}/lib/ldscripts/i386pe.xu
+info/as.info
+info/bfd.info
+info/binutils.info
+info/configure.info
+info/gprof.info
+info/ld.info
+info/standards.info
+lib/libiberty.a
+man/man1/${MINGW_TARGET}-addr2line.1
+man/man1/${MINGW_TARGET}-ar.1
+man/man1/${MINGW_TARGET}-as.1
+man/man1/${MINGW_TARGET}-c++filt.1
+man/man1/${MINGW_TARGET}-dlltool.1
+man/man1/${MINGW_TARGET}-gprof.1
+man/man1/${MINGW_TARGET}-ld.1
+man/man1/${MINGW_TARGET}-nlmconv.1
+man/man1/${MINGW_TARGET}-nm.1
+man/man1/${MINGW_TARGET}-objcopy.1
+man/man1/${MINGW_TARGET}-objdump.1
+man/man1/${MINGW_TARGET}-ranlib.1
+man/man1/${MINGW_TARGET}-readelf.1
+man/man1/${MINGW_TARGET}-size.1
+man/man1/${MINGW_TARGET}-strings.1
+man/man1/${MINGW_TARGET}-strip.1
+man/man1/${MINGW_TARGET}-windmc.1
+man/man1/${MINGW_TARGET}-windres.1
+share/locale/da/LC_MESSAGES/bfd.mo
+share/locale/da/LC_MESSAGES/binutils.mo
+share/locale/da/LC_MESSAGES/gprof.mo
+share/locale/da/LC_MESSAGES/ld.mo
+share/locale/da/LC_MESSAGES/opcodes.mo
+share/locale/de/LC_MESSAGES/gprof.mo
+share/locale/de/LC_MESSAGES/opcodes.mo
+share/locale/es/LC_MESSAGES/bfd.mo
+share/locale/es/LC_MESSAGES/binutils.mo
+share/locale/es/LC_MESSAGES/gas.mo
+share/locale/es/LC_MESSAGES/gprof.mo
+share/locale/es/LC_MESSAGES/ld.mo
+share/locale/es/LC_MESSAGES/opcodes.mo
+share/locale/fi/LC_MESSAGES/binutils.mo
+share/locale/fi/LC_MESSAGES/gprof.mo
+share/locale/fi/LC_MESSAGES/ld.mo
+share/locale/fi/LC_MESSAGES/opcodes.mo
+share/locale/fr/LC_MESSAGES/bfd.mo
+share/locale/fr/LC_MESSAGES/binutils.mo
+share/locale/fr/LC_MESSAGES/gas.mo
+share/locale/fr/LC_MESSAGES/gprof.mo
+share/locale/fr/LC_MESSAGES/ld.mo
+share/locale/fr/LC_MESSAGES/opcodes.mo
+share/locale/ga/LC_MESSAGES/gprof.mo
+share/locale/ga/LC_MESSAGES/ld.mo
+share/locale/ga/LC_MESSAGES/opcodes.mo
+share/locale/id/LC_MESSAGES/gprof.mo
+share/locale/id/LC_MESSAGES/opcodes.mo
+share/locale/ja/LC_MESSAGES/bfd.mo
+share/locale/ja/LC_MESSAGES/binutils.mo
+share/locale/ms/LC_MESSAGES/gprof.mo
+share/locale/nl/LC_MESSAGES/opcodes.mo
+share/locale/pt_BR/LC_MESSAGES/gprof.mo
+share/locale/pt_BR/LC_MESSAGES/opcodes.mo
+share/locale/ro/LC_MESSAGES/bfd.mo
+share/locale/ro/LC_MESSAGES/binutils.mo
+share/locale/ro/LC_MESSAGES/opcodes.mo
+share/locale/ru/LC_MESSAGES/binutils.mo
+share/locale/rw/LC_MESSAGES/bfd.mo
+share/locale/rw/LC_MESSAGES/binutils.mo
+share/locale/rw/LC_MESSAGES/gas.mo
+share/locale/rw/LC_MESSAGES/gprof.mo
+share/locale/sv/LC_MESSAGES/bfd.mo
+share/locale/sv/LC_MESSAGES/binutils.mo
+share/locale/sv/LC_MESSAGES/gprof.mo
+share/locale/sv/LC_MESSAGES/ld.mo
+share/locale/sv/LC_MESSAGES/opcodes.mo
+share/locale/tr/LC_MESSAGES/bfd.mo
+share/locale/tr/LC_MESSAGES/binutils.mo
+share/locale/tr/LC_MESSAGES/gas.mo
+share/locale/tr/LC_MESSAGES/gprof.mo
+share/locale/tr/LC_MESSAGES/ld.mo
+share/locale/tr/LC_MESSAGES/opcodes.mo
+share/locale/uk/LC_MESSAGES/binutils.mo
+share/locale/vi/LC_MESSAGES/bfd.mo
+share/locale/vi/LC_MESSAGES/binutils.mo
+share/locale/vi/LC_MESSAGES/gprof.mo
+share/locale/vi/LC_MESSAGES/ld.mo
+share/locale/vi/LC_MESSAGES/opcodes.mo
+share/locale/zh_CN/LC_MESSAGES/bfd.mo
+share/locale/zh_CN/LC_MESSAGES/binutils.mo
+share/locale/zh_CN/LC_MESSAGES/ld.mo
+share/locale/zh_CN/LC_MESSAGES/opcodes.mo
+share/locale/zh_TW/LC_MESSAGES/binutils.mo
+share/locale/zh_TW/LC_MESSAGES/ld.mo
diff --git a/cross/mingw-binutils/buildlink3.mk b/cross/mingw-binutils/buildlink3.mk
new file mode 100644
index 00000000000..a0cf22292ff
--- /dev/null
+++ b/cross/mingw-binutils/buildlink3.mk
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2010/03/15 18:34:36 asau Exp $
+
+BUILDLINK_TREE+= mingw-binutils
+
+.if !defined(MINGW_BINUTILS_BUILDLINK3_MK)
+MINGW_BINUTILS_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.mingw-binutils+= mingw-binutils>=2.18
+BUILDLINK_PKGSRCDIR.mingw-binutils?= ../../cross/mingw-binutils
+.endif # MINGW_BINUTILS_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -mingw-binutils
diff --git a/cross/mingw-binutils/distinfo b/cross/mingw-binutils/distinfo
new file mode 100644
index 00000000000..62e93b877c0
--- /dev/null
+++ b/cross/mingw-binutils/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2010/03/15 18:34:36 asau Exp $
+
+SHA1 (binutils-2.18.tar.bz2) = fdec92e9dfc6c32155869f3910f47041c78e2277
+RMD160 (binutils-2.18.tar.bz2) = 78d07475667c55ecbf9068dbb90362a3445b2a99
+Size (binutils-2.18.tar.bz2) = 14962245 bytes
+SHA1 (patch-aa) = d0eaca0996d6bc4858230e7c22a26d83336b6370
diff --git a/cross/mingw-binutils/patches/patch-aa b/cross/mingw-binutils/patches/patch-aa
new file mode 100644
index 00000000000..11398253582
--- /dev/null
+++ b/cross/mingw-binutils/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2010/03/15 18:34:37 asau Exp $
+
+--- ld/genscripts.sh-orig 2008-07-12 17:45:33.000000000 +0900
++++ ld/genscripts.sh 2008-07-12 17:43:56.000000000 +0900
+@@ -400,7 +400,7 @@
+ }
+ fragment()
+ {
+- local lineno=$[${BASH_LINENO[0]} + 1]
++ local lineno=$[\${BASH_LINENO[0]} + 1]
+ echo >> e${EMULATION_NAME}.c "#line $lineno \"$em_script\""
+ cat >> e${EMULATION_NAME}.c
+ }
diff --git a/cross/mingw-gcc/DESCR b/cross/mingw-gcc/DESCR
new file mode 100644
index 00000000000..e0defb1464a
--- /dev/null
+++ b/cross/mingw-gcc/DESCR
@@ -0,0 +1,4 @@
+MinGW: A collection of freely available and freely distributable Windows
+specific header files and import libraries combined with GNU toolsets that
+allow one to produce native Windows programs that do not rely on any
+3rd-party DLLs.
diff --git a/cross/mingw-gcc/Makefile b/cross/mingw-gcc/Makefile
new file mode 100644
index 00000000000..f083144972a
--- /dev/null
+++ b/cross/mingw-gcc/Makefile
@@ -0,0 +1,45 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/03/15 18:34:37 asau Exp $
+#
+
+DISTNAME= mingw-gcc-${DIST_VERSION}
+PKGNAME= ${DISTNAME:S/-${DIST_VERSION}/-${GCC_VERSION}/}
+WRKSRC= ${WRKDIR}/gcc-${DIST_VERSION}
+CATEGORIES= cross
+MASTER_SITES= ${MASTER_SITE_MINGW}
+DISTFILES= gcc-core-${DIST_VERSION}-src.tar.gz \
+ gcc-g++-${DIST_VERSION}-src.tar.gz \
+ gcc-objc-${DIST_VERSION}-src.tar.gz
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://mingw.sourceforge.net/
+COMMENT= GNU C Compiler for win32 cross-development
+
+USE_TOOLS+= gmake
+USE_PKGLOCALEDIR= yes
+GNU_CONFIGURE= yes
+USE_CROSSBASE= yes
+
+GCC_VERSION= 3.4.5
+DIST_VERSION= ${GCC_VERSION}-20060117-2
+
+do-build:
+ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS}
+ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \
+ all-target-libobjc
+ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \
+ all-target-libstdc++-v3
+
+post-install:
+ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} \
+ ${MAKE_FLAGS} install-target-libobjc
+ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} \
+ ${MAKE_FLAGS} install-target-libstdc++-v3
+ ${LN} -fs ${CROSSBASE}/bin/${MINGW_TARGET}-cpp \
+ ${CROSSBASE}/${MINGW_TARGET}/bin/cpp
+ ${LN} -fs ${CROSSBASE}/bin/${MINGW_TARGET}-gcc \
+ ${CROSSBASE}/${MINGW_TARGET}/bin/cc
+ cd ${CROSSBASE}/bin/ && ${LN} -fs ${MINGW_TARGET}-gcc ${MINGW_TARGET}-cc
+
+.include "../../cross/mingw/Makefile.common"
+.include "../../cross/mingw-binutils/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/cross/mingw-gcc/PLIST b/cross/mingw-gcc/PLIST
new file mode 100644
index 00000000000..9450a655cd1
--- /dev/null
+++ b/cross/mingw-gcc/PLIST
@@ -0,0 +1,317 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2010/03/15 18:34:38 asau Exp $
+bin/${MACHINE_ARCH}--mingw32-c++
+bin/${MACHINE_ARCH}--mingw32-cc
+bin/${MACHINE_ARCH}--mingw32-cpp
+bin/${MACHINE_ARCH}--mingw32-g++
+bin/${MACHINE_ARCH}--mingw32-gcc
+bin/${MACHINE_ARCH}--mingw32-gcc-3.4.5
+bin/${MACHINE_ARCH}--mingw32-gccbug
+bin/${MACHINE_ARCH}--mingw32-gcov
+${MACHINE_ARCH}--mingw32/bin/c++
+${MACHINE_ARCH}--mingw32/bin/cc
+${MACHINE_ARCH}--mingw32/bin/cpp
+${MACHINE_ARCH}--mingw32/bin/g++
+${MACHINE_ARCH}--mingw32/bin/gcc
+${MACHINE_ARCH}--mingw32/lib/libiberty.a
+${MACHINE_ARCH}--mingw32/lib/libobjc.la
+${MACHINE_ARCH}--mingw32/lib/libstdc++.la
+${MACHINE_ARCH}--mingw32/lib/libsupc++.la
+include/c++/3.4.5/algorithm
+include/c++/3.4.5/backward/algo.h
+include/c++/3.4.5/backward/algobase.h
+include/c++/3.4.5/backward/alloc.h
+include/c++/3.4.5/backward/backward_warning.h
+include/c++/3.4.5/backward/bvector.h
+include/c++/3.4.5/backward/complex.h
+include/c++/3.4.5/backward/defalloc.h
+include/c++/3.4.5/backward/deque.h
+include/c++/3.4.5/backward/fstream.h
+include/c++/3.4.5/backward/function.h
+include/c++/3.4.5/backward/hash_map.h
+include/c++/3.4.5/backward/hash_set.h
+include/c++/3.4.5/backward/hashtable.h
+include/c++/3.4.5/backward/heap.h
+include/c++/3.4.5/backward/iomanip.h
+include/c++/3.4.5/backward/iostream.h
+include/c++/3.4.5/backward/istream.h
+include/c++/3.4.5/backward/iterator.h
+include/c++/3.4.5/backward/list.h
+include/c++/3.4.5/backward/map.h
+include/c++/3.4.5/backward/multimap.h
+include/c++/3.4.5/backward/multiset.h
+include/c++/3.4.5/backward/new.h
+include/c++/3.4.5/backward/ostream.h
+include/c++/3.4.5/backward/pair.h
+include/c++/3.4.5/backward/queue.h
+include/c++/3.4.5/backward/rope.h
+include/c++/3.4.5/backward/set.h
+include/c++/3.4.5/backward/slist.h
+include/c++/3.4.5/backward/stack.h
+include/c++/3.4.5/backward/stream.h
+include/c++/3.4.5/backward/streambuf.h
+include/c++/3.4.5/backward/strstream
+include/c++/3.4.5/backward/tempbuf.h
+include/c++/3.4.5/backward/tree.h
+include/c++/3.4.5/backward/vector.h
+include/c++/3.4.5/bits/allocator.h
+include/c++/3.4.5/bits/atomicity.h
+include/c++/3.4.5/bits/basic_ios.h
+include/c++/3.4.5/bits/basic_ios.tcc
+include/c++/3.4.5/bits/basic_string.h
+include/c++/3.4.5/bits/basic_string.tcc
+include/c++/3.4.5/bits/boost_concept_check.h
+include/c++/3.4.5/bits/char_traits.h
+include/c++/3.4.5/bits/cmath.tcc
+include/c++/3.4.5/bits/codecvt.h
+include/c++/3.4.5/bits/concept_check.h
+include/c++/3.4.5/bits/concurrence.h
+include/c++/3.4.5/bits/cpp_type_traits.h
+include/c++/3.4.5/bits/deque.tcc
+include/c++/3.4.5/bits/fstream.tcc
+include/c++/3.4.5/bits/functexcept.h
+include/c++/3.4.5/bits/gslice.h
+include/c++/3.4.5/bits/gslice_array.h
+include/c++/3.4.5/bits/indirect_array.h
+include/c++/3.4.5/bits/ios_base.h
+include/c++/3.4.5/bits/istream.tcc
+include/c++/3.4.5/bits/list.tcc
+include/c++/3.4.5/bits/locale_classes.h
+include/c++/3.4.5/bits/locale_facets.h
+include/c++/3.4.5/bits/locale_facets.tcc
+include/c++/3.4.5/bits/localefwd.h
+include/c++/3.4.5/bits/mask_array.h
+include/c++/3.4.5/bits/ostream.tcc
+include/c++/3.4.5/bits/postypes.h
+include/c++/3.4.5/bits/slice_array.h
+include/c++/3.4.5/bits/sstream.tcc
+include/c++/3.4.5/bits/stl_algo.h
+include/c++/3.4.5/bits/stl_algobase.h
+include/c++/3.4.5/bits/stl_bvector.h
+include/c++/3.4.5/bits/stl_construct.h
+include/c++/3.4.5/bits/stl_deque.h
+include/c++/3.4.5/bits/stl_function.h
+include/c++/3.4.5/bits/stl_heap.h
+include/c++/3.4.5/bits/stl_iterator.h
+include/c++/3.4.5/bits/stl_iterator_base_funcs.h
+include/c++/3.4.5/bits/stl_iterator_base_types.h
+include/c++/3.4.5/bits/stl_list.h
+include/c++/3.4.5/bits/stl_map.h
+include/c++/3.4.5/bits/stl_multimap.h
+include/c++/3.4.5/bits/stl_multiset.h
+include/c++/3.4.5/bits/stl_numeric.h
+include/c++/3.4.5/bits/stl_pair.h
+include/c++/3.4.5/bits/stl_queue.h
+include/c++/3.4.5/bits/stl_raw_storage_iter.h
+include/c++/3.4.5/bits/stl_relops.h
+include/c++/3.4.5/bits/stl_set.h
+include/c++/3.4.5/bits/stl_stack.h
+include/c++/3.4.5/bits/stl_tempbuf.h
+include/c++/3.4.5/bits/stl_threads.h
+include/c++/3.4.5/bits/stl_tree.h
+include/c++/3.4.5/bits/stl_uninitialized.h
+include/c++/3.4.5/bits/stl_vector.h
+include/c++/3.4.5/bits/stream_iterator.h
+include/c++/3.4.5/bits/streambuf.tcc
+include/c++/3.4.5/bits/streambuf_iterator.h
+include/c++/3.4.5/bits/stringfwd.h
+include/c++/3.4.5/bits/type_traits.h
+include/c++/3.4.5/bits/valarray_after.h
+include/c++/3.4.5/bits/valarray_array.h
+include/c++/3.4.5/bits/valarray_array.tcc
+include/c++/3.4.5/bits/valarray_before.h
+include/c++/3.4.5/bits/vector.tcc
+include/c++/3.4.5/bitset
+include/c++/3.4.5/cassert
+include/c++/3.4.5/cctype
+include/c++/3.4.5/cerrno
+include/c++/3.4.5/cfloat
+include/c++/3.4.5/ciso646
+include/c++/3.4.5/climits
+include/c++/3.4.5/clocale
+include/c++/3.4.5/cmath
+include/c++/3.4.5/complex
+include/c++/3.4.5/csetjmp
+include/c++/3.4.5/csignal
+include/c++/3.4.5/cstdarg
+include/c++/3.4.5/cstddef
+include/c++/3.4.5/cstdio
+include/c++/3.4.5/cstdlib
+include/c++/3.4.5/cstring
+include/c++/3.4.5/ctime
+include/c++/3.4.5/cwchar
+include/c++/3.4.5/cwctype
+include/c++/3.4.5/cxxabi.h
+include/c++/3.4.5/debug/bitset
+include/c++/3.4.5/debug/debug.h
+include/c++/3.4.5/debug/deque
+include/c++/3.4.5/debug/formatter.h
+include/c++/3.4.5/debug/hash_map
+include/c++/3.4.5/debug/hash_map.h
+include/c++/3.4.5/debug/hash_multimap.h
+include/c++/3.4.5/debug/hash_multiset.h
+include/c++/3.4.5/debug/hash_set
+include/c++/3.4.5/debug/hash_set.h
+include/c++/3.4.5/debug/list
+include/c++/3.4.5/debug/map
+include/c++/3.4.5/debug/map.h
+include/c++/3.4.5/debug/multimap.h
+include/c++/3.4.5/debug/multiset.h
+include/c++/3.4.5/debug/safe_base.h
+include/c++/3.4.5/debug/safe_iterator.h
+include/c++/3.4.5/debug/safe_iterator.tcc
+include/c++/3.4.5/debug/safe_sequence.h
+include/c++/3.4.5/debug/set
+include/c++/3.4.5/debug/set.h
+include/c++/3.4.5/debug/string
+include/c++/3.4.5/debug/vector
+include/c++/3.4.5/deque
+include/c++/3.4.5/exception
+include/c++/3.4.5/exception_defines.h
+include/c++/3.4.5/ext/algorithm
+include/c++/3.4.5/ext/bitmap_allocator.h
+include/c++/3.4.5/ext/debug_allocator.h
+include/c++/3.4.5/ext/enc_filebuf.h
+include/c++/3.4.5/ext/functional
+include/c++/3.4.5/ext/hash_fun.h
+include/c++/3.4.5/ext/hash_map
+include/c++/3.4.5/ext/hash_set
+include/c++/3.4.5/ext/hashtable.h
+include/c++/3.4.5/ext/iterator
+include/c++/3.4.5/ext/malloc_allocator.h
+include/c++/3.4.5/ext/memory
+include/c++/3.4.5/ext/mt_allocator.h
+include/c++/3.4.5/ext/new_allocator.h
+include/c++/3.4.5/ext/numeric
+include/c++/3.4.5/ext/pod_char_traits.h
+include/c++/3.4.5/ext/pool_allocator.h
+include/c++/3.4.5/ext/rb_tree
+include/c++/3.4.5/ext/rope
+include/c++/3.4.5/ext/ropeimpl.h
+include/c++/3.4.5/ext/slist
+include/c++/3.4.5/ext/stdio_filebuf.h
+include/c++/3.4.5/ext/stdio_sync_filebuf.h
+include/c++/3.4.5/fstream
+include/c++/3.4.5/functional
+include/c++/3.4.5/${MACHINE_ARCH}--mingw32/bits/atomic_word.h
+include/c++/3.4.5/${MACHINE_ARCH}--mingw32/bits/basic_file.h
+include/c++/3.4.5/${MACHINE_ARCH}--mingw32/bits/c++allocator.h
+include/c++/3.4.5/${MACHINE_ARCH}--mingw32/bits/c++config.h
+include/c++/3.4.5/${MACHINE_ARCH}--mingw32/bits/c++io.h
+include/c++/3.4.5/${MACHINE_ARCH}--mingw32/bits/c++locale.h
+include/c++/3.4.5/${MACHINE_ARCH}--mingw32/bits/codecvt_specializations.h
+include/c++/3.4.5/${MACHINE_ARCH}--mingw32/bits/ctype_base.h
+include/c++/3.4.5/${MACHINE_ARCH}--mingw32/bits/ctype_inline.h
+include/c++/3.4.5/${MACHINE_ARCH}--mingw32/bits/ctype_noninline.h
+include/c++/3.4.5/${MACHINE_ARCH}--mingw32/bits/gthr-default.h
+include/c++/3.4.5/${MACHINE_ARCH}--mingw32/bits/gthr-posix.h
+include/c++/3.4.5/${MACHINE_ARCH}--mingw32/bits/gthr-single.h
+include/c++/3.4.5/${MACHINE_ARCH}--mingw32/bits/gthr.h
+include/c++/3.4.5/${MACHINE_ARCH}--mingw32/bits/messages_members.h
+include/c++/3.4.5/${MACHINE_ARCH}--mingw32/bits/os_defines.h
+include/c++/3.4.5/${MACHINE_ARCH}--mingw32/bits/stdc++.h.gch/O0g.gch
+include/c++/3.4.5/${MACHINE_ARCH}--mingw32/bits/stdc++.h.gch/O2g.gch
+include/c++/3.4.5/${MACHINE_ARCH}--mingw32/bits/time_members.h
+include/c++/3.4.5/iomanip
+include/c++/3.4.5/ios
+include/c++/3.4.5/iosfwd
+include/c++/3.4.5/iostream
+include/c++/3.4.5/istream
+include/c++/3.4.5/iterator
+include/c++/3.4.5/limits
+include/c++/3.4.5/list
+include/c++/3.4.5/locale
+include/c++/3.4.5/map
+include/c++/3.4.5/memory
+include/c++/3.4.5/new
+include/c++/3.4.5/numeric
+include/c++/3.4.5/ostream
+include/c++/3.4.5/queue
+include/c++/3.4.5/set
+include/c++/3.4.5/sstream
+include/c++/3.4.5/stack
+include/c++/3.4.5/stdexcept
+include/c++/3.4.5/streambuf
+include/c++/3.4.5/string
+include/c++/3.4.5/typeinfo
+include/c++/3.4.5/utility
+include/c++/3.4.5/valarray
+include/c++/3.4.5/vector
+info/cpp.info
+info/cppinternals.info
+info/dir
+info/gcc.info
+info/gccinstall.info
+info/gccint.info
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/crtbegin.o
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/crtend.o
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/include/README
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/include/emmintrin.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/include/float.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/include/iso646.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/include/limits.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/include/mm_malloc.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/include/mmintrin.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/include/objc/NXConstStr.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/include/objc/Object.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/include/objc/Protocol.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/include/objc/encoding.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/include/objc/hash.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/include/objc/objc-api.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/include/objc/objc-list.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/include/objc/objc.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/include/objc/sarray.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/include/objc/thr.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/include/objc/typedstream.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/include/pmmintrin.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/include/stdarg.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/include/stdbool.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/include/stddef.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/include/syslimits.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/include/unwind.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/include/varargs.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/include/xmmintrin.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/install-tools/gsyslimits.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/install-tools/include/README
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/install-tools/include/emmintrin.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/install-tools/include/float.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/install-tools/include/iso646.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/install-tools/include/limits.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/install-tools/include/mm_malloc.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/install-tools/include/mmintrin.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/install-tools/include/pmmintrin.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/install-tools/include/stdarg.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/install-tools/include/stdbool.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/install-tools/include/stddef.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/install-tools/include/unwind.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/install-tools/include/varargs.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/install-tools/include/xmmintrin.h
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/install-tools/mkheaders.conf
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/libgcc.a
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/libgcov.a
+lib/gcc/${MACHINE_ARCH}--mingw32/3.4.5/specs
+lib/libiberty.a
+libexec/gcc/${MACHINE_ARCH}--mingw32/3.4.5/cc1
+libexec/gcc/${MACHINE_ARCH}--mingw32/3.4.5/cc1obj
+libexec/gcc/${MACHINE_ARCH}--mingw32/3.4.5/cc1plus
+libexec/gcc/${MACHINE_ARCH}--mingw32/3.4.5/collect2
+libexec/gcc/${MACHINE_ARCH}--mingw32/3.4.5/install-tools/fixinc.sh
+libexec/gcc/${MACHINE_ARCH}--mingw32/3.4.5/install-tools/mkheaders
+man/man1/${MACHINE_ARCH}--mingw32-cpp.1
+man/man1/${MACHINE_ARCH}--mingw32-g++.1
+man/man1/${MACHINE_ARCH}--mingw32-gcc.1
+man/man1/${MACHINE_ARCH}--mingw32-gcov.1
+man/man7/fsf-funding.7
+man/man7/gfdl.7
+man/man7/gpl.7
+share/locale/be/LC_MESSAGES/gcc.mo
+share/locale/ca/LC_MESSAGES/gcc.mo
+share/locale/da/LC_MESSAGES/gcc.mo
+share/locale/de/LC_MESSAGES/gcc.mo
+share/locale/el/LC_MESSAGES/gcc.mo
+share/locale/es/LC_MESSAGES/gcc.mo
+share/locale/fr/LC_MESSAGES/gcc.mo
+share/locale/ja/LC_MESSAGES/gcc.mo
+share/locale/nl/LC_MESSAGES/gcc.mo
+share/locale/rw/LC_MESSAGES/gcc.mo
+share/locale/sv/LC_MESSAGES/gcc.mo
+share/locale/tr/LC_MESSAGES/gcc.mo
diff --git a/cross/mingw-gcc/buildlink3.mk b/cross/mingw-gcc/buildlink3.mk
new file mode 100644
index 00000000000..fb8bb2342bf
--- /dev/null
+++ b/cross/mingw-gcc/buildlink3.mk
@@ -0,0 +1,17 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2010/03/15 18:34:37 asau Exp $
+
+BUILDLINK_TREE+= mingw-gcc
+
+.if !defined(MINGW_GCC_BUILDLINK3_MK)
+MINGW_GCC_BUILDLINK3_MK:=
+
+.include "../../cross/mingw/Makefile.common"
+
+BUILDLINK_API_DEPENDS.mingw-gcc+= mingw-gcc>=3.4.2
+BUILDLINK_PKGSRCDIR.mingw-gcc?= ../../cross/mingw-gcc
+BUILDLINK_FNAME_TRANSFORM.mingw-gcc+= -e "s,${MINGW_TARGET}/lib,lib/,g"
+
+.include "../../cross/mingw-binutils/buildlink3.mk"
+.endif # MINGW_GCC_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -mingw-gcc
diff --git a/cross/mingw-gcc/distinfo b/cross/mingw-gcc/distinfo
new file mode 100644
index 00000000000..f267eea4572
--- /dev/null
+++ b/cross/mingw-gcc/distinfo
@@ -0,0 +1,12 @@
+$NetBSD: distinfo,v 1.1.1.1 2010/03/15 18:34:39 asau Exp $
+
+SHA1 (gcc-core-3.4.5-20060117-2-src.tar.gz) = 75d59049f26dc62f3732d11abbf056efc7bc8e95
+RMD160 (gcc-core-3.4.5-20060117-2-src.tar.gz) = 624dd55ac00fba15269f1b3b3bbd6c383cc20827
+Size (gcc-core-3.4.5-20060117-2-src.tar.gz) = 17695876 bytes
+SHA1 (gcc-g++-3.4.5-20060117-2-src.tar.gz) = edafa412d86085cf39f0db1c19a6ea2890d05946
+RMD160 (gcc-g++-3.4.5-20060117-2-src.tar.gz) = 7e3341c6ef1494462dfd3f682ad4cc6871b73e98
+Size (gcc-g++-3.4.5-20060117-2-src.tar.gz) = 3949457 bytes
+SHA1 (gcc-objc-3.4.5-20060117-2-src.tar.gz) = c96f1531d9d73e9279e0b6faf085deec5c2bda7b
+RMD160 (gcc-objc-3.4.5-20060117-2-src.tar.gz) = a02ad94da674760799ec945c7ff75ed99f9e8c3a
+Size (gcc-objc-3.4.5-20060117-2-src.tar.gz) = 266470 bytes
+SHA1 (patch-ab) = 7f7dfd0fd55037cc938c31b4ada03a7877e2cfc4
diff --git a/cross/mingw-gcc/patches/patch-ab b/cross/mingw-gcc/patches/patch-ab
new file mode 100644
index 00000000000..d3b576932e7
--- /dev/null
+++ b/cross/mingw-gcc/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2010/03/15 18:34:39 asau Exp $
+
+--- libiberty/physmem.c.orig 2003-12-01 04:42:16.000000000 +0100
++++ libiberty/physmem.c 2003-12-01 04:42:28.000000000 +0100
+@@ -48,7 +48,7 @@
+ # include <sys/param.h>
+ #endif
+
+-#if HAVE_SYS_SYSCTL_H
++#if 0
+ # include <sys/sysctl.h>
+ #endif
+
diff --git a/cross/mingw-runtime-bin/DESCR b/cross/mingw-runtime-bin/DESCR
new file mode 100644
index 00000000000..e0defb1464a
--- /dev/null
+++ b/cross/mingw-runtime-bin/DESCR
@@ -0,0 +1,4 @@
+MinGW: A collection of freely available and freely distributable Windows
+specific header files and import libraries combined with GNU toolsets that
+allow one to produce native Windows programs that do not rely on any
+3rd-party DLLs.
diff --git a/cross/mingw-runtime-bin/Makefile b/cross/mingw-runtime-bin/Makefile
new file mode 100644
index 00000000000..a6e56d0ba10
--- /dev/null
+++ b/cross/mingw-runtime-bin/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/03/15 18:34:39 asau Exp $
+
+DISTNAME= mingw-runtime-3.14
+PKGNAME= mingw-runtime-bin-3.14
+CATEGORIES= cross
+MASTER_SITES= ${MASTER_SITE_MINGW}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://mingw.sourceforge.net/
+COMMENT= GCC runtime libraries for win32 cross-development
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+NO_BUILD= yes
+NO_CONFIGURE= yes
+USE_CROSSBASE= yes
+USE_TOOLS+= pax
+WRKSRC= ${WRKDIR}
+
+INSTALLATION_DIRS+= ${MINGW_TARGET}
+
+do-install:
+ cd ${WRKSRC} && pax -rw -pe bin include lib \
+ ${DESTDIR}${PREFIX}/${MINGW_TARGET}
+
+.include "../../cross/mingw/Makefile.common"
+.include "../../mk/bsd.pkg.mk"
diff --git a/cross/mingw-runtime-bin/PLIST b/cross/mingw-runtime-bin/PLIST
new file mode 100644
index 00000000000..a3d8e06f7fd
--- /dev/null
+++ b/cross/mingw-runtime-bin/PLIST
@@ -0,0 +1,91 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2010/03/15 18:34:39 asau Exp $
+${MINGW_TARGET}/bin/mingwm10.dll
+${MINGW_TARGET}/include/assert.h
+${MINGW_TARGET}/include/conio.h
+${MINGW_TARGET}/include/complex.h
+${MINGW_TARGET}/include/ctype.h
+${MINGW_TARGET}/include/dir.h
+${MINGW_TARGET}/include/direct.h
+${MINGW_TARGET}/include/dirent.h
+${MINGW_TARGET}/include/dos.h
+${MINGW_TARGET}/include/errno.h
+${MINGW_TARGET}/include/excpt.h
+${MINGW_TARGET}/include/fcntl.h
+${MINGW_TARGET}/include/fenv.h
+${MINGW_TARGET}/include/float.h
+${MINGW_TARGET}/include/getopt.h
+${MINGW_TARGET}/include/gmon.h
+${MINGW_TARGET}/include/inttypes.h
+${MINGW_TARGET}/include/io.h
+${MINGW_TARGET}/include/libgen.h
+${MINGW_TARGET}/include/limits.h
+${MINGW_TARGET}/include/locale.h
+${MINGW_TARGET}/include/malloc.h
+${MINGW_TARGET}/include/math.h
+${MINGW_TARGET}/include/mbctype.h
+${MINGW_TARGET}/include/mbstring.h
+${MINGW_TARGET}/include/mem.h
+${MINGW_TARGET}/include/memory.h
+${MINGW_TARGET}/include/process.h
+${MINGW_TARGET}/include/profil.h
+${MINGW_TARGET}/include/profile.h
+${MINGW_TARGET}/include/search.h
+${MINGW_TARGET}/include/setjmp.h
+${MINGW_TARGET}/include/share.h
+${MINGW_TARGET}/include/signal.h
+${MINGW_TARGET}/include/stdint.h
+${MINGW_TARGET}/include/stdio.h
+${MINGW_TARGET}/include/stdlib.h
+${MINGW_TARGET}/include/string.h
+${MINGW_TARGET}/include/strings.h
+${MINGW_TARGET}/include/sys/fcntl.h
+${MINGW_TARGET}/include/sys/file.h
+${MINGW_TARGET}/include/sys/locking.h
+${MINGW_TARGET}/include/sys/param.h
+${MINGW_TARGET}/include/sys/stat.h
+${MINGW_TARGET}/include/sys/time.h
+${MINGW_TARGET}/include/sys/timeb.h
+${MINGW_TARGET}/include/sys/types.h
+${MINGW_TARGET}/include/sys/unistd.h
+${MINGW_TARGET}/include/sys/utime.h
+${MINGW_TARGET}/include/tchar.h
+${MINGW_TARGET}/include/time.h
+${MINGW_TARGET}/include/unistd.h
+${MINGW_TARGET}/include/utime.h
+${MINGW_TARGET}/include/values.h
+${MINGW_TARGET}/include/varargs.h
+${MINGW_TARGET}/include/wchar.h
+${MINGW_TARGET}/include/wctype.h
+${MINGW_TARGET}/include/_mingw.h
+${MINGW_TARGET}/lib/binmode.o
+${MINGW_TARGET}/lib/crt1.o
+${MINGW_TARGET}/lib/crt2.o
+${MINGW_TARGET}/lib/crtmt.o
+${MINGW_TARGET}/lib/crtst.o
+${MINGW_TARGET}/lib/CRT_fp10.o
+${MINGW_TARGET}/lib/CRT_fp8.o
+${MINGW_TARGET}/lib/CRT_noglob.o
+${MINGW_TARGET}/lib/dllcrt1.o
+${MINGW_TARGET}/lib/dllcrt2.o
+${MINGW_TARGET}/lib/gcrt1.o
+${MINGW_TARGET}/lib/gcrt2.o
+${MINGW_TARGET}/lib/libcoldname.a
+${MINGW_TARGET}/lib/libcrtdll.a
+${MINGW_TARGET}/lib/libgmon.a
+${MINGW_TARGET}/lib/libm.a
+${MINGW_TARGET}/lib/libmingw32.a
+${MINGW_TARGET}/lib/libmingwex.a
+${MINGW_TARGET}/lib/libmingwthrd.a
+${MINGW_TARGET}/lib/libmoldname.a
+${MINGW_TARGET}/lib/libmoldnamed.a
+${MINGW_TARGET}/lib/libmsvcr70.a
+${MINGW_TARGET}/lib/libmsvcr70d.a
+${MINGW_TARGET}/lib/libmsvcrt.a
+${MINGW_TARGET}/lib/libmsvcr71.a
+${MINGW_TARGET}/lib/libmsvcr71d.a
+${MINGW_TARGET}/lib/libmsvcrtd.a
+${MINGW_TARGET}/lib/libmsvcr80.a
+${MINGW_TARGET}/lib/libmsvcr80d.a
+${MINGW_TARGET}/lib/libmsvcr90.a
+${MINGW_TARGET}/lib/libmsvcr90d.a
+${MINGW_TARGET}/lib/txtmode.o
diff --git a/cross/mingw-runtime-bin/buildlink3.mk b/cross/mingw-runtime-bin/buildlink3.mk
new file mode 100644
index 00000000000..d21e57b53bd
--- /dev/null
+++ b/cross/mingw-runtime-bin/buildlink3.mk
@@ -0,0 +1,15 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2010/03/15 18:34:39 asau Exp $
+
+BUILDLINK_TREE+= mingw-runtime-bin
+
+.if !defined(MINGW_RUNTIME_BIN_BUILDLINK3_MK)
+MINGW_RUNTIME_BIN_BUILDLINK3_MK:=
+
+.include "../../cross/mingw/Makefile.common"
+
+BUILDLINK_API_DEPENDS.mingw-runtime-bin+= mingw-runtime-bin>=3.5
+BUILDLINK_PKGSRCDIR.mingw-runtime-bin?= ../../cross/mingw-runtime-bin
+BUILDLINK_FNAME_TRANSFORM.mingw-runtime-bin+= -e "s,${MINGW_TARGET}/lib,lib/,g"
+.endif # MINGW_RUNTIME_BIN_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -mingw-runtime-bin
diff --git a/cross/mingw-runtime-bin/distinfo b/cross/mingw-runtime-bin/distinfo
new file mode 100644
index 00000000000..07ce89c30ed
--- /dev/null
+++ b/cross/mingw-runtime-bin/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2010/03/15 18:34:39 asau Exp $
+
+SHA1 (mingw-runtime-3.14.tar.gz) = ebd523dff5cb5bc476124a283b3ba9781f907fea
+RMD160 (mingw-runtime-3.14.tar.gz) = 1447b8894346ba46ecd350bc6d0feb06485ec0f9
+Size (mingw-runtime-3.14.tar.gz) = 506843 bytes
diff --git a/cross/mingw-w32api-bin/DESCR b/cross/mingw-w32api-bin/DESCR
new file mode 100644
index 00000000000..e0defb1464a
--- /dev/null
+++ b/cross/mingw-w32api-bin/DESCR
@@ -0,0 +1,4 @@
+MinGW: A collection of freely available and freely distributable Windows
+specific header files and import libraries combined with GNU toolsets that
+allow one to produce native Windows programs that do not rely on any
+3rd-party DLLs.
diff --git a/cross/mingw-w32api-bin/Makefile b/cross/mingw-w32api-bin/Makefile
new file mode 100644
index 00000000000..664e9849dc6
--- /dev/null
+++ b/cross/mingw-w32api-bin/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/03/15 18:34:41 asau Exp $
+
+DISTNAME= w32api-3.11
+PKGNAME= mingw-w32api-bin-3.11
+CATEGORIES= cross
+MASTER_SITES= ${MASTER_SITE_MINGW}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://mingw.sourceforge.net/
+COMMENT= GCC libraries for win32 cross-development
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+NO_BUILD= yes
+NO_CONFIGURE= yes
+USE_CROSSBASE= yes
+USE_TOOLS+= pax
+WRKSRC= ${WRKDIR}
+
+INSTALLATION_DIRS+= ${MINGW_TARGET}
+
+do-install:
+ cd ${WRKSRC} && pax -rw -pe include lib \
+ ${DESTDIR}${PREFIX}/${MINGW_TARGET}
+
+.include "../../cross/mingw/Makefile.common"
+.include "../../mk/bsd.pkg.mk"
diff --git a/cross/mingw-w32api-bin/PLIST b/cross/mingw-w32api-bin/PLIST
new file mode 100644
index 00000000000..16e29563750
--- /dev/null
+++ b/cross/mingw-w32api-bin/PLIST
@@ -0,0 +1,459 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2010/03/15 18:34:41 asau Exp $
+${MINGW_TARGET}/include/accctrl.h
+${MINGW_TARGET}/include/aclapi.h
+${MINGW_TARGET}/include/aclui.h
+${MINGW_TARGET}/include/adsprop.h
+${MINGW_TARGET}/include/afxres.h
+${MINGW_TARGET}/include/amaudio.h
+${MINGW_TARGET}/include/amvideo.h
+${MINGW_TARGET}/include/audevcod.h
+${MINGW_TARGET}/include/aviriff.h
+${MINGW_TARGET}/include/aygshell.h
+${MINGW_TARGET}/include/basetsd.h
+${MINGW_TARGET}/include/basetyps.h
+${MINGW_TARGET}/include/bdatypes.h
+${MINGW_TARGET}/include/cderr.h
+${MINGW_TARGET}/include/cguid.h
+${MINGW_TARGET}/include/cmnquery.h
+${MINGW_TARGET}/include/comcat.h
+${MINGW_TARGET}/include/commctrl.h
+${MINGW_TARGET}/include/commdlg.h
+${MINGW_TARGET}/include/control.h
+${MINGW_TARGET}/include/cpl.h
+${MINGW_TARGET}/include/cplext.h
+${MINGW_TARGET}/include/custcntl.h
+${MINGW_TARGET}/include/d3d9.h
+${MINGW_TARGET}/include/d3d9caps.h
+${MINGW_TARGET}/include/d3d9types.h
+${MINGW_TARGET}/include/dbt.h
+${MINGW_TARGET}/include/dde.h
+${MINGW_TARGET}/include/ddeml.h
+${MINGW_TARGET}/include/ddk/atm.h
+${MINGW_TARGET}/include/ddk/batclass.h
+${MINGW_TARGET}/include/ddk/cfg.h
+${MINGW_TARGET}/include/ddk/cfgmgr32.h
+${MINGW_TARGET}/include/ddk/d4drvif.h
+${MINGW_TARGET}/include/ddk/d4iface.h
+${MINGW_TARGET}/include/ddk/ddkmapi.h
+${MINGW_TARGET}/include/ddk/hidclass.h
+${MINGW_TARGET}/include/ddk/hidpi.h
+${MINGW_TARGET}/include/ddk/hidsdi.h
+${MINGW_TARGET}/include/ddk/hidsdi.h
+${MINGW_TARGET}/include/ddk/hidusage.h
+${MINGW_TARGET}/include/ddk/kbdmou.h
+${MINGW_TARGET}/include/ddk/mcd.h
+${MINGW_TARGET}/include/ddk/miniport.h
+${MINGW_TARGET}/include/ddk/minitape.h
+${MINGW_TARGET}/include/ddk/mountdev.h
+${MINGW_TARGET}/include/ddk/mountmgr.h
+${MINGW_TARGET}/include/ddk/ndis.h
+${MINGW_TARGET}/include/ddk/ndisguid.h
+${MINGW_TARGET}/include/ddk/ndistapi.h
+${MINGW_TARGET}/include/ddk/ndiswan.h
+${MINGW_TARGET}/include/ddk/netevent.h
+${MINGW_TARGET}/include/ddk/netpnp.h
+${MINGW_TARGET}/include/ddk/newdev.h
+${MINGW_TARGET}/include/ddk/ntapi.h
+${MINGW_TARGET}/include/ddk/ntdd8042.h
+${MINGW_TARGET}/include/ddk/ntddbeep.h
+${MINGW_TARGET}/include/ddk/ntddcdrm.h
+${MINGW_TARGET}/include/ddk/ntddcdvd.h
+${MINGW_TARGET}/include/ddk/ntddchgr.h
+${MINGW_TARGET}/include/ddk/ntdddisk.h
+${MINGW_TARGET}/include/ddk/ntddk.h
+${MINGW_TARGET}/include/ddk/ntddkbd.h
+${MINGW_TARGET}/include/ddk/ntddmou.h
+${MINGW_TARGET}/include/ddk/ntddndis.h
+${MINGW_TARGET}/include/ddk/ntddpar.h
+${MINGW_TARGET}/include/ddk/ntddpcm.h
+${MINGW_TARGET}/include/ddk/ntddscsi.h
+${MINGW_TARGET}/include/ddk/ntddser.h
+${MINGW_TARGET}/include/ddk/ntddstor.h
+${MINGW_TARGET}/include/ddk/ntddtape.h
+${MINGW_TARGET}/include/ddk/ntddtdi.h
+${MINGW_TARGET}/include/ddk/ntddvdeo.h
+${MINGW_TARGET}/include/ddk/ntddvol.h
+${MINGW_TARGET}/include/ddk/ntifs.h
+${MINGW_TARGET}/include/ddk/ntpoapi.h
+${MINGW_TARGET}/include/ddk/ntstatus.h
+${MINGW_TARGET}/include/ddk/parallel.h
+${MINGW_TARGET}/include/ddk/pfhook.h
+${MINGW_TARGET}/include/ddk/poclass.h
+${MINGW_TARGET}/include/ddk/scsi.h
+${MINGW_TARGET}/include/ddk/scsiscan.h
+${MINGW_TARGET}/include/ddk/scsiwmi.h
+${MINGW_TARGET}/include/ddk/smbus.h
+${MINGW_TARGET}/include/ddk/srb.h
+${MINGW_TARGET}/include/ddk/storport.h
+${MINGW_TARGET}/include/ddk/tdi.h
+${MINGW_TARGET}/include/ddk/tdiinfo.h
+${MINGW_TARGET}/include/ddk/tdikrnl.h
+${MINGW_TARGET}/include/ddk/tdistat.h
+${MINGW_TARGET}/include/ddk/tvout.h
+${MINGW_TARGET}/include/ddk/upssvc.h
+${MINGW_TARGET}/include/ddk/usb.h
+${MINGW_TARGET}/include/ddk/usb100.h
+${MINGW_TARGET}/include/ddk/usbcamdi.h
+${MINGW_TARGET}/include/ddk/usbdi.h
+${MINGW_TARGET}/include/ddk/usbioctl.h
+${MINGW_TARGET}/include/ddk/usbiodef.h
+${MINGW_TARGET}/include/ddk/usbscan.h
+${MINGW_TARGET}/include/ddk/usbuser.h
+${MINGW_TARGET}/include/ddk/video.h
+${MINGW_TARGET}/include/ddk/videoagp.h
+${MINGW_TARGET}/include/ddk/win2k.h
+${MINGW_TARGET}/include/ddk/winddi.h
+${MINGW_TARGET}/include/ddk/winddk.h
+${MINGW_TARGET}/include/ddk/winnt4.h
+${MINGW_TARGET}/include/ddk/winxp.h
+${MINGW_TARGET}/include/ddk/ws2san.h
+${MINGW_TARGET}/include/ddk/xfilter.h
+${MINGW_TARGET}/include/devguid.h
+${MINGW_TARGET}/include/dhcpcsdk.h
+${MINGW_TARGET}/include/dlgs.h
+${MINGW_TARGET}/include/docobj.h
+${MINGW_TARGET}/include/dsadmin.h
+${MINGW_TARGET}/include/dsclient.h
+${MINGW_TARGET}/include/dsgetdc.h
+${MINGW_TARGET}/include/dshow.h
+${MINGW_TARGET}/include/dsquery.h
+${MINGW_TARGET}/include/dsrole.h
+${MINGW_TARGET}/include/dvdevcod.h
+${MINGW_TARGET}/include/dvdmedia.h
+${MINGW_TARGET}/include/dxerr8.h
+${MINGW_TARGET}/include/dxerr9.h
+${MINGW_TARGET}/include/edevdefs.h
+${MINGW_TARGET}/include/errorrep.h
+${MINGW_TARGET}/include/errors.h
+${MINGW_TARGET}/include/evcode.h
+${MINGW_TARGET}/include/exdisp.h
+${MINGW_TARGET}/include/exdispid.h
+${MINGW_TARGET}/include/fltdefs.h
+${MINGW_TARGET}/include/GL/gl.h
+${MINGW_TARGET}/include/GL/glext.h
+${MINGW_TARGET}/include/GL/glu.h
+${MINGW_TARGET}/include/httpext.h
+${MINGW_TARGET}/include/icm.h
+${MINGW_TARGET}/include/idispids.h
+${MINGW_TARGET}/include/il21dec.h
+${MINGW_TARGET}/include/imagehlp.h
+${MINGW_TARGET}/include/imm.h
+${MINGW_TARGET}/include/initguid.h
+${MINGW_TARGET}/include/intshcut.h
+${MINGW_TARGET}/include/ipexport.h
+${MINGW_TARGET}/include/iphlpapi.h
+${MINGW_TARGET}/include/ipifcons.h
+${MINGW_TARGET}/include/ipinfoid.h
+${MINGW_TARGET}/include/iprtrmib.h
+${MINGW_TARGET}/include/iptypes.h
+${MINGW_TARGET}/include/ipxconst.h
+${MINGW_TARGET}/include/ipxrtdef.h
+${MINGW_TARGET}/include/ipxtfflt.h
+${MINGW_TARGET}/include/isguids.h
+${MINGW_TARGET}/include/ks.h
+${MINGW_TARGET}/include/ksmedia.h
+${MINGW_TARGET}/include/largeint.h
+${MINGW_TARGET}/include/lm.h
+${MINGW_TARGET}/include/lmaccess.h
+${MINGW_TARGET}/include/lmalert.h
+${MINGW_TARGET}/include/lmapibuf.h
+${MINGW_TARGET}/include/lmat.h
+${MINGW_TARGET}/include/lmaudit.h
+${MINGW_TARGET}/include/lmbrowsr.h
+${MINGW_TARGET}/include/lmchdev.h
+${MINGW_TARGET}/include/lmconfig.h
+${MINGW_TARGET}/include/lmcons.h
+${MINGW_TARGET}/include/lmerr.h
+${MINGW_TARGET}/include/lmerrlog.h
+${MINGW_TARGET}/include/lmmsg.h
+${MINGW_TARGET}/include/lmremutl.h
+${MINGW_TARGET}/include/lmrepl.h
+${MINGW_TARGET}/include/lmserver.h
+${MINGW_TARGET}/include/lmshare.h
+${MINGW_TARGET}/include/lmsname.h
+${MINGW_TARGET}/include/lmstats.h
+${MINGW_TARGET}/include/lmsvc.h
+${MINGW_TARGET}/include/lmuse.h
+${MINGW_TARGET}/include/lmuseflg.h
+${MINGW_TARGET}/include/lmwksta.h
+${MINGW_TARGET}/include/lzexpand.h
+${MINGW_TARGET}/include/mapi.h
+${MINGW_TARGET}/include/mciavi.h
+${MINGW_TARGET}/include/mcx.h
+${MINGW_TARGET}/include/mgm.h
+${MINGW_TARGET}/include/mgmtapi.h
+${MINGW_TARGET}/include/mlang.h
+${MINGW_TARGET}/include/mmreg.h
+${MINGW_TARGET}/include/mmsystem.h
+${MINGW_TARGET}/include/mpegtype.h
+${MINGW_TARGET}/include/mprapi.h
+${MINGW_TARGET}/include/mq.h
+${MINGW_TARGET}/include/msacm.h
+${MINGW_TARGET}/include/mshtml.h
+${MINGW_TARGET}/include/mswsock.h
+${MINGW_TARGET}/include/nb30.h
+${MINGW_TARGET}/include/nddeapi.h
+${MINGW_TARGET}/include/nspapi.h
+${MINGW_TARGET}/include/ntdef.h
+${MINGW_TARGET}/include/ntdll.h
+${MINGW_TARGET}/include/ntdsapi.h
+${MINGW_TARGET}/include/ntdsbcli.h
+${MINGW_TARGET}/include/ntldap.h
+${MINGW_TARGET}/include/ntsecapi.h
+${MINGW_TARGET}/include/ntsecpkg.h
+${MINGW_TARGET}/include/oaidl.h
+${MINGW_TARGET}/include/objbase.h
+${MINGW_TARGET}/include/objfwd.h
+${MINGW_TARGET}/include/objidl.h
+${MINGW_TARGET}/include/objsafe.h
+${MINGW_TARGET}/include/objsel.h
+${MINGW_TARGET}/include/ocidl.h
+${MINGW_TARGET}/include/odbcinst.h
+${MINGW_TARGET}/include/ole.h
+${MINGW_TARGET}/include/ole2.h
+${MINGW_TARGET}/include/ole2ver.h
+${MINGW_TARGET}/include/oleacc.h
+${MINGW_TARGET}/include/oleauto.h
+${MINGW_TARGET}/include/olectl.h
+${MINGW_TARGET}/include/olectlid.h
+${MINGW_TARGET}/include/oledlg.h
+${MINGW_TARGET}/include/oleidl.h
+${MINGW_TARGET}/include/pbt.h
+${MINGW_TARGET}/include/poppack.h
+${MINGW_TARGET}/include/powrprof.h
+${MINGW_TARGET}/include/prsht.h
+${MINGW_TARGET}/include/psapi.h
+${MINGW_TARGET}/include/pshpack1.h
+${MINGW_TARGET}/include/pshpack2.h
+${MINGW_TARGET}/include/pshpack4.h
+${MINGW_TARGET}/include/pshpack8.h
+${MINGW_TARGET}/include/qedit.h
+${MINGW_TARGET}/include/rapi.h
+${MINGW_TARGET}/include/ras.h
+${MINGW_TARGET}/include/rasdlg.h
+${MINGW_TARGET}/include/raserror.h
+${MINGW_TARGET}/include/rassapi.h
+${MINGW_TARGET}/include/reason.h
+${MINGW_TARGET}/include/regstr.h
+${MINGW_TARGET}/include/richedit.h
+${MINGW_TARGET}/include/richole.h
+${MINGW_TARGET}/include/routprot.h
+${MINGW_TARGET}/include/rpc.h
+${MINGW_TARGET}/include/rpcdce.h
+${MINGW_TARGET}/include/rpcdce2.h
+${MINGW_TARGET}/include/rpcdcep.h
+${MINGW_TARGET}/include/rpcndr.h
+${MINGW_TARGET}/include/rpcnsi.h
+${MINGW_TARGET}/include/rpcnsip.h
+${MINGW_TARGET}/include/rpcnterr.h
+${MINGW_TARGET}/include/rpcproxy.h
+${MINGW_TARGET}/include/rtutils.h
+${MINGW_TARGET}/include/schannel.h
+${MINGW_TARGET}/include/schnlsp.h
+${MINGW_TARGET}/include/scrnsave.h
+${MINGW_TARGET}/include/sddl.h
+${MINGW_TARGET}/include/secext.h
+${MINGW_TARGET}/include/security.h
+${MINGW_TARGET}/include/servprov.h
+${MINGW_TARGET}/include/setupapi.h
+${MINGW_TARGET}/include/shellapi.h
+${MINGW_TARGET}/include/shldisp.h
+${MINGW_TARGET}/include/shlguid.h
+${MINGW_TARGET}/include/shlobj.h
+${MINGW_TARGET}/include/shlwapi.h
+${MINGW_TARGET}/include/snmp.h
+${MINGW_TARGET}/include/sql.h
+${MINGW_TARGET}/include/sqlext.h
+${MINGW_TARGET}/include/sqltypes.h
+${MINGW_TARGET}/include/sqlucode.h
+${MINGW_TARGET}/include/sspi.h
+${MINGW_TARGET}/include/stm.h
+${MINGW_TARGET}/include/strmif.h
+${MINGW_TARGET}/include/subauth.h
+${MINGW_TARGET}/include/svcguid.h
+${MINGW_TARGET}/include/tlhelp32.h
+${MINGW_TARGET}/include/tmschema.h
+${MINGW_TARGET}/include/unknwn.h
+${MINGW_TARGET}/include/userenv.h
+${MINGW_TARGET}/include/usp10.h
+${MINGW_TARGET}/include/uxtheme.h
+${MINGW_TARGET}/include/vfw.h
+${MINGW_TARGET}/include/vidcap.h
+${MINGW_TARGET}/include/vmr9.h
+${MINGW_TARGET}/include/vptype.h
+${MINGW_TARGET}/include/w32api.h
+${MINGW_TARGET}/include/winable.h
+${MINGW_TARGET}/include/winbase.h
+${MINGW_TARGET}/include/winber.h
+${MINGW_TARGET}/include/wincon.h
+${MINGW_TARGET}/include/wincrypt.h
+${MINGW_TARGET}/include/windef.h
+${MINGW_TARGET}/include/windns.h
+${MINGW_TARGET}/include/windows.h
+${MINGW_TARGET}/include/windowsx.h
+${MINGW_TARGET}/include/winerror.h
+${MINGW_TARGET}/include/wingdi.h
+${MINGW_TARGET}/include/wininet.h
+${MINGW_TARGET}/include/winioctl.h
+${MINGW_TARGET}/include/winldap.h
+${MINGW_TARGET}/include/winnetwk.h
+${MINGW_TARGET}/include/winnls.h
+${MINGW_TARGET}/include/winnt.h
+${MINGW_TARGET}/include/winperf.h
+${MINGW_TARGET}/include/winreg.h
+${MINGW_TARGET}/include/winresrc.h
+${MINGW_TARGET}/include/winsnmp.h
+${MINGW_TARGET}/include/winsock.h
+${MINGW_TARGET}/include/winsock2.h
+${MINGW_TARGET}/include/winspool.h
+${MINGW_TARGET}/include/winsvc.h
+${MINGW_TARGET}/include/winuser.h
+${MINGW_TARGET}/include/winver.h
+${MINGW_TARGET}/include/ws2spi.h
+${MINGW_TARGET}/include/ws2tcpip.h
+${MINGW_TARGET}/include/wsahelp.h
+${MINGW_TARGET}/include/wsipx.h
+${MINGW_TARGET}/include/wsnetbs.h
+${MINGW_TARGET}/include/wtsapi32.h
+${MINGW_TARGET}/include/wtsapi32.h
+${MINGW_TARGET}/include/wtypes.h
+${MINGW_TARGET}/include/xprtdefs.h
+${MINGW_TARGET}/include/zmouse.h
+${MINGW_TARGET}/lib/libaclui.a
+${MINGW_TARGET}/lib/libadvapi32.a
+${MINGW_TARGET}/lib/libapcups.a
+${MINGW_TARGET}/lib/libavicap32.a
+${MINGW_TARGET}/lib/libavifil32.a
+${MINGW_TARGET}/lib/libcap.a
+${MINGW_TARGET}/lib/libcfgmgr32.a
+${MINGW_TARGET}/lib/libcomctl32.a
+${MINGW_TARGET}/lib/libcomdlg32.a
+${MINGW_TARGET}/lib/libcrypt32.a
+${MINGW_TARGET}/lib/libctl3d32.a
+${MINGW_TARGET}/lib/libd3d8.a
+${MINGW_TARGET}/lib/libd3d9.a
+${MINGW_TARGET}/lib/libd3dim.a
+${MINGW_TARGET}/lib/libd3drm.a
+${MINGW_TARGET}/lib/libd3dx8d.a
+${MINGW_TARGET}/lib/libd3dx9d.a
+${MINGW_TARGET}/lib/libd3dxof.a
+${MINGW_TARGET}/lib/libddraw.a
+${MINGW_TARGET}/lib/libdhcpcsvc.a
+${MINGW_TARGET}/lib/libdinput.a
+${MINGW_TARGET}/lib/libdinput8.a
+${MINGW_TARGET}/lib/libdlcapi.a
+${MINGW_TARGET}/lib/libdmoguids.a
+${MINGW_TARGET}/lib/libdnsapi.a
+${MINGW_TARGET}/lib/libdplayx.a
+${MINGW_TARGET}/lib/libdpnaddr.a
+${MINGW_TARGET}/lib/libdpnet.a
+${MINGW_TARGET}/lib/libdpnlobby.a
+${MINGW_TARGET}/lib/libdpvoice.a
+${MINGW_TARGET}/lib/libdsetup.a
+${MINGW_TARGET}/lib/libdsound.a
+${MINGW_TARGET}/lib/libdxapi.a
+${MINGW_TARGET}/lib/libdxerr8.a
+${MINGW_TARGET}/lib/libdxerr9.a
+${MINGW_TARGET}/lib/libdxguid.a
+${MINGW_TARGET}/lib/libfaultrep.a
+${MINGW_TARGET}/lib/libgdi32.a
+${MINGW_TARGET}/lib/libglaux.a
+${MINGW_TARGET}/lib/libglu32.a
+${MINGW_TARGET}/lib/libglut.a
+${MINGW_TARGET}/lib/libglut32.a
+${MINGW_TARGET}/lib/libhal.a
+${MINGW_TARGET}/lib/libhid.a
+${MINGW_TARGET}/lib/libhidparse.a
+${MINGW_TARGET}/lib/libicmui.a
+${MINGW_TARGET}/lib/libigmpagnt.a
+${MINGW_TARGET}/lib/libimagehlp.a
+${MINGW_TARGET}/lib/libimm32.a
+${MINGW_TARGET}/lib/libiphlpapi.a
+${MINGW_TARGET}/lib/libkernel32.a
+${MINGW_TARGET}/lib/libksproxy.a
+${MINGW_TARGET}/lib/libksuser.a
+${MINGW_TARGET}/lib/liblargeint.a
+${MINGW_TARGET}/lib/liblz32.a
+${MINGW_TARGET}/lib/libmapi32.a
+${MINGW_TARGET}/lib/libmcd.a
+${MINGW_TARGET}/lib/libmfcuia32.a
+${MINGW_TARGET}/lib/libmgmtapi.a
+${MINGW_TARGET}/lib/libmpr.a
+${MINGW_TARGET}/lib/libmprapi.a
+${MINGW_TARGET}/lib/libmqrt.a
+${MINGW_TARGET}/lib/libmsacm32.a
+${MINGW_TARGET}/lib/libmscms.a
+${MINGW_TARGET}/lib/libmsdmo.a
+${MINGW_TARGET}/lib/libmsimg32.a
+${MINGW_TARGET}/lib/libmsvcp60.a
+${MINGW_TARGET}/lib/libmsvfw32.a
+${MINGW_TARGET}/lib/libmswsock.a
+${MINGW_TARGET}/lib/libnddeapi.a
+${MINGW_TARGET}/lib/libndis.a
+${MINGW_TARGET}/lib/libnetapi32.a
+${MINGW_TARGET}/lib/libnewdev.a
+${MINGW_TARGET}/lib/libntdll.a
+${MINGW_TARGET}/lib/libntoskrnl.a
+${MINGW_TARGET}/lib/libodbc32.a
+${MINGW_TARGET}/lib/libodbccp32.a
+${MINGW_TARGET}/lib/libole32.a
+${MINGW_TARGET}/lib/liboleacc.a
+${MINGW_TARGET}/lib/liboleaut32.a
+${MINGW_TARGET}/lib/libolecli32.a
+${MINGW_TARGET}/lib/liboledlg.a
+${MINGW_TARGET}/lib/libolepro32.a
+${MINGW_TARGET}/lib/libolesvr32.a
+${MINGW_TARGET}/lib/libopengl32.a
+${MINGW_TARGET}/lib/libpenwin32.a
+${MINGW_TARGET}/lib/libpkpd32.a
+${MINGW_TARGET}/lib/libpowrprof.a
+${MINGW_TARGET}/lib/libpsapi.a
+${MINGW_TARGET}/lib/libquartz.a
+${MINGW_TARGET}/lib/librapi.a
+${MINGW_TARGET}/lib/librasapi32.a
+${MINGW_TARGET}/lib/librasdlg.a
+${MINGW_TARGET}/lib/librpcdce4.a
+${MINGW_TARGET}/lib/librpcns4.a
+${MINGW_TARGET}/lib/librpcrt4.a
+${MINGW_TARGET}/lib/librtm.a
+${MINGW_TARGET}/lib/librtutils.a
+${MINGW_TARGET}/lib/libscrnsave.a
+${MINGW_TARGET}/lib/libscrnsavw.a
+${MINGW_TARGET}/lib/libscsiport.a
+${MINGW_TARGET}/lib/libsecur32.a
+${MINGW_TARGET}/lib/libsetupapi.a
+${MINGW_TARGET}/lib/libshell32.a
+${MINGW_TARGET}/lib/libshfolder.a
+${MINGW_TARGET}/lib/libshlwapi.a
+${MINGW_TARGET}/lib/libsnmpapi.a
+${MINGW_TARGET}/lib/libstrmiids.a
+${MINGW_TARGET}/lib/libsvrapi.a
+${MINGW_TARGET}/lib/libtapi32.a
+${MINGW_TARGET}/lib/libtdi.a
+${MINGW_TARGET}/lib/libth32.a
+${MINGW_TARGET}/lib/libthunk32.a
+${MINGW_TARGET}/lib/liburl.a
+${MINGW_TARGET}/lib/libusbcamd.a
+${MINGW_TARGET}/lib/libusbcamd2.a
+${MINGW_TARGET}/lib/libuser32.a
+${MINGW_TARGET}/lib/libuserenv.a
+${MINGW_TARGET}/lib/libusp10.a
+${MINGW_TARGET}/lib/libuuid.a
+${MINGW_TARGET}/lib/libuxtheme.a
+${MINGW_TARGET}/lib/libvdmdbg.a
+${MINGW_TARGET}/lib/libversion.a
+${MINGW_TARGET}/lib/libvfw32.a
+${MINGW_TARGET}/lib/libvideoprt.a
+${MINGW_TARGET}/lib/libwin32k.a
+${MINGW_TARGET}/lib/libwin32spl.a
+${MINGW_TARGET}/lib/libwininet.a
+${MINGW_TARGET}/lib/libwinmm.a
+${MINGW_TARGET}/lib/libwinspool.a
+${MINGW_TARGET}/lib/libwinstrm.a
+${MINGW_TARGET}/lib/libwldap32.a
+${MINGW_TARGET}/lib/libwow32.a
+${MINGW_TARGET}/lib/libws2_32.a
+${MINGW_TARGET}/lib/libwsnmp32.a
+${MINGW_TARGET}/lib/libwsock32.a
+${MINGW_TARGET}/lib/libwst.a
+${MINGW_TARGET}/lib/libwtsapi32.a
diff --git a/cross/mingw-w32api-bin/buildlink3.mk b/cross/mingw-w32api-bin/buildlink3.mk
new file mode 100644
index 00000000000..301c92c83c1
--- /dev/null
+++ b/cross/mingw-w32api-bin/buildlink3.mk
@@ -0,0 +1,16 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2010/03/15 18:34:41 asau Exp $
+
+BUILDLINK_TREE+= mingw-w32api-bin
+
+.if !defined(MINGW_W32API_BIN_BUILDLINK3_MK)
+MINGW_W32API_BIN_BUILDLINK3_MK:=
+
+.include "../../cross/mingw/Makefile.common"
+
+BUILDLINK_API_DEPENDS.mingw-w32api-bin+= mingw-w32api-bin>=3.1
+BUILDLINK_PKGSRCDIR.mingw-w32api-bin?= ../../cross/mingw-w32api-bin
+BUILDLINK_FNAME_TRANSFORM.mingw-w32api-bin+= -e "s,${MINGW_TARGET}/include,include/,g"
+BUILDLINK_FNAME_TRANSFORM.mingw-w32api-bin+= -e "s,${MINGW_TARGET}/lib,lib/,g"
+.endif # MINGW_W32API_BIN_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -mingw-w32api-bin
diff --git a/cross/mingw-w32api-bin/distinfo b/cross/mingw-w32api-bin/distinfo
new file mode 100644
index 00000000000..9f0ea4708f9
--- /dev/null
+++ b/cross/mingw-w32api-bin/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2010/03/15 18:34:41 asau Exp $
+
+SHA1 (w32api-3.11.tar.gz) = 0969cde19c3a85012b4924cb49cf2e9ef3d1b6df
+RMD160 (w32api-3.11.tar.gz) = 8e1df4c12313299d429a88c0e76e4e0d460acdc4
+Size (w32api-3.11.tar.gz) = 1628397 bytes
diff --git a/cross/mingw/DESCR b/cross/mingw/DESCR
new file mode 100644
index 00000000000..e0defb1464a
--- /dev/null
+++ b/cross/mingw/DESCR
@@ -0,0 +1,4 @@
+MinGW: A collection of freely available and freely distributable Windows
+specific header files and import libraries combined with GNU toolsets that
+allow one to produce native Windows programs that do not rely on any
+3rd-party DLLs.
diff --git a/cross/mingw/Makefile b/cross/mingw/Makefile
new file mode 100644
index 00000000000..808c4cfe15a
--- /dev/null
+++ b/cross/mingw/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/03/15 18:34:36 asau Exp $
+#
+
+DISTNAME= mingw-3.3.1
+CATEGORIES= cross
+MASTER_SITES= # empty
+DISTFILES= # empty
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://mingw.sourceforge.net/
+COMMENT= GCC tools for win32 cross-development
+
+META_PACKAGE= yes
+
+.include "../../cross/mingw-binutils/buildlink3.mk"
+.include "../../cross/mingw-gcc/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/cross/mingw/Makefile.common b/cross/mingw/Makefile.common
new file mode 100644
index 00000000000..d276dedd652
--- /dev/null
+++ b/cross/mingw/Makefile.common
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile.common,v 1.1.1.1 2010/03/15 18:34:36 asau Exp $
+#
+# used by cross/mingw-gcc/buildlink3.mk
+# used by cross/mingw-binutils/Makefile
+# used by cross/mingw-gcc/Makefile
+# used by cross/mingw-runtime-bin/Makefile
+# used by cross/mingw-w32api-bin/Makefile
+
+.if !defined(MINGW_MAKEFILECOMMON)
+MINGW_MAKEFILECOMMON= # defined
+USE_CROSSBASE= yes
+
+MASTER_SITE_MINGW= ${MASTER_SITE_SOURCEFORGE:=mingw/}
+MINGW_TARGET?= i386--mingw32
+PLIST_SUBST+= MINGW_TARGET=${MINGW_TARGET:Q}
+MAKE_ENV+= MINGW_TARGET=${MINGW_TARGET:Q}
+CONFIGURE_ENV+= MINGW_TARGET=${MINGW_TARGET:Q}
+
+PATH:= ${CROSSBASE}/bin:${PATH}
+
+.if defined(GNU_CONFIGURE)
+CONFIGURE_ARGS+= --prefix=${PREFIX:Q}
+CONFIGURE_ARGS+= --exec-prefix=${PREFIX:Q}
+CONFIGURE_ARGS+= --target=${MINGW_TARGET:Q}
+# following line to avoid getting
+# make: exec(i386--netbsdelf-ar) failed (No such file or directory)
+USE_GNU_CONFIGURE_HOST= NO
+.endif
+.endif