Changeset View
Changeset View
Standalone View
Standalone View
devel/arm-none-eabi-gcc492/Makefile
Show All 19 Lines | |||||
BUILD_DEPENDS= ${BU_PREFIX}-as:${PORTSDIR}/devel/${PKGNAMEPREFIX}binutils | BUILD_DEPENDS= ${BU_PREFIX}-as:${PORTSDIR}/devel/${PKGNAMEPREFIX}binutils | ||||
RUN_DEPENDS= ${BU_PREFIX}-as:${PORTSDIR}/devel/${PKGNAMEPREFIX}binutils | RUN_DEPENDS= ${BU_PREFIX}-as:${PORTSDIR}/devel/${PKGNAMEPREFIX}binutils | ||||
USES= compiler gmake iconv libtool makeinfo tar:bzip2 | USES= compiler gmake iconv libtool makeinfo tar:bzip2 | ||||
PLIST_SUB= TARGETARCH=${PKGNAMEPREFIX:C/-//g} \ | PLIST_SUB= TARGETARCH=${PKGNAMEPREFIX:C/-//g} \ | ||||
OPSYS=${OPSYS:tl} \ | OPSYS=${OPSYS:tl} \ | ||||
GCC_TARGET=${GCC_TARGET} | GCC_TARGET=${GCC_TARGET} | ||||
PATCH_WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} | |||||
WRKSRC= ${WRKDIR}/build-gcc | |||||
GCC_TARGET= arm-none-eabi | GCC_TARGET= arm-none-eabi | ||||
BU_PREFIX?= ${GCC_TARGET} | BU_PREFIX?= ${GCC_TARGET} | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
CONFIGURE_OUTSOURCE= yes | |||||
# libstdcxx won't build, but we don't need it or multiple float-abi libs. | # libstdcxx won't build, but we don't need it or multiple float-abi libs. | ||||
CONFIGURE_ARGS= --target=${GCC_TARGET} --disable-nls --enable-languages=c,c++ \ | CONFIGURE_ARGS= --target=${GCC_TARGET} --disable-nls --enable-languages=c,c++ \ | ||||
--without-headers \ | --without-headers \ | ||||
--with-gmp=${LOCALBASE} \ | --with-gmp=${LOCALBASE} \ | ||||
--with-pkgversion="FreeBSD Ports Collection for ${PKGNAMEPREFIX:C/-//g}" \ | --with-pkgversion="FreeBSD Ports Collection for ${PKGNAMEPREFIX:C/-//g}" \ | ||||
--with-system-zlib \ | --with-system-zlib \ | ||||
--with-as=${LOCALBASE}/bin/${BU_PREFIX}-as \ | --with-as=${LOCALBASE}/bin/${BU_PREFIX}-as \ | ||||
--with-ld=${LOCALBASE}/bin/${BU_PREFIX}-ld \ | --with-ld=${LOCALBASE}/bin/${BU_PREFIX}-ld \ | ||||
--disable-libstdcxx \ | --disable-libstdcxx \ | ||||
--disable-multilib | --disable-multilib | ||||
CONFIGURE_SCRIPT= ../${PORTNAME}-${PORTVERSION}/configure | |||||
PLIST= ${.CURDIR}/pkg-plist | PLIST= ${.CURDIR}/pkg-plist | ||||
# U-Boot requires libgcc, crossbuild and install it along with the compiler. | # U-Boot requires libgcc, crossbuild and install it along with the compiler. | ||||
ALL_TARGET= all-gcc all-target-libgcc | ALL_TARGET= all-gcc all-target-libgcc | ||||
INSTALL_TARGET= install-gcc install-target-libgcc | INSTALL_TARGET= install-gcc install-target-libgcc | ||||
.include <bsd.port.pre.mk> | .include <bsd.port.pre.mk> | ||||
CONFIGURE_TARGET= ${ARCH}-portbld-${OPSYS:tl}${OSREL} | CONFIGURE_TARGET= ${ARCH}-portbld-${OPSYS:tl}${OSREL} | ||||
post-extract: | |||||
@${MKDIR} ${WRKSRC} | |||||
post-stage: | post-stage: | ||||
@if [ -f ${STAGEDIR}${PREFIX}/bin/cpp ] ; then \ | @if [ -f ${STAGEDIR}${PREFIX}/bin/cpp ] ; then \ | ||||
${MV} ${STAGEDIR}${PREFIX}/bin/cpp \ | ${MV} ${STAGEDIR}${PREFIX}/bin/cpp \ | ||||
${STAGEDIR}${PREFIX}/bin/${GCC_TARGET}-cpp ; \ | ${STAGEDIR}${PREFIX}/bin/${GCC_TARGET}-cpp ; \ | ||||
fi | fi | ||||
.for f in c++ cpp g++ gcc gcc-ar gcc-nm gcc-ranlib gcov | .for f in c++ cpp g++ gcc gcc-ar gcc-nm gcc-ranlib gcov | ||||
@${RM} ${STAGEDIR}${PREFIX}/bin/$f | @${RM} ${STAGEDIR}${PREFIX}/bin/$f | ||||
Show All 11 Lines |