29 lines
885 B
Makefile
29 lines
885 B
Makefile
# $NetBSD: Makefile,v 1.7 2003/08/11 14:16:02 drochner Exp $
|
|
#
|
|
|
|
PKGNAME= gcc3${GCC3_PKGMODIF}-c++-${GCC_VERSION}
|
|
COMMENT= GNU Compiler Collection, version 3, c++ compiler
|
|
|
|
.include "../gcc3-c/buildaddon.mk"
|
|
|
|
CONFIGURE_ARGS+= --enable-languages="c++"
|
|
|
|
do-build:
|
|
(cd ${WRKSRC}/gcc && ${SETENV} ${MAKE_ENV} ${GMAKE} c++)
|
|
(cd ${WRKSRC}/gcc && ${SETENV} ${MAKE_ENV} ${GMAKE} g++)
|
|
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} all-target-libstdc++-v3)
|
|
|
|
post-build:
|
|
@${SED} ${FILES_SUBST_SED} ${FILESDIR}/gcc3.mk > ${WRKDIR}/gcc3.mk
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/gcc/cc1plus ${GCC_ARCHDIR}
|
|
(cd ${WRKSRC}/gcc && ${SETENV} ${MAKE_ENV} ${GMAKE} \
|
|
c++.install-common c++.install-man)
|
|
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} \
|
|
install-target-libstdc++-v3)
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKDIR}/gcc3.mk ${GCC_PREFIX}/mk/c++.mk
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|