60d1a83c2a
- Replace ${MASTER_SITE_FOO} with FOO. - Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9% of the time.) - Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and no hint of what it should be was present. - Fix some logic. - And generally, make things more simple and easy to understand. While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and SAMBA macros. Also, replace some EXTRACT_SUFX occurences with USES=tar:*. Checked by: make fetch-urlall-list With hat: portmgr Sponsored by: Absolight
38 lines
1,022 B
Makefile
38 lines
1,022 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= zpu-gcc
|
|
PORTVERSION= 1.0
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://opensource.zylin.com/zpudownload.html/
|
|
MASTER_SITES= LOCAL/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 makeinfo
|
|
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|%%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
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && ${SH} build.sh
|
|
|
|
.include <bsd.port.mk>
|