Changeset View
Changeset View
Standalone View
Standalone View
head/devel/cloudabi-libunwind/Makefile
# Created by: Ed Schouten <ed@FreeBSD.org> | # Created by: Ed Schouten <ed@FreeBSD.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= libunwind | PORTNAME= libunwind | ||||
PORTVERSION= 0.242897 | |||||
CATEGORIES= devel | CATEGORIES= devel | ||||
MASTER_SITES= https://nuxi.nl/distfiles/libc++abi/:libcxxabi \ | DISTFILES= libcxxabi-${DISTVERSION}.src${EXTRACT_SUFX} \ | ||||
https://nuxi.nl/distfiles/libunwind/:libunwind | libunwind-${DISTVERSION}.src${EXTRACT_SUFX} | ||||
PKGNAMEPREFIX= cloudabi- | |||||
DISTFILES= libc++abi-${PORTVERSION}${EXTRACT_SUFX}:libcxxabi \ | |||||
libunwind-${PORTVERSION}${EXTRACT_SUFX}:libunwind | |||||
MAINTAINER= ed@FreeBSD.org | MAINTAINER= ed@FreeBSD.org | ||||
COMMENT= C++ standard library support for CloudABI | COMMENT= C++ exception handling for CloudABI | ||||
LICENSE= MIT | LICENSE= MIT | ||||
BUILD_DEPENDS= x86_64-unknown-cloudabi-ar:${PORTSDIR}/devel/cloudabi-binutils \ | BUILD_DEPENDS= ${LOCALBASE}/x86_64-unknown-cloudabi/lib/libc++.a:${PORTSDIR}/devel/cloudabi-libc++ | ||||
x86_64-unknown-cloudabi-c++:${PORTSDIR}/lang/cloudabi-clang \ | |||||
${LOCALBASE}/x86_64-unknown-cloudabi/lib/libc.a:${PORTSDIR}/devel/cloudabi-cloudlibc \ | |||||
${LOCALBASE}/x86_64-unknown-cloudabi/lib/libc++.a:${PORTSDIR}/devel/cloudabi-libc++ | |||||
USES= tar:xz | |||||
PLIST_FILES= x86_64-unknown-cloudabi/lib/libunwind.a | PLIST_FILES= x86_64-unknown-cloudabi/lib/libunwind.a | ||||
SRCFILES= Unwind-EHABI.cpp Unwind-sjlj.c UnwindLevel1-gcc-ext.c \ | SRCFILES= Unwind-EHABI.cpp Unwind-sjlj.c UnwindLevel1-gcc-ext.c \ | ||||
UnwindLevel1.c UnwindRegistersRestore.S UnwindRegistersSave.S \ | UnwindLevel1.c UnwindRegistersRestore.S UnwindRegistersSave.S \ | ||||
libunwind.cpp | libunwind.cpp | ||||
do-build: | do-build: | ||||
.for f in ${SRCFILES} | .for f in ${SRCFILES} | ||||
${LOCALBASE}/bin/x86_64-unknown-cloudabi-c++ \ | ${LOCALBASE}/bin/x86_64-unknown-cloudabi-c++ \ | ||||
-O2 -std=c++11 -I${WRKSRC}/include \ | -O2 -std=c++11 -I${WRKSRC}/include \ | ||||
-I${WRKDIR}/libc++abi-${PORTVERSION}/include \ | -I${WRKDIR}/libcxxabi-${DISTVERSION}.src/include \ | ||||
-c -o ${WRKSRC}/$f.o ${WRKSRC}/src/$f | -c -o ${WRKSRC}/$f.o ${WRKSRC}/src/$f | ||||
.endfor | .endfor | ||||
cd ${WRKSRC}; ${LOCALBASE}/bin/x86_64-unknown-cloudabi-ar -rcs \ | cd ${WRKSRC}; ${LOCALBASE}/bin/x86_64-unknown-cloudabi-ar -rcs \ | ||||
libunwind.a ${SRCFILES:S/$/.o/} | libunwind.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}/libunwind.a \ | ${INSTALL_DATA} ${WRKSRC}/libunwind.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> |