diff options
author | asau <asau@pkgsrc.org> | 2009-11-07 18:03:55 +0000 |
---|---|---|
committer | asau <asau@pkgsrc.org> | 2009-11-07 18:03:55 +0000 |
commit | 5772ed628b179b9ce20535f18b3269f11462f559 (patch) | |
tree | a08bdc7a561401fd17333f10ee792a2faf4e0df9 /lang | |
parent | 572562b57d5d2a4033c0ace51efecf5af1dd59e1 (diff) | |
download | pkgsrc-5772ed628b179b9ce20535f18b3269f11462f559.tar.gz |
Support DESTDIR.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/gcc3-f77/Makefile | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lang/gcc3-f77/Makefile b/lang/gcc3-f77/Makefile index 9f2f9872972..da9ddbf8c97 100644 --- a/lang/gcc3-f77/Makefile +++ b/lang/gcc3-f77/Makefile @@ -1,8 +1,10 @@ -# $NetBSD: Makefile,v 1.19 2006/12/07 11:24:28 markd Exp $ +# $NetBSD: Makefile,v 1.20 2009/11/07 18:03:55 asau Exp $ PKGNAME= gcc3${GCC3_PKGMODIF}-f77-${GCC_VERSION} COMMENT= GNU Compiler Collection, v3 - F77 compiler +PKG_DESTDIR_SUPPORT= user-destdir + INFO_FILES= # PLIST INSTLIBS= libf2c/libg2c.la @@ -24,15 +26,16 @@ post-build: @${SED} ${FILES_SUBST_SED} ${FILESDIR}/gcc3.mk > ${WRKDIR}/gcc3.mk do-install: - ${INSTALL_PROGRAM_DIR} ${GCC_ARCHDIR} - ${INSTALL_PROGRAM} ${WRKSRC}/gcc/f771 ${GCC_ARCHDIR} - cd ${WRKSRC}/gcc && ${SETENV} ${MAKE_ENV} ${GMAKE} \ + ${INSTALL_PROGRAM_DIR} ${DESTDIR}${GCC_ARCHDIR} + ${INSTALL_PROGRAM} ${WRKSRC}/gcc/f771 ${DESTDIR}${GCC_ARCHDIR} + cd ${WRKSRC}/gcc && ${SETENV} ${MAKE_ENV} ${GMAKE} DESTDIR=${DESTDIR} \ f77.install-common f77.install-info f77.install-man - cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} \ + cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} DESTDIR=${DESTDIR} \ install-target-libf2c post-install: - ${INSTALL_DATA} ${WRKDIR}/gcc3.mk ${GCC_PREFIX}/mk/f77.mk + ${INSTALL_DATA_DIR} ${DESTDIR}${GCC_PREFIX}/mk + ${INSTALL_DATA} ${WRKDIR}/gcc3.mk ${DESTDIR}${GCC_PREFIX}/mk/f77.mk # ${LN} -f ${GCC_PREFIX}/bin/g77 ${GCC_PREFIX}/bin/f77 .include "../../mk/bsd.pkg.mk" |