diff options
author | asau <asau> | 2010-03-15 18:34:36 +0000 |
---|---|---|
committer | asau <asau> | 2010-03-15 18:34:36 +0000 |
commit | 922cda6f5a321fc2e46b5c4e329068382f2db3da (patch) | |
tree | 3456c799619b7e02a77d1a707ab77b24c36a29f9 /cross/mingw/Makefile.common | |
parent | 3bc822944f2a2b3120d1a6173dfc29bae9b40344 (diff) | |
download | pkgsrc-922cda6f5a321fc2e46b5c4e329068382f2db3da.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/mingw/Makefile.common')
-rw-r--r-- | cross/mingw/Makefile.common | 29 |
1 files changed, 29 insertions, 0 deletions
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 |