blob: cc45b9ff94b77bbd33e1c9a59589ea7d89e5b2ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# $NetBSD: Makefile,v 1.20 2008/09/07 05:19:33 dholland Exp $
PKGNAME= gcc3${GCC3_PKGMODIF}-c++-${GCC_VERSION}
COMMENT= GNU Compiler Collection, v3 - C++ compiler
PKG_DESTDIR_SUPPORT= user-destdir
INSTLIBS= libstdc++-v3/libsupc++/libsupc++.la \
libstdc++-v3/src/libstdc++.la
.include "../../lang/gcc3/language.mk"
CONFIGURE_ARGS+= --enable-languages="c++"
MAKE_ENV+= ALL_GCC_CXX=${ALL_GCC_CXX:Q}
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_DIR} ${DESTDIR}${GCC_ARCHDIR}
${INSTALL_PROGRAM} ${WRKSRC}/gcc/cc1plus ${DESTDIR}${GCC_ARCHDIR}
cd ${WRKSRC}/gcc && ${SETENV} ${MAKE_ENV} ${INSTALL_ENV} ${GMAKE} \
c++.install-common c++.install-man
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${INSTALL_ENV} ${GMAKE} \
install-target-libstdc++-v3
post-install:
${INSTALL_DATA_DIR} ${DESTDIR:Q}${GCC_PREFIX}/mk
${INSTALL_DATA} ${WRKDIR}/gcc3.mk ${DESTDIR:Q}${GCC_PREFIX}/mk/c++.mk
.include "../../mk/bsd.pkg.mk"
|