620968a43a
Search criteria used: - 11.4 - OSREL* - OSVER* - *_FreeBSD_11 Input from: - adridg: devel/qca-legacy - jbeich: _WITH_DPRINTF, _WITH_GETLINE, GNU bfd workarounds - sunpoet: security/p5-*OpenSSL* Reviewed by: doceng, kde, multimedia, perl, python, ruby, rust Differential Revision: https://reviews.freebsd.org/D32008 Test Plan: make index
42 lines
1.2 KiB
Makefile
42 lines
1.2 KiB
Makefile
PORTNAME= zpu-gcc
|
|
PORTVERSION= 1.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel
|
|
MASTER_SITES= LOCAL/db
|
|
DISTNAME= zpu-toolchain-${PORTVERSION}
|
|
|
|
MAINTAINER= db@FreeBSD.org
|
|
COMMENT= ZPU gcc compiler
|
|
|
|
LICENSE= GPLv2
|
|
|
|
BROKEN_FreeBSD_12_powerpc64= fails to compile on powerpc64 elfv1: libgcc2.h: conflicting types for '__structdi3'
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/zpu/bin/zpu-elf-as:devel/zpu-binutils
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/toolchain
|
|
USES= gettext gmake makeinfo
|
|
MANDIRS= ${PREFIX}/zpu/man
|
|
INFO= zpuc/cpp zpuc/cppinternals zpuc/gcc zpuc/gccinstall \
|
|
zpuc/gccint
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|%%CC%%|${CC}|' ${WRKSRC}/build.sh
|
|
${CP} ${FILESDIR}/install.sh ${WRKSRC}
|
|
@${REINPLACE_CMD} -e 's|%%MAKE_CMD%%|${MAKE_CMD}|' ${WRKSRC}/build.sh \
|
|
${WRKSRC}/install.sh
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/build.sh
|
|
@${REINPLACE_CMD} -e 's|%%DESTDIR%%|${STAGEDIR}|g' ${WRKSRC}/gcc/Makefile.in
|
|
|
|
do-install:
|
|
cd ${WRKSRC} && ${SH} install.sh
|
|
|
|
post-stage:
|
|
@${RM} ${STAGEDIR}${PREFIX}/zpu/lib/libiberty.a
|
|
@${RMDIR} ${STAGEDIR}${PREFIX}/zpu/include
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && ${SETENV} CONFIG_SITE=${CONFIG_SITE} ${SH} build.sh
|
|
|
|
.include <bsd.port.mk>
|