summaryrefslogtreecommitdiff
path: root/cross
diff options
context:
space:
mode:
authorkent <kent>2002-01-22 12:16:19 +0000
committerkent <kent>2002-01-22 12:16:19 +0000
commit7a69ccc0ebf9eb2b9fd5bafd02dbcd00a8f72aa6 (patch)
treea6d59f0587be14f4efeafffa8794b1d04d18ebe3 /cross
parentaf6d29602c1a0a1e1d894d0cbd99e3604b7d72a5 (diff)
downloadpkgsrc-7a69ccc0ebf9eb2b9fd5bafd02dbcd00a8f72aa6.tar.gz
New package: cross-i386-mingw32, which enables to produce Win32
EXE/DLL files on NetBSD.
Diffstat (limited to 'cross')
-rw-r--r--cross/i386-mingw32/DESCR5
-rw-r--r--cross/i386-mingw32/Makefile142
-rw-r--r--cross/i386-mingw32/PLIST495
-rw-r--r--cross/i386-mingw32/distinfo10
-rw-r--r--cross/i386-mingw32/files/config.h39
5 files changed, 691 insertions, 0 deletions
diff --git a/cross/i386-mingw32/DESCR b/cross/i386-mingw32/DESCR
new file mode 100644
index 00000000000..685354a0f74
--- /dev/null
+++ b/cross/i386-mingw32/DESCR
@@ -0,0 +1,5 @@
+MinGW is a collection of header files and import libraries that allow
+one to use GCC and produce native Windows32 programs that do not rely
+on any 3rd-party DLLs.
+
+http://www.mingw.org/
diff --git a/cross/i386-mingw32/Makefile b/cross/i386-mingw32/Makefile
new file mode 100644
index 00000000000..63ca6bbfa8c
--- /dev/null
+++ b/cross/i386-mingw32/Makefile
@@ -0,0 +1,142 @@
+# $NetBSD: Makefile,v 1.1 2002/01/22 12:16:19 kent Exp $
+
+DISTNAME= cross-${TARGET_ARCH}-2.95.3nb1
+CROSS_DISTFILES=
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.mingw.org/
+COMMENT= Cross-compile environment for Mingw
+CATEGORIES+= cross lang
+
+USE_CROSSBASE= yes
+TARGET_ARCH= i386-mingw32
+TARGET_DIR= ${PREFIX}/${TARGET_ARCH}
+
+MASTER_SITES+= http://prdownloads.sourceforge.net/mingw/
+CROSS_DISTFILES+= binutils-2.11.92-20011113-src.tar.gz
+BINUTILS_WRKSRC= ${WRKDIR}/binutils-2.11.92-20011113
+BINUTILS_EXTRAS= dlltool windres
+CROSS_DISTFILES+= gcc-2.95.3-20011106-src.tar.gz
+GCC_WRKSRC= ${WRKDIR}/gcc-2.95.3-20011106
+GCC_VERSION= 2.95.3-7
+PLIST_SUBST+= GCC_VERSION=${GCC_VERSION}
+CROSS_DISTFILES+= mingw-runtime-1.2-src.tar.gz
+MINGW_WRKSRC= ${WRKDIR}/mingw-runtime-1.2
+CROSS_DISTFILES+= w32api-1.2-src.tar.gz
+W32_WRKSRC= ${WRKDIR}/w32api-1.2
+USE_GMAKE= yes
+
+AS_FOR_TARGET= ${BINUTILS_WRKSRC}/gas/as-new
+AR_FOR_TARGET= ${BINUTILS_WRKSRC}/binutils/ar
+NM_FOR_TARGET= ${BINUTILS_WRKSRC}/binutils/nm-new
+RANLIB_FOR_TARGET= ${BINUTILS_WRKSRC}/binutils/ranlib
+LD_FOR_TARGET= ${BINUTILS_WRKSRC}/ld/ld-new
+CC_FOR_TARGET= ${GCC_WRKSRC}/${TARGET_ARCH}/gcc/xgcc \
+ -B${GCC_WRKSRC}/${TARGET_ARCH}/gcc/ ${CFLAGS_FOR_TARGET} \
+ -I${MINGW_WRKSRC}/include -I${W32_WRKSRC}/include -L${W32_WRKSRC}/lib
+CXX_FOR_TARGET= ${CC_FOR_TARGET}
+GCC_MAKE_FLAGS= \
+ CC_FOR_TARGET="${CC_FOR_TARGET}" \
+ GCC_FOR_TARGET="${CC_FOR_TARGET}" \
+ CXX_FOR_TARGET="${CXX_FOR_TARGET}" \
+ AS_FOR_TARGET="${AS_FOR_TARGET}" \
+ AR_FOR_TARGET="${AR_FOR_TARGET}" \
+ NM_FOR_TARGET="${NM_FOR_TARGET}" \
+ RANLIB_FOR_TARGET="${RANLIB_FOR_TARGET}" \
+ LD_FOR_TARGET="${LD_FOR_TARGET}" \
+ LANGUAGES="c c++" \
+ INSTALL="${INSTALL} -c -o ${BINOWN} -g ${BINGRP}" \
+ INSTALL_PROGRAM="${INSTALL_PROGRAM}"
+TARGET_CONFIGURE_ENV= CC="${CC_FOR_TARGET}" \
+ AR="${AR_FOR_TARGET}" \
+ AS="${AS_FOR_TARGET}" \
+ RANLIB="${RANLIB_FOR_TARGET}" \
+ LD="${LD_FOR_TARGET}" \
+ DLLTOOL="${BINUTILS_WRKSRC}/binutils/dlltool" \
+ WINDRES="${BINUTILS_WRKSRC}/binutils/windres"
+
+
+
+DISTFILES+= ${CROSS_DISTFILES}
+
+do-configure: bu-configure gcc-configure
+bu-configure:
+ cd ${BINUTILS_WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ./configure \
+ --prefix=${PREFIX} --target=${TARGET_ARCH}
+gcc-configure:
+ -${MKDIR} ${GCC_WRKSRC}/${TARGET_ARCH}
+ cd ${GCC_WRKSRC}/${TARGET_ARCH} && ${SETENV} ${CONFIUGRE_ENV} ../configure \
+ --prefix=${PREFIX} --target=${TARGET_ARCH} \
+ --with-gnu-as --with-gnu-ld --disable-multilib
+ -${MKDIR} ${GCC_WRKSRC}/${TARGET_ARCH}/${TARGET_ARCH}/libiberty
+ cd ${GCC_WRKSRC}/${TARGET_ARCH}/${TARGET_ARCH}/libiberty && ${SETENV} \
+ ${CONFIGURE_ENV} ../../../libiberty/configure \
+ --prefix=${PREFIX} --target=${TARGET_ARCH}
+ ${CP} ${FILESDIR}/config.h ${GCC_WRKSRC}/${TARGET_ARCH}/${TARGET_ARCH}/libiberty
+
+
+do-build: bu-build gcc-build w32-build mingw-build
+bu-build:
+ cd ${BINUTILS_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS}
+gcc-build:
+ @${LN} -sf ${AS_FOR_TARGET} ${GCC_WRKSRC}/${TARGET_ARCH}/gcc/as
+ @${LN} -sf ${LD_FOR_TARGET} ${GCC_WRKSRC}/${TARGET_ARCH}/gcc/ld
+ cd ${GCC_WRKSRC}/${TARGET_ARCH} && ${SETENV} ${MAKE_ENV} \
+ ${MAKE_PROGRAM} ${MAKE_FLAGS} ${GCC_MAKE_FLAGS}
+w32-build:
+ cd ${W32_WRKSRC} && ${SETENV} ${TARGET_CONFIGURE_ENV} ${CONFIGURE_ENV} \
+ ./configure --target=${TARGET_ARCH}
+ cd ${W32_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS}
+mingw-build:
+ cd ${MINGW_WRKSRC} && ${SETENV} ${TARGET_CONFIGURE_ENV} ${CONFIGURE_ENV} \
+ ./configure --target=${TARGET_ARCH}
+ cd ${MINGW_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS}
+
+
+do-install: bu-install gcc-install w32-install mingw-install
+bu-install:
+ ${INSTALL_PROGRAM_DIR} ${TARGET_DIR}/bin
+ ${INSTALL_PROGRAM_DIR} ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${BINUTILS_WRKSRC}/gas/as-new ${TARGET_DIR}/bin/as
+ ${INSTALL_PROGRAM} ${BINUTILS_WRKSRC}/ld/ld-new ${TARGET_DIR}/bin/ld
+ ${INSTALL_PROGRAM} ${BINUTILS_WRKSRC}/binutils/nm-new ${TARGET_DIR}/bin/nm
+ ${INSTALL_PROGRAM} ${BINUTILS_WRKSRC}/binutils/strip-new ${TARGET_DIR}/bin/strip
+ for i in addr2line ar objcopy objdump ranlib size strings ${BINUTILS_EXTRAS}; do \
+ ${INSTALL_PROGRAM} ${BINUTILS_WRKSRC}/binutils/$$i ${TARGET_DIR}/bin/$$i; \
+ done
+ for i in addr2line ar as ld nm objcopy objdump ranlib size strings strip \
+ ${BINUTILS_EXTRAS}; do \
+ ${LN} -f ${TARGET_DIR}/bin/$$i ${PREFIX}/bin/${TARGET_ARCH}-$$i; \
+ done
+gcc-install:
+ @cd ${GCC_WRKSRC}/${TARGET_ARCH}/gcc && ${SETENV} ${MAKE_ENV} \
+ ${MAKE_PROGRAM} ${MAKE_FLAGS} ${GCC_MAKE_FLAGS} \
+ install-common install-headers install-libgcc install-driver
+ @${MKDIR} ${TARGET_DIR}/include/g++-3
+ @${MKDIR} ${TARGET_DIR}/include/g++-3/std
+ @cd ${GCC_WRKSRC}/${TARGET_ARCH} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} \
+ ${MAKE_FLAGS} ${GCC_MAKE_FLAGS} prefix="${TARGET_DIR}" \
+ libsubdir="${PREFIX}/lib/gcc-lib/${TARGET_ARCH}/${GCC_VERSION}" \
+ install-target-libstdc++
+ for file in c++ c++filt g++; do \
+ ${LN} -f ${PREFIX}/bin/${TARGET_ARCH}-$$file ${TARGET_DIR}/bin/$$file; \
+ done
+w32-install:
+ ${INSTALL_DATA_DIR} ${TARGET_DIR}/include
+ ${INSTALL_DATA} ${W32_WRKSRC}/include/*.h ${TARGET_DIR}/include
+ ${INSTALL_DATA_DIR} ${TARGET_DIR}/lib
+ ${INSTALL_DATA} ${W32_WRKSRC}/lib/lib*.a ${TARGET_DIR}/lib
+mingw-install:
+ ${INSTALL_DATA_DIR} ${TARGET_DIR}/include/sys
+ ${INSTALL_DATA} ${MINGW_WRKSRC}/include/*.h ${TARGET_DIR}/include
+ ${INSTALL_DATA} ${MINGW_WRKSRC}/include/sys/*.h ${TARGET_DIR}/include/sys
+ for file in libcrtdll libmsvcrt libmsvcrt20 libmsvcrt40 libmingw32 \
+ libcoldname libmoldname libm libmingwthrd profile/libgmon ; do \
+ ${INSTALL_DATA} ${MINGW_WRKSRC}/$$file.a ${TARGET_DIR}/lib; \
+ done
+ ${INSTALL_PROGRAM} ${MINGW_WRKSRC}/mingwm10.dll ${TARGET_DIR}/lib
+ for file in crt1 dllcrt1 crt2 dllcrt2 CRT_noglob crtmt crtst \
+ profile/gcrt1 profile/gcrt2; do \
+ ${INSTALL_DATA} ${MINGW_WRKSRC}/$$file.o ${TARGET_DIR}/lib; \
+ done
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/cross/i386-mingw32/PLIST b/cross/i386-mingw32/PLIST
new file mode 100644
index 00000000000..c70a95d78f7
--- /dev/null
+++ b/cross/i386-mingw32/PLIST
@@ -0,0 +1,495 @@
+@comment $NetBSD: PLIST,v 1.1 2002/01/22 12:16:20 kent Exp $
+bin/i386-mingw32-addr2line
+bin/i386-mingw32-ar
+bin/i386-mingw32-as
+bin/i386-mingw32-c++
+bin/i386-mingw32-c++filt
+bin/i386-mingw32-dlltool
+bin/i386-mingw32-g++
+bin/i386-mingw32-gcc
+bin/i386-mingw32-ld
+bin/i386-mingw32-nm
+bin/i386-mingw32-objcopy
+bin/i386-mingw32-objdump
+bin/i386-mingw32-ranlib
+bin/i386-mingw32-size
+bin/i386-mingw32-strings
+bin/i386-mingw32-strip
+bin/i386-mingw32-windres
+i386-mingw32/bin/addr2line
+i386-mingw32/bin/ar
+i386-mingw32/bin/as
+i386-mingw32/bin/c++
+i386-mingw32/bin/c++filt
+i386-mingw32/bin/dlltool
+i386-mingw32/bin/g++
+i386-mingw32/bin/gcc
+i386-mingw32/bin/ld
+i386-mingw32/bin/nm
+i386-mingw32/bin/objcopy
+i386-mingw32/bin/objdump
+i386-mingw32/bin/ranlib
+i386-mingw32/bin/size
+i386-mingw32/bin/strings
+i386-mingw32/bin/strip
+i386-mingw32/bin/windres
+i386-mingw32/include/_mingw.h
+i386-mingw32/include/accctrl.h
+i386-mingw32/include/aclapi.h
+i386-mingw32/include/assert.h
+i386-mingw32/include/basetsd.h
+i386-mingw32/include/basetyps.h
+i386-mingw32/include/cderr.h
+i386-mingw32/include/cguid.h
+i386-mingw32/include/commctrl.h
+i386-mingw32/include/commdlg.h
+i386-mingw32/include/conio.h
+i386-mingw32/include/cpl.h
+i386-mingw32/include/cplext.h
+i386-mingw32/include/ctype.h
+i386-mingw32/include/custcntl.h
+i386-mingw32/include/dbt.h
+i386-mingw32/include/dde.h
+i386-mingw32/include/ddeml.h
+i386-mingw32/include/dir.h
+i386-mingw32/include/direct.h
+i386-mingw32/include/dirent.h
+i386-mingw32/include/dlgs.h
+i386-mingw32/include/dos.h
+i386-mingw32/include/errno.h
+i386-mingw32/include/excpt.h
+i386-mingw32/include/fcntl.h
+i386-mingw32/include/float.h
+i386-mingw32/include/g++-3/algo.h
+i386-mingw32/include/g++-3/algobase.h
+i386-mingw32/include/g++-3/algorithm
+i386-mingw32/include/g++-3/alloc.h
+i386-mingw32/include/g++-3/bitset
+i386-mingw32/include/g++-3/bvector.h
+i386-mingw32/include/g++-3/cassert
+i386-mingw32/include/g++-3/cctype
+i386-mingw32/include/g++-3/cerrno
+i386-mingw32/include/g++-3/cfloat
+i386-mingw32/include/g++-3/ciso646
+i386-mingw32/include/g++-3/climits
+i386-mingw32/include/g++-3/clocale
+i386-mingw32/include/g++-3/cmath
+i386-mingw32/include/g++-3/complex
+i386-mingw32/include/g++-3/complex.h
+i386-mingw32/include/g++-3/csetjmp
+i386-mingw32/include/g++-3/csignal
+i386-mingw32/include/g++-3/cstdarg
+i386-mingw32/include/g++-3/cstddef
+i386-mingw32/include/g++-3/cstdio
+i386-mingw32/include/g++-3/cstdlib
+i386-mingw32/include/g++-3/cstring
+i386-mingw32/include/g++-3/ctime
+i386-mingw32/include/g++-3/cwchar
+i386-mingw32/include/g++-3/cwctype
+i386-mingw32/include/g++-3/defalloc.h
+i386-mingw32/include/g++-3/deque
+i386-mingw32/include/g++-3/deque.h
+i386-mingw32/include/g++-3/fstream
+i386-mingw32/include/g++-3/function.h
+i386-mingw32/include/g++-3/functional
+i386-mingw32/include/g++-3/hash_map
+i386-mingw32/include/g++-3/hash_map.h
+i386-mingw32/include/g++-3/hash_set
+i386-mingw32/include/g++-3/hash_set.h
+i386-mingw32/include/g++-3/hashtable.h
+i386-mingw32/include/g++-3/heap.h
+i386-mingw32/include/g++-3/iomanip
+i386-mingw32/include/g++-3/iosfwd
+i386-mingw32/include/g++-3/iostream
+i386-mingw32/include/g++-3/iterator
+i386-mingw32/include/g++-3/iterator.h
+i386-mingw32/include/g++-3/list
+i386-mingw32/include/g++-3/list.h
+i386-mingw32/include/g++-3/map
+i386-mingw32/include/g++-3/map.h
+i386-mingw32/include/g++-3/memory
+i386-mingw32/include/g++-3/multimap.h
+i386-mingw32/include/g++-3/multiset.h
+i386-mingw32/include/g++-3/numeric
+i386-mingw32/include/g++-3/pair.h
+i386-mingw32/include/g++-3/pthread_alloc
+i386-mingw32/include/g++-3/pthread_alloc.h
+i386-mingw32/include/g++-3/queue
+i386-mingw32/include/g++-3/rope
+i386-mingw32/include/g++-3/rope.h
+i386-mingw32/include/g++-3/ropeimpl.h
+i386-mingw32/include/g++-3/set
+i386-mingw32/include/g++-3/set.h
+i386-mingw32/include/g++-3/slist
+i386-mingw32/include/g++-3/slist.h
+i386-mingw32/include/g++-3/sstream
+i386-mingw32/include/g++-3/stack
+i386-mingw32/include/g++-3/stack.h
+i386-mingw32/include/g++-3/std/bastring.cc
+i386-mingw32/include/g++-3/std/bastring.h
+i386-mingw32/include/g++-3/std/complext.cc
+i386-mingw32/include/g++-3/std/complext.h
+i386-mingw32/include/g++-3/std/dcomplex.h
+i386-mingw32/include/g++-3/std/fcomplex.h
+i386-mingw32/include/g++-3/std/gslice.h
+i386-mingw32/include/g++-3/std/gslice_array.h
+i386-mingw32/include/g++-3/std/indirect_array.h
+i386-mingw32/include/g++-3/std/ldcomplex.h
+i386-mingw32/include/g++-3/std/mask_array.h
+i386-mingw32/include/g++-3/std/slice.h
+i386-mingw32/include/g++-3/std/slice_array.h
+i386-mingw32/include/g++-3/std/std_valarray.h
+i386-mingw32/include/g++-3/std/straits.h
+i386-mingw32/include/g++-3/std/valarray_array.h
+i386-mingw32/include/g++-3/std/valarray_array.tcc
+i386-mingw32/include/g++-3/std/valarray_meta.h
+i386-mingw32/include/g++-3/stdexcept
+i386-mingw32/include/g++-3/stl.h
+i386-mingw32/include/g++-3/stl_algo.h
+i386-mingw32/include/g++-3/stl_algobase.h
+i386-mingw32/include/g++-3/stl_alloc.h
+i386-mingw32/include/g++-3/stl_bvector.h
+i386-mingw32/include/g++-3/stl_config.h
+i386-mingw32/include/g++-3/stl_construct.h
+i386-mingw32/include/g++-3/stl_deque.h
+i386-mingw32/include/g++-3/stl_function.h
+i386-mingw32/include/g++-3/stl_hash_fun.h
+i386-mingw32/include/g++-3/stl_hash_map.h
+i386-mingw32/include/g++-3/stl_hash_set.h
+i386-mingw32/include/g++-3/stl_hashtable.h
+i386-mingw32/include/g++-3/stl_heap.h
+i386-mingw32/include/g++-3/stl_iterator.h
+i386-mingw32/include/g++-3/stl_list.h
+i386-mingw32/include/g++-3/stl_map.h
+i386-mingw32/include/g++-3/stl_multimap.h
+i386-mingw32/include/g++-3/stl_multiset.h
+i386-mingw32/include/g++-3/stl_numeric.h
+i386-mingw32/include/g++-3/stl_pair.h
+i386-mingw32/include/g++-3/stl_queue.h
+i386-mingw32/include/g++-3/stl_raw_storage_iter.h
+i386-mingw32/include/g++-3/stl_relops.h
+i386-mingw32/include/g++-3/stl_rope.h
+i386-mingw32/include/g++-3/stl_set.h
+i386-mingw32/include/g++-3/stl_slist.h
+i386-mingw32/include/g++-3/stl_stack.h
+i386-mingw32/include/g++-3/stl_tempbuf.h
+i386-mingw32/include/g++-3/stl_tree.h
+i386-mingw32/include/g++-3/stl_uninitialized.h
+i386-mingw32/include/g++-3/stl_vector.h
+i386-mingw32/include/g++-3/string
+i386-mingw32/include/g++-3/strstream
+i386-mingw32/include/g++-3/tempbuf.h
+i386-mingw32/include/g++-3/tree.h
+i386-mingw32/include/g++-3/type_traits.h
+i386-mingw32/include/g++-3/utility
+i386-mingw32/include/g++-3/valarray
+i386-mingw32/include/g++-3/vector
+i386-mingw32/include/g++-3/vector.h
+i386-mingw32/include/httpext.h
+i386-mingw32/include/imagehlp.h
+i386-mingw32/include/imm.h
+i386-mingw32/include/initguid.h
+i386-mingw32/include/intshcut.h
+i386-mingw32/include/io.h
+i386-mingw32/include/ipexport.h
+i386-mingw32/include/iphlpapi.h
+i386-mingw32/include/ipifcons.h
+i386-mingw32/include/iprtrmib.h
+i386-mingw32/include/iptypes.h
+i386-mingw32/include/isguids.h
+i386-mingw32/include/largeint.h
+i386-mingw32/include/limits.h
+i386-mingw32/include/lm.h
+i386-mingw32/include/lmaccess.h
+i386-mingw32/include/lmalert.h
+i386-mingw32/include/lmapibuf.h
+i386-mingw32/include/lmat.h
+i386-mingw32/include/lmaudit.h
+i386-mingw32/include/lmbrowsr.h
+i386-mingw32/include/lmchdev.h
+i386-mingw32/include/lmconfig.h
+i386-mingw32/include/lmcons.h
+i386-mingw32/include/lmerr.h
+i386-mingw32/include/lmerrlog.h
+i386-mingw32/include/lmmsg.h
+i386-mingw32/include/lmremutl.h
+i386-mingw32/include/lmrepl.h
+i386-mingw32/include/lmserver.h
+i386-mingw32/include/lmshare.h
+i386-mingw32/include/lmsname.h
+i386-mingw32/include/lmstats.h
+i386-mingw32/include/lmsvc.h
+i386-mingw32/include/lmuse.h
+i386-mingw32/include/lmuseflg.h
+i386-mingw32/include/lmwksta.h
+i386-mingw32/include/locale.h
+i386-mingw32/include/lzexpand.h
+i386-mingw32/include/malloc.h
+i386-mingw32/include/math.h
+i386-mingw32/include/mciavi.h
+i386-mingw32/include/mcx.h
+i386-mingw32/include/mem.h
+i386-mingw32/include/memory.h
+i386-mingw32/include/mmsystem.h
+i386-mingw32/include/mswsock.h
+i386-mingw32/include/nb30.h
+i386-mingw32/include/nddeapi.h
+i386-mingw32/include/nspapi.h
+i386-mingw32/include/ntdef.h
+i386-mingw32/include/ntsecapi.h
+i386-mingw32/include/oaidl.h
+i386-mingw32/include/objbase.h
+i386-mingw32/include/objfwd.h
+i386-mingw32/include/objidl.h
+i386-mingw32/include/ocidl.h
+i386-mingw32/include/odbcinst.h
+i386-mingw32/include/ole.h
+i386-mingw32/include/ole2.h
+i386-mingw32/include/ole2ver.h
+i386-mingw32/include/oleauto.h
+i386-mingw32/include/olectl.h
+i386-mingw32/include/olectlid.h
+i386-mingw32/include/oledlg.h
+i386-mingw32/include/oleidl.h
+i386-mingw32/include/pbt.h
+i386-mingw32/include/poppack.h
+i386-mingw32/include/process.h
+i386-mingw32/include/prsht.h
+i386-mingw32/include/psapi.h
+i386-mingw32/include/pshpack1.h
+i386-mingw32/include/pshpack2.h
+i386-mingw32/include/pshpack4.h
+i386-mingw32/include/pshpack8.h
+i386-mingw32/include/rapi.h
+i386-mingw32/include/ras.h
+i386-mingw32/include/raserror.h
+i386-mingw32/include/rassapi.h
+i386-mingw32/include/regstr.h
+i386-mingw32/include/richedit.h
+i386-mingw32/include/richole.h
+i386-mingw32/include/rpc.h
+i386-mingw32/include/rpcdce.h
+i386-mingw32/include/rpcdce2.h
+i386-mingw32/include/rpcdcep.h
+i386-mingw32/include/rpcndr.h
+i386-mingw32/include/rpcnsi.h
+i386-mingw32/include/rpcnsip.h
+i386-mingw32/include/rpcnterr.h
+i386-mingw32/include/rpcproxy.h
+i386-mingw32/include/scrnsave.h
+i386-mingw32/include/setjmp.h
+i386-mingw32/include/setupapi.h
+i386-mingw32/include/share.h
+i386-mingw32/include/shellapi.h
+i386-mingw32/include/shlguid.h
+i386-mingw32/include/shlobj.h
+i386-mingw32/include/signal.h
+i386-mingw32/include/sql.h
+i386-mingw32/include/sqlext.h
+i386-mingw32/include/sqltypes.h
+i386-mingw32/include/sqlucode.h
+i386-mingw32/include/stdarg.h
+i386-mingw32/include/stddef.h
+i386-mingw32/include/stdint.h
+i386-mingw32/include/stdio.h
+i386-mingw32/include/stdlib.h
+i386-mingw32/include/string.h
+i386-mingw32/include/strings.h
+i386-mingw32/include/subauth.h
+i386-mingw32/include/sys/fcntl.h
+i386-mingw32/include/sys/file.h
+i386-mingw32/include/sys/locking.h
+i386-mingw32/include/sys/stat.h
+i386-mingw32/include/sys/time.h
+i386-mingw32/include/sys/timeb.h
+i386-mingw32/include/sys/types.h
+i386-mingw32/include/sys/unistd.h
+i386-mingw32/include/sys/utime.h
+i386-mingw32/include/tchar.h
+i386-mingw32/include/time.h
+i386-mingw32/include/tlhelp32.h
+i386-mingw32/include/unistd.h
+i386-mingw32/include/unknwn.h
+i386-mingw32/include/userenv.h
+i386-mingw32/include/values.h
+i386-mingw32/include/varargs.h
+i386-mingw32/include/w32api.h
+i386-mingw32/include/wchar.h
+i386-mingw32/include/wctype.h
+i386-mingw32/include/winbase.h
+i386-mingw32/include/wincon.h
+i386-mingw32/include/wincrypt.h
+i386-mingw32/include/windef.h
+i386-mingw32/include/windows.h
+i386-mingw32/include/windowsx.h
+i386-mingw32/include/winerror.h
+i386-mingw32/include/wingdi.h
+i386-mingw32/include/wininet.h
+i386-mingw32/include/winioctl.h
+i386-mingw32/include/winnetwk.h
+i386-mingw32/include/winnls.h
+i386-mingw32/include/winnt.h
+i386-mingw32/include/winperf.h
+i386-mingw32/include/winreg.h
+i386-mingw32/include/winresrc.h
+i386-mingw32/include/winsock.h
+i386-mingw32/include/winsock2.h
+i386-mingw32/include/winspool.h
+i386-mingw32/include/winsvc.h
+i386-mingw32/include/winuser.h
+i386-mingw32/include/winver.h
+i386-mingw32/include/ws2tcpip.h
+i386-mingw32/include/wtypes.h
+i386-mingw32/include/zmouse.h
+i386-mingw32/lib/CRT_noglob.o
+i386-mingw32/lib/crt1.o
+i386-mingw32/lib/crt2.o
+i386-mingw32/lib/crtmt.o
+i386-mingw32/lib/crtst.o
+i386-mingw32/lib/dllcrt1.o
+i386-mingw32/lib/dllcrt2.o
+i386-mingw32/lib/gcrt1.o
+i386-mingw32/lib/gcrt2.o
+i386-mingw32/lib/libadvapi32.a
+i386-mingw32/lib/libcap.a
+i386-mingw32/lib/libcoldname.a
+i386-mingw32/lib/libcomctl32.a
+i386-mingw32/lib/libcomdlg32.a
+i386-mingw32/lib/libcrtdll.a
+i386-mingw32/lib/libctl3d32.a
+i386-mingw32/lib/libd3dim.a
+i386-mingw32/lib/libd3drm.a
+i386-mingw32/lib/libd3dxof.a
+i386-mingw32/lib/libddraw.a
+i386-mingw32/lib/libdinput.a
+i386-mingw32/lib/libdlcapi.a
+i386-mingw32/lib/libdplayx.a
+i386-mingw32/lib/libdsetup.a
+i386-mingw32/lib/libdsound.a
+i386-mingw32/lib/libdxguid.a
+i386-mingw32/lib/libgdi32.a
+i386-mingw32/lib/libglaux.a
+i386-mingw32/lib/libglu32.a
+i386-mingw32/lib/libglut.a
+i386-mingw32/lib/libglut32.a
+i386-mingw32/lib/libgmon.a
+i386-mingw32/lib/libimagehlp.a
+i386-mingw32/lib/libimm32.a
+i386-mingw32/lib/libiphlpapi.a
+i386-mingw32/lib/libkernel32.a
+i386-mingw32/lib/liblargeint.a
+i386-mingw32/lib/liblz32.a
+i386-mingw32/lib/libm.a
+i386-mingw32/lib/libmapi32.a
+i386-mingw32/lib/libmfcuia32.a
+i386-mingw32/lib/libmgmtapi.a
+i386-mingw32/lib/libmingw32.a
+i386-mingw32/lib/libmingwthrd.a
+i386-mingw32/lib/libmoldname.a
+i386-mingw32/lib/libmpr.a
+i386-mingw32/lib/libmsacm32.a
+i386-mingw32/lib/libmsvcp60.a
+i386-mingw32/lib/libmsvcrt.a
+i386-mingw32/lib/libmsvcrt20.a
+i386-mingw32/lib/libmsvcrt40.a
+i386-mingw32/lib/libmswsock.a
+i386-mingw32/lib/libnddeapi.a
+i386-mingw32/lib/libnetapi32.a
+i386-mingw32/lib/libodbc32.a
+i386-mingw32/lib/libodbccp32.a
+i386-mingw32/lib/libole32.a
+i386-mingw32/lib/liboleaut32.a
+i386-mingw32/lib/libolecli32.a
+i386-mingw32/lib/liboledlg.a
+i386-mingw32/lib/libolepro32.a
+i386-mingw32/lib/libolesvr32.a
+i386-mingw32/lib/libopengl32.a
+i386-mingw32/lib/libpenwin32.a
+i386-mingw32/lib/libpkpd32.a
+i386-mingw32/lib/libpsapi.a
+i386-mingw32/lib/librapi.a
+i386-mingw32/lib/librasapi32.a
+i386-mingw32/lib/librpcdce4.a
+i386-mingw32/lib/librpcns4.a
+i386-mingw32/lib/librpcrt4.a
+i386-mingw32/lib/libscrnsave.a
+i386-mingw32/lib/libscrnsavw.a
+i386-mingw32/lib/libsecur32.a
+i386-mingw32/lib/libsetupapi.a
+i386-mingw32/lib/libshell32.a
+i386-mingw32/lib/libsvrapi.a
+i386-mingw32/lib/libtapi32.a
+i386-mingw32/lib/libth32.a
+i386-mingw32/lib/libthunk32.a
+i386-mingw32/lib/liburl.a
+i386-mingw32/lib/libuser32.a
+i386-mingw32/lib/libuserenv.a
+i386-mingw32/lib/libuuid.a
+i386-mingw32/lib/libvdmdbg.a
+i386-mingw32/lib/libversion.a
+i386-mingw32/lib/libvfw32.a
+i386-mingw32/lib/libwin32spl.a
+i386-mingw32/lib/libwininet.a
+i386-mingw32/lib/libwinmm.a
+i386-mingw32/lib/libwinspool.a
+i386-mingw32/lib/libwinstrm.a
+i386-mingw32/lib/libwow32.a
+i386-mingw32/lib/libws2_32.a
+i386-mingw32/lib/libwsock32.a
+i386-mingw32/lib/libwst.a
+i386-mingw32/lib/mingwm10.dll
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/cc1
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/cc1plus
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/cpp0
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/include/README
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/include/exception
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/include/fixed
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/include/float.h
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/include/iso646.h
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/include/limits.h
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/include/new
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/include/new.h
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/include/proto.h
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/include/stdarg.h
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/include/stdbool.h
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/include/stddef.h
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/include/syslimits.h
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/include/typeinfo
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/include/va-alpha.h
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/include/va-arc.h
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/include/va-c4x.h
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/include/va-clipper.h
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/include/va-h8300.h
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/include/va-i860.h
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/include/va-i960.h
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/include/va-m32r.h
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/include/va-m88k.h
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/include/va-mips.h
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/include/va-mn10200.h
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/include/va-mn10300.h
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/include/va-pa.h
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/include/va-ppc.h
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/include/va-pyr.h
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/include/va-sh.h
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/include/va-sparc.h
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/include/va-spur.h
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/include/va-v850.h
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/include/varargs.h
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/libgcc.a
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/libstdc++.a
+lib/gcc-lib/i386-mingw32/${GCC_VERSION}/specs
+@dirrm bin
+@dirrm i386-mingw32/bin
+@dirrm i386-mingw32/include/g++-3/std
+@dirrm i386-mingw32/include/g++-3
+@dirrm i386-mingw32/include/sys
+@dirrm i386-mingw32/include
+@dirrm i386-mingw32/lib
+@dirrm info
+@dirrm lib/gcc-lib/i386-mingw32/${GCC_VERSION}/include
+@dirrm lib/gcc-lib/i386-mingw32/${GCC_VERSION}
+@dirrm lib/gcc-lib/i386-mingw32
+@dirrm lib/gcc-lib
+@dirrm lib
+@dirrm man/man1
+@dirrm man
diff --git a/cross/i386-mingw32/distinfo b/cross/i386-mingw32/distinfo
new file mode 100644
index 00000000000..75c05feb305
--- /dev/null
+++ b/cross/i386-mingw32/distinfo
@@ -0,0 +1,10 @@
+$NetBSD: distinfo,v 1.1 2002/01/22 12:16:20 kent Exp $
+
+SHA1 (binutils-2.11.92-20011113-src.tar.gz) = 3286f3f239fa3e3565225ca6d3a875dbecfbc542
+Size (binutils-2.11.92-20011113-src.tar.gz) = 10310634 bytes
+SHA1 (gcc-2.95.3-20011106-src.tar.gz) = 04def41a5c6d7cce6e2330d8de7e6ab82ca4b53a
+Size (gcc-2.95.3-20011106-src.tar.gz) = 11564449 bytes
+SHA1 (mingw-runtime-1.2-src.tar.gz) = 6a1b3937ce2f85e37d8ce5e3b0a411b884d9521d
+Size (mingw-runtime-1.2-src.tar.gz) = 136354 bytes
+SHA1 (w32api-1.2-src.tar.gz) = 4862ee2372ea962651a315eba836c2e04cd1fa4c
+Size (w32api-1.2-src.tar.gz) = 493336 bytes
diff --git a/cross/i386-mingw32/files/config.h b/cross/i386-mingw32/files/config.h
new file mode 100644
index 00000000000..d4fc6e19606
--- /dev/null
+++ b/cross/i386-mingw32/files/config.h
@@ -0,0 +1,39 @@
+/* $NetBSD: config.h,v 1.1 2002/01/22 12:16:21 kent Exp $ */
+#define HAVE_ALLOCA 1
+#define pid_t int
+#define STDC_HEADERS 1
+#define HAVE_SYS_ERRLIST 1
+#define HAVE_SYS_NERR 1
+#define HAVE_STRERROR 1
+#define HAVE_ATEXIT 1
+#define HAVE_CALLOC 1
+#define HAVE_CLOCK 1
+#define HAVE_GETCWD 1
+#define HAVE_MEMCHR 1
+#define HAVE_MEMCMP 1
+#define HAVE_MEMCPY 1
+#define HAVE_MEMMOVE 1
+#define HAVE_MEMSET 1
+#define HAVE_PUTENV 1
+#define HAVE_RENAME 1
+#define HAVE_STRCASECMP 1
+#define HAVE_STRCHR 1
+#define HAVE_STRDUP 1
+#define HAVE_STRERROR 1
+#define HAVE_STRNCASECMP 1
+#define HAVE_STRRCHR 1
+#define HAVE_STRSTR 1
+#define HAVE_STRTOD 1
+#define HAVE_STRTOL 1
+#define HAVE_STRTOUL 1
+#define HAVE_TMPNAM 1
+#define HAVE_VFPRINTF 1
+#define HAVE_VPRINTF 1
+#define HAVE_VSPRINTF 1
+#define HAVE_STDLIB_H 1
+#define HAVE_STRING_H 1
+#define HAVE_STRINGS_H 1
+#define HAVE_SYS_FILE_H 1
+#define HAVE_SYS_STAT_H 1
+#define HAVE_SYS_TIME_H 1
+#define HAVE_UNISTD_H 1