summaryrefslogtreecommitdiff
path: root/cross
diff options
context:
space:
mode:
authorasau <asau@pkgsrc.org>2011-03-31 20:56:28 +0000
committerasau <asau@pkgsrc.org>2011-03-31 20:56:28 +0000
commitb2af7e6a631dea7a3a55d9c4bec9c0b755810faf (patch)
treed337c5f8e6c3a9eb9861dec92efc86429cf5daf4 /cross
parentc7ac5fd5310acea83779f4fbc7cd364424e39610 (diff)
downloadpkgsrc-b2af7e6a631dea7a3a55d9c4bec9c0b755810faf.tar.gz
Support staged installation.
Diffstat (limited to 'cross')
-rw-r--r--cross/mingw-gcc/Makefile23
1 files changed, 14 insertions, 9 deletions
diff --git a/cross/mingw-gcc/Makefile b/cross/mingw-gcc/Makefile
index f083144972a..aecdd6db32d 100644
--- a/cross/mingw-gcc/Makefile
+++ b/cross/mingw-gcc/Makefile
@@ -1,9 +1,8 @@
-# $NetBSD: Makefile,v 1.1.1.1 2010/03/15 18:34:37 asau Exp $
+# $NetBSD: Makefile,v 1.2 2011/03/31 20:56:28 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 \
@@ -14,11 +13,15 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://mingw.sourceforge.net/
COMMENT= GNU C Compiler for win32 cross-development
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_TOOLS+= gmake
USE_PKGLOCALEDIR= yes
GNU_CONFIGURE= yes
USE_CROSSBASE= yes
+WRKSRC= ${WRKDIR}/gcc-${DIST_VERSION}
+
GCC_VERSION= 3.4.5
DIST_VERSION= ${GCC_VERSION}-20060117-2
@@ -30,15 +33,17 @@ do-build:
all-target-libstdc++-v3
post-install:
- cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} \
+ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${INSTALL_ENV} ${GMAKE} \
${MAKE_FLAGS} install-target-libobjc
- cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} \
+ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${INSTALL_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
+ ${INSTALL_PROGRAM_DIR} ${DESTDIR}${CROSSBASE}/${MINGW_TARGET}/bin
+ cd ${DESTDIR}${CROSSBASE}/bin && ${LN} -fs ${MINGW_TARGET}-gcc ${MINGW_TARGET}-cc
+ cd ${DESTDIR}${CROSSBASE} && ${LN} -fs bin/${MINGW_TARGET}-cpp ${MINGW_TARGET}/bin/cpp
+ cd ${DESTDIR}${CROSSBASE} && ${LN} -fs bin/${MINGW_TARGET}-cc ${MINGW_TARGET}/bin/cc
+ cd ${DESTDIR}${CROSSBASE} && ${LN} -fs bin/${MINGW_TARGET}-gcc ${MINGW_TARGET}/bin/gcc
+ cd ${DESTDIR}${CROSSBASE} && ${LN} -fs bin/${MINGW_TARGET}-c++ ${MINGW_TARGET}/bin/c++
+ cd ${DESTDIR}${CROSSBASE} && ${LN} -fs bin/${MINGW_TARGET}-g++ ${MINGW_TARGET}/bin/g++
.include "../../cross/mingw/Makefile.common"
.include "../../cross/mingw-binutils/buildlink3.mk"