blob: b4cd7576620b2d2259af998d4a4f7b425d03bd8f (
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
38
39
40
41
42
43
44
45
46
47
|
# $NetBSD: Makefile,v 1.25 2009/06/14 22:58:01 joerg Exp $
PKGNAME= gcc3${GCC3_PKGMODIF}-c-${GCC_VERSION}
PKGREVISION= 1
COMMENT= GNU Compiler Collection, v3 - C compiler
PKG_DESTDIR_SUPPORT= user-destdir
INFO_FILES= yes
.include "../../lang/gcc3/Makefile.common"
# The "gcc" frontend knows all languages (by patch)
CONFIGURE_ARGS+= --enable-languages=c
MAKE_ENV+= ALL_GCC=${ALL_GCC:Q}
MAKE_ENV+= ALL_GCC_C=${ALL_GCC_C:Q}
MAKE_ENV+= ALL_GCC_CCC=${ALL_GCCXX_C:Q}
.include "../../mk/compiler.mk"
.if empty(CC_VERSION:Mgcc-*)
BUILD_TARGET= bootstrap
.endif
post-build:
${SED} ${FILES_SUBST_SED} ${FILESDIR}/gcc3.mk > ${WRKDIR}/gcc3.mk
GENERATE_PLIST+= \
${FIND} ${DESTDIR:Q}${GCC_PREFIX} \( -type f -o -type l \) -print \
| ${SORT} | ${SED} -e "s,${DESTDIR}${PREFIX}/,,g"
post-install:
.if ${OPSYS} == "SunOS"
cd ${DESTDIR:Q}${GCC_ARCHDIR}/include && ${RM} -f fixed
.if exists(${DESTDIR}${GCC_ARCHDIR}/include/v7)
${RMDIR} ${DESTDIR:Q}${GCC_ARCHDIR}/include/v7
.endif
.if exists(${DESTDIR}${GCC_ARCHDIR}/include/v9)
${RMDIR} ${DESTDIR:Q}${GCC_ARCHDIR}/include/v9
.endif
.endif
${INSTALL_DATA_DIR} ${DESTDIR:Q}${GCC_PREFIX}/mk
${INSTALL_DATA} ${WRKDIR}/gcc3.mk ${DESTDIR:Q}${GCC_PREFIX}/mk/c.mk
${LN} -f ${DESTDIR:Q}${GCC_PREFIX}/bin/gcc ${DESTDIR:Q}${GCC_PREFIX}/bin/cc
.include "../../mk/bsd.pkg.mk"
|