pkgsrc/lang/compiler-rt/Makefile
nia 05176ad83c compiler-rt: switch from static PLIST to generated PLIST
the PLIST is target-specific and it's possible that files for multiple
targets are generated (this is the case on NetBSD/amd64). Since the
static PLIST can't support multiple targets currently, switch to a
generated one.
2021-09-19 09:12:46 +00:00

54 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.18 2021/09/19 09:12:46 nia Exp $
.include "../../lang/llvm/version.mk"
DISTNAME= compiler-rt-${LLVM_VERSION}.src
PKGNAME= ${DISTNAME:S/.src//}
CATEGORIES= lang devel
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://compiler-rt.llvm.org/
COMMENT= LLVM runtime libraries
LICENSE= apache-2.0
NOT_FOR_PLATFORM= NetBSD-[0-7].*-*
USE_CMAKE= yes
USE_LANGUAGES= c99 c++11
USE_TOOLS+= ggrep
GCC_REQD+= 4.8
SSP_SUPPORTED= no
CONFIGURE_DIRS= ${WRKDIR}/build
CMAKE_ARG_PATH= ${WRKSRC}
OS_DIR= ${OPSYS:tl}
CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release
CMAKE_ARGS+= -DCMAKE_C_COMPILER=${CC:Q}
CMAKE_ARGS+= -DCMAKE_CXX_COMPILER=${CXX:Q}
CMAKE_ARGS+= -DCOMPILER_RT_TEST_COMPILER=${PKG_CC:Q}
CMAKE_ARGS+= -DCOMPILER_RT_OS_DIR:STRING=${OS_DIR}
CMAKE_ARGS+= -DCOMPILER_RT_INSTALL_PATH:STRING=lib/clang/${PKGVERSION_NOREV}
CMAKE_ARGS+= -DLLVM_CONFIG_PATH=${LLVM_CONFIG_PATH:Q}
CMAKE_ARGS+= -DCOMPILER_RT_ENABLE_IOS=OFF
TEST_TARGET= check-compiler-rt
GENERATE_PLIST+= find ${DESTDIR}${PREFIX} \( -type f -o -type l \) -print | \
sed 's,${DESTDIR}${PREFIX}/,,' | ${SORT} ;
PYTHON_FOR_BUILD_ONLY= yes
post-extract:
${MKDIR} ${WRKDIR}/build
post-install:
cd ${DESTDIR}${PREFIX} && \
${FIND} lib/clang/${PKGVERSION_NOREV} -type f -name '*.dylib' \
-exec install_name_tool -id ${PREFIX}/{} {} \;
.include "../../devel/googletest/buildlink3.mk"
.include "../../lang/llvm/buildlink3.mk"
.include "../../lang/python/tool.mk"
.include "../../mk/bsd.pkg.mk"