Changeset View
Changeset View
Standalone View
Standalone View
head/base/gcc6/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= gcc | PORTNAME= gcc | ||||
PORTVERSION= 6.5.0 | PORTVERSION= 6.5.0 | ||||
PORTREVISION= 1 | |||||
CATEGORIES= base | CATEGORIES= base | ||||
MASTER_SITES= GCC/releases/gcc-${DISTVERSION} \ | MASTER_SITES= GCC/releases/gcc-${DISTVERSION} \ | ||||
http://www.mpfr.org/mpfr-3.1.6/:mpfr \ | http://www.mpfr.org/mpfr-3.1.6/:mpfr \ | ||||
http://www.mpfr.org/mpfr-current/:mpfr \ | http://www.mpfr.org/mpfr-current/:mpfr \ | ||||
GNU/gmp:gmp \ | GNU/gmp:gmp \ | ||||
https://ftp.gnu.org/gnu/mpc/:mpc | https://ftp.gnu.org/gnu/mpc/:mpc | ||||
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \ | DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \ | ||||
mpfr-3.1.6.tar.xz:mpfr \ | mpfr-3.1.6.tar.xz:mpfr \ | ||||
Show All 14 Lines | |||||
PREFIX= /usr | PREFIX= /usr | ||||
.for _tool in CC CXX CPP AS AR LD NM OBJCOPY RANLIB SIZE STRINGS | .for _tool in CC CXX CPP AS AR LD NM OBJCOPY RANLIB SIZE STRINGS | ||||
CONFIGURE_ENV+= ${_tool}_FOR_TARGET="${${_tool}}" | CONFIGURE_ENV+= ${_tool}_FOR_TARGET="${${_tool}}" | ||||
.endfor | .endfor | ||||
USES= gmake libtool tar:xz makeinfo | USES= gmake libtool tar:xz makeinfo | ||||
PLIST_SUB= OPSYS=${OPSYS:tl} \ | PLIST_SUB= OPSYS=${OPSYS:tl} \ | ||||
SUFFIX=${SUFFIX} \ | |||||
GCC_TARGET=${GCC_TARGET} \ | GCC_TARGET=${GCC_TARGET} \ | ||||
GCC_VERSION=${PORTVERSION} | GCC_VERSION=${PORTVERSION} | ||||
GCC_PORTDIR= ${.CURDIR}/../../devel/freebsd-gcc${SUFFIX} | GCC_PORTDIR= ${.CURDIR}/../../devel/freebsd-gcc${SUFFIX} | ||||
EXTRA_PATCHES+= ${GCC_PORTDIR}/files | EXTRA_PATCHES+= ${GCC_PORTDIR}/files | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
CONFIGURE_OUTSOURCE= yes | CONFIGURE_OUTSOURCE= yes | ||||
CONFIGURE_ARGS+= \ | CONFIGURE_ARGS+= \ | ||||
--target=${GCC_TARGET} \ | --target=${GCC_TARGET} \ | ||||
--enable-languages=c,c++ \ | --enable-languages=c,c++ \ | ||||
--enable-gnu-indirect-function \ | --enable-gnu-indirect-function \ | ||||
--disable-nls \ | --disable-nls \ | ||||
--without-headers \ | --without-headers \ | ||||
--with-gxx-include-dir=/usr/include/c++/v1/ \ | --with-gxx-include-dir=/usr/include/c++/v1/ \ | ||||
--with-sysroot="/" \ | |||||
--with-build-sysroot=${CROSS_SYSROOT} \ | --with-build-sysroot=${CROSS_SYSROOT} \ | ||||
-with-pkgversion="GNU Collection for FreeBSD" | -with-pkgversion="GNU Collection for FreeBSD" | ||||
ALL_TARGET?= all-gcc | ALL_TARGET?= all-gcc | ||||
INSTALL_TARGET?= install-gcc | INSTALL_TARGET?= install-gcc | ||||
.include <bsd.port.pre.mk> | .include <bsd.port.pre.mk> | ||||
▲ Show 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | post-install: | ||||
${LN} -f ${STAGEDIR}/usr/bin/gcc ${STAGEDIR}/usr/bin/cc ; \ | ${LN} -f ${STAGEDIR}/usr/bin/gcc ${STAGEDIR}/usr/bin/cc ; \ | ||||
${LN} -sf gcc.1 ${STAGEDIR}/${MANDIR}1/cc.1 | ${LN} -sf gcc.1 ${STAGEDIR}/${MANDIR}1/cc.1 | ||||
${LN} -sf g++.1 ${STAGEDIR}/${MANDIR}1/c++.1 | ${LN} -sf g++.1 ${STAGEDIR}/${MANDIR}1/c++.1 | ||||
${RM} -r ${STAGEDIR}/usr/share/info | ${RM} -r ${STAGEDIR}/usr/share/info | ||||
${RM} -r ${STAGEDIR}/usr/lib/gcc/${GCC_TARGET}/${PORTVERSION}/include-fixed | ${RM} -r ${STAGEDIR}/usr/lib/gcc/${GCC_TARGET}/${PORTVERSION}/include-fixed | ||||
.if ${ARCH} == "amd64" || ${ARCH} == "i386" | .if ${ARCH} == "amd64" || ${ARCH} == "i386" | ||||
${RM} ${STAGEDIR}/usr/lib/gcc/${GCC_TARGET}/${PORTVERSION}/include/float.h | ${RM} ${STAGEDIR}/usr/lib/gcc/${GCC_TARGET}/${PORTVERSION}/include/float.h | ||||
.endif | .endif | ||||
@${MKDIR} ${STAGEDIR}${PREFIX}/share/toolchains | |||||
${INSTALL_DATA} ${FILESDIR}/freebsd-gcc.mk ${STAGEDIR}${PREFIX}/share/toolchains/freebsd-gcc${SUFFIX}.mk | |||||
.include <bsd.port.post.mk> | .include <bsd.port.post.mk> |