freebsd-ports/devel/zpu-gcc/Makefile
Diane Bruce 4f83f02d84 - remove INFO from pkg-plist and use INFO in Makefile
- add LICENSE
- correct tab to space in pkg-descr
2014-01-10 16:12:13 +00:00

39 lines
1 KiB
Makefile

# $FreeBSD$
PORTNAME= zpu-gcc
PORTVERSION= 1.0
CATEGORIES= devel
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
LICENSE= GPLv2
BUILD_DEPENDS= ${LOCALBASE}/zpu/bin/zpu-elf-as:${PORTSDIR}/devel/zpu-binutils
RUN_DEPENDS:= ${BUILD_DEPENDS}
WRKSRC= ${WRKDIR}/${DISTNAME}/toolchain
USES= gettext gmake
MANDIRS= ${PREFIX}/zpu/man
INFO= zpuc/cpp zpuc/cppinternals zpuc/dir zpuc/gcc zpuc/gccinstal \
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
@${REINPLACE_CMD} -e 's|%%DESTDIR%%|${STAGEDIR}|g' ${WRKSRC}/gcc/Makefile.in
do-install:
cd ${WRKSRC} && ${SH} install.sh
do-build:
cd ${WRKSRC} && ${SH} build.sh
.include <bsd.port.mk>