From 922cda6f5a321fc2e46b5c4e329068382f2db3da Mon Sep 17 00:00:00 2001 From: asau Date: Mon, 15 Mar 2010 18:34:36 +0000 Subject: 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. --- cross/mingw-binutils/DESCR | 3 + cross/mingw-binutils/Makefile | 30 ++++++++ cross/mingw-binutils/PLIST | 126 ++++++++++++++++++++++++++++++++++ cross/mingw-binutils/buildlink3.mk | 12 ++++ cross/mingw-binutils/distinfo | 6 ++ cross/mingw-binutils/patches/patch-aa | 13 ++++ 6 files changed, 190 insertions(+) create mode 100644 cross/mingw-binutils/DESCR create mode 100644 cross/mingw-binutils/Makefile create mode 100644 cross/mingw-binutils/PLIST create mode 100644 cross/mingw-binutils/buildlink3.mk create mode 100644 cross/mingw-binutils/distinfo create mode 100644 cross/mingw-binutils/patches/patch-aa (limited to 'cross/mingw-binutils') 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 + } -- cgit v1.2.3