Changeset View
Changeset View
Standalone View
Standalone View
head/devel/freebsd-gcc6/Makefile
Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Lines | |||||
.endif | .endif | ||||
.if ${ARCH} == "aarch64" | .if ${ARCH} == "aarch64" | ||||
PLIST_SUB+= PLUGINS="@comment plugin does not build" | PLIST_SUB+= PLUGINS="@comment plugin does not build" | ||||
.else | .else | ||||
PLIST_SUB+= PLUGINS="" | PLIST_SUB+= PLUGINS="" | ||||
.endif | .endif | ||||
.if ${TARGETARCH} == "aarch64" | |||||
PLIST_SUB+= ARM="" | |||||
PLIST_SUB+= AARCH64="" | |||||
.else | |||||
PLIST_SUB+= ARM="@comment " | |||||
PLIST_SUB+= AARCH64="@comment " | |||||
.endif | |||||
.if ${TARGETARCH} == "amd64" || ${TARGETARCH} == "i386" | .if ${TARGETARCH} == "amd64" || ${TARGETARCH} == "i386" | ||||
PLIST_SUB+= I386="" \ | PLIST_SUB+= FLOAT_H="@comment " | ||||
FLOAT_H="@comment " | |||||
.else | .else | ||||
PLIST_SUB+= I386="@comment " \ | PLIST_SUB+= FLOAT_H="" | ||||
FLOAT_H="" | |||||
.endif | .endif | ||||
PLIST= ${.CURDIR}/pkg-plist | |||||
.if ${TARGETARCH} == "aarch64" | |||||
PLIST+= ${.CURDIR}/pkg-plist.aarch64 | |||||
.endif | |||||
.if ${TARGETARCH} == "aarch64" || ${TARGETARCH:Marm*} | |||||
PLIST+= ${.CURDIR}/pkg-plist.arm | |||||
.endif | |||||
.if ${TARGETARCH} == "amd64" | .if ${TARGETARCH} == "amd64" | ||||
PLIST_SUB+= AMD64="" | PLIST+= ${.CURDIR}/pkg-plist.amd64 | ||||
.else | |||||
PLIST_SUB+= AMD64="@comment " | |||||
.endif | .endif | ||||
.if ${TARGETARCH} == "amd64" || ${TARGETARCH} == "i386" | |||||
PLIST+= ${.CURDIR}/pkg-plist.i386 | |||||
.endif | |||||
.if ${TARGETARCH:Mmips*} | .if ${TARGETARCH:Mmips*} | ||||
PLIST_SUB+= MIPS="" | PLIST+= ${.CURDIR}/pkg-plist.mips | ||||
.else | |||||
PLIST_SUB+= MIPS="@comment " | |||||
.endif | .endif | ||||
.if ${TARGETARCH:Mpowerpc*} | .if ${TARGETARCH:Mpowerpc*} | ||||
PLIST_SUB+= POWERPC="" | PLIST+= ${.CURDIR}/pkg-plist.powerpc | ||||
.else | |||||
PLIST_SUB+= POWERPC="@comment " | |||||
.endif | .endif | ||||
.if ${TARGETARCH} == "sparc64" | .if ${TARGETARCH} == "sparc64" | ||||
PLIST_SUB+= SPARC64="" | PLIST+= ${.CURDIR}/pkg-plist.sparc64 | ||||
.else | |||||
PLIST_SUB+= SPARC64="@comment " | |||||
.endif | .endif | ||||
post-install: | post-install: | ||||
@${RM} ${STAGEDIR}${PREFIX}/bin/${GCC_TARGET}-${GCC_TARGET}-* | @${RM} ${STAGEDIR}${PREFIX}/bin/${GCC_TARGET}-${GCC_TARGET}-* | ||||
@${RM} ${STAGEDIR}${PREFIX}/share/info/* | @${RM} ${STAGEDIR}${PREFIX}/share/info/* | ||||
@${RM} ${STAGEDIR}${PREFIX}/man/man7/* | @${RM} ${STAGEDIR}${PREFIX}/man/man7/* | ||||
@${RM} -r ${STAGEDIR}${PREFIX}/lib/gcc/${GCC_TARGET}/${PORTVERSION}/include-fixed | @${RM} -r ${STAGEDIR}${PREFIX}/lib/gcc/${GCC_TARGET}/${PORTVERSION}/include-fixed | ||||
.if ${TARGETARCH} == "amd64" || ${TARGETARCH} == "i386" | .if ${TARGETARCH} == "amd64" || ${TARGETARCH} == "i386" | ||||
# Conflicts with sys/x86/include/float.h | # Conflicts with sys/x86/include/float.h | ||||
${RM} ${STAGEDIR}${PREFIX}/lib/gcc/${GCC_TARGET}/${PORTVERSION}/include/float.h | ${RM} ${STAGEDIR}${PREFIX}/lib/gcc/${GCC_TARGET}/${PORTVERSION}/include/float.h | ||||
.endif | .endif | ||||
@${MKDIR} ${STAGEDIR}${PREFIX}/share/toolchains/ | @${MKDIR} ${STAGEDIR}${PREFIX}/share/toolchains/ | ||||
@${INSTALL_DATA} ${WRKDIR}/xtoolchain.mk \ | @${INSTALL_DATA} ${WRKDIR}/xtoolchain.mk \ | ||||
${STAGEDIR}${PREFIX}/share/toolchains/${TARGETARCH}-gcc${SUFFIX}.mk | ${STAGEDIR}${PREFIX}/share/toolchains/${TARGETARCH}-gcc${SUFFIX}.mk | ||||
.include <bsd.port.post.mk> | .include <bsd.port.post.mk> |