blob: 6032f133e56c31ded9f388ea0768242d013dda54 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
VERSION="1.37.28"
DESCRIPTION="LLVM with the emscripten fastcomp javascript backend."
SOURCE_URI="
git://github.com/kripken/${NAME}.git?${VERSION}&archive=${NAME}-${VERSION}.${ARCHIVE_FORMAT}
git://github.com/kripken/${NAME}-clang.git?${VERSION}&archive=${NAME}-clang-${VERSION}.${ARCHIVE_FORMAT}
"
pkg_prep()
{
mv "${W}/${NAME}-clang-${VERSION}" "${S}/tools/clang"
}
pkg_compile() {
mkdir "${S}/build"
cd "${S}/build"
cmake -G "Unix Makefiles" \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_TARGETS_TO_BUILD="X86;JSBackend" \
-DLLVM_INCLUDE_EXAMPLES=OFF \
-DLLVM_INCLUDE_TESTS=OFF \
-DCLANG_INCLUDE_TESTS=OFF \
-DCMAKE_INSTALL_PREFIX="${SYSROOT}/${TOOLDIR}" \
"${S}"
make "${MAKE_OPTS}"
make DESTDIR="${D}" install
toolchain_fixup "${D}"
}
# vim: syntax=sh
|