Changeset View
Changeset View
Standalone View
Standalone View
devel/cloudabi-compiler-rt/Makefile
# Created by: Ed Schouten <ed@FreeBSD.org> | # Created by: Ed Schouten <ed@FreeBSD.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= compiler-rt | PORTNAME= compiler-rt | ||||
DISTVERSION= 0.242897 | |||||
CATEGORIES= devel | CATEGORIES= devel | ||||
MASTER_SITES= https://nuxi.nl/distfiles/compiler-rt/ | |||||
PKGNAMEPREFIX= cloudabi- | |||||
MAINTAINER= ed@FreeBSD.org | MAINTAINER= ed@FreeBSD.org | ||||
COMMENT= Compiler runtime library for CloudABI | COMMENT= Compiler runtime library for CloudABI | ||||
LICENSE= MIT | LICENSE= MIT | ||||
BUILD_DEPENDS= x86_64-unknown-cloudabi-ar:${PORTSDIR}/devel/cloudabi-binutils \ | |||||
x86_64-unknown-cloudabi-cc:${PORTSDIR}/lang/cloudabi-clang \ | |||||
${LOCALBASE}/x86_64-unknown-cloudabi/lib/libc.a:${PORTSDIR}/devel/cloudabi-cloudlibc | |||||
USES= tar:xz | |||||
PLIST_FILES= x86_64-unknown-cloudabi/lib/libcompiler_rt.a | PLIST_FILES= x86_64-unknown-cloudabi/lib/libcompiler_rt.a | ||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/lib/builtins | WRKSRC= ${WRKDIR}/${DISTNAME}/lib/builtins | ||||
# Do not use the CMake build rules provided by compiler-rt. The CMake build | # Do not use the CMake build rules provided by compiler-rt. The CMake build | ||||
# rules shipped with compiler-rt depend both on a standard C++ library and a | # rules shipped with compiler-rt depend both on a standard C++ library and a | ||||
# compiler that can generate working executables. In our case we are not | # compiler that can generate working executables. In our case we are not | ||||
# capable of generating executables, for the reason that we need an installed | # capable of generating executables, for the reason that we need an installed | ||||
# copy of compiler-rt. | # copy of compiler-rt. | ||||
# | # | ||||
# Fall back to generating the object files and the library manually. | # Fall back to generating the object files and the library manually. | ||||
Show All 31 Lines | |||||
.endfor | .endfor | ||||
cd ${WRKSRC}; ${LOCALBASE}/bin/x86_64-unknown-cloudabi-ar -rcs \ | cd ${WRKSRC}; ${LOCALBASE}/bin/x86_64-unknown-cloudabi-ar -rcs \ | ||||
libcompiler_rt.a ${SRCFILES:S/$/.o/} | libcompiler_rt.a ${SRCFILES:S/$/.o/} | ||||
do-install: | do-install: | ||||
@${MKDIR} ${STAGEDIR}${PREFIX}/x86_64-unknown-cloudabi/lib/ | @${MKDIR} ${STAGEDIR}${PREFIX}/x86_64-unknown-cloudabi/lib/ | ||||
${INSTALL_DATA} ${WRKSRC}/libcompiler_rt.a \ | ${INSTALL_DATA} ${WRKSRC}/libcompiler_rt.a \ | ||||
${STAGEDIR}${PREFIX}/x86_64-unknown-cloudabi/lib/ | ${STAGEDIR}${PREFIX}/x86_64-unknown-cloudabi/lib/ | ||||
.include "${.CURDIR}/../cloudabi-libc++/Makefile.common" | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |