a04d9c790c
- Typical usage seems to be experienced engineers who have some very particular requirements that can only be met using the ZPU due to technical or licensing issues. Academic circles have found the ZPU appealing since the actual core is trivial and allows them to focus on some other aspect of research or student exercises. Open source projects and hobbyists also have found use for the ZPU. - Pre-requisite for gnuradio support tools
38 lines
1 KiB
Makefile
38 lines
1 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= zpu-gcc
|
|
PORTVERSION= 1.0
|
|
CATEGORIES= devel
|
|
#MASTER_SITES= http://people.freebsd.org/~db/
|
|
MASTER_SITES= http://opensource.zylin.com/zpudownload.html/
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
MASTER_SITE_SUBDIR= db
|
|
DISTNAME= zpu-toolchain-${PORTVERSION}
|
|
|
|
MAINTAINER= db@freebsd.org
|
|
COMMENT= ZPU gcc compiler
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/zpu/bin/zpu-elf-as:${PORTSDIR}/devel/zpu-binutils
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/toolchain
|
|
USE_GMAKE= yes
|
|
USE_GETTEXT= yes
|
|
MANPREFIX= ${PREFIX}/zpu
|
|
MAN1= zpu-elf-cpp.1 zpu-elf-gcc.1 zpu-elf-gcov.1
|
|
MAN7= fsf-funding.7 gfdl.7 gpl.7
|
|
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/%%GMAKE%%/${GMAKE}/' ${WRKSRC}/build.sh \
|
|
${WRKSRC}/install.sh
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/build.sh
|
|
|
|
do-install:
|
|
cd ${WRKSRC} && ${SH} install.sh
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && ${SH} build.sh
|
|
|
|
.include <bsd.port.mk>
|