2018-04-17 00:20:05 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://lldb.llvm.org
|
2018-04-17 00:22:27 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="LLVM based debugger"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="NCSA"
|
2020-07-25 17:09:43 +02:00
|
|
|
TERMUX_PKG_VERSION=10.0.1
|
2020-04-12 09:13:15 +02:00
|
|
|
TERMUX_PKG_SRCURL=(https://github.com/llvm/llvm-project/releases/download/llvmorg-$TERMUX_PKG_VERSION/lldb-$TERMUX_PKG_VERSION.src.tar.xz
|
|
|
|
https://github.com/llvm/llvm-project/releases/download/llvmorg-$TERMUX_PKG_VERSION/llvm-$TERMUX_PKG_VERSION.src.tar.xz)
|
2020-07-25 17:09:43 +02:00
|
|
|
TERMUX_PKG_SHA256=(07abe87c25876aa306e73127330f5f37d270b6b082d50cc679e31b4fc02a3714
|
|
|
|
c5d8e30b57cbded7128d78e5e8dad811bff97a8d471896812f57fa99ee82cdf3)
|
2019-06-19 20:45:54 +02:00
|
|
|
TERMUX_PKG_DEPENDS="libc++, libedit, libllvm, libxml2, ncurses-ui-libs"
|
2019-10-28 11:47:55 +01:00
|
|
|
TERMUX_PKG_BUILD_DEPENDS="libllvm-static"
|
|
|
|
TERMUX_PKG_BREAKS="lldb-dev, lldb-static"
|
|
|
|
TERMUX_PKG_REPLACES="lldb-dev, lldb-static"
|
2020-04-12 09:13:15 +02:00
|
|
|
TERMUX_PKG_HOSTBUILD=true
|
2019-08-12 17:28:41 +02:00
|
|
|
TERMUX_PKG_HAS_DEBUG=false
|
2018-04-17 00:22:27 +02:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
2020-04-12 09:13:15 +02:00
|
|
|
-DLLDB_TABLEGEN=$TERMUX_PKG_HOSTBUILD_DIR/bin/lldb-tblgen
|
|
|
|
-DLLVM_ENABLE_SPHINX=ON
|
2018-04-17 00:22:27 +02:00
|
|
|
-DLLVM_ENABLE_TERMINFO=1
|
2018-05-09 01:34:58 +02:00
|
|
|
-DLLVM_LINK_LLVM_DYLIB=ON
|
2019-10-28 11:47:55 +01:00
|
|
|
-DLLVM_DIR=$TERMUX_PREFIX/lib/cmake/llvm
|
2020-04-12 09:13:15 +02:00
|
|
|
-DLLVM_TABLEGEN=$TERMUX_PKG_HOSTBUILD_DIR/llvm/bin/llvm-tblgen
|
2018-04-17 00:22:27 +02:00
|
|
|
"
|
2020-04-12 09:13:15 +02:00
|
|
|
|
|
|
|
termux_step_host_build() {
|
|
|
|
termux_setup_cmake
|
|
|
|
termux_setup_ninja
|
|
|
|
|
|
|
|
mkdir llvm
|
|
|
|
cd llvm
|
|
|
|
|
|
|
|
cmake -G Ninja $TERMUX_PKG_SRCDIR/llvm-${TERMUX_PKG_VERSION}.src
|
|
|
|
ninja -j $TERMUX_MAKE_PROCESSES llvm-tblgen
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
cmake -G Ninja $TERMUX_PKG_SRCDIR -DLLDB_INCLUDE_TESTS=OFF \
|
|
|
|
-DLLVM_DIR=$TERMUX_PKG_HOSTBUILD_DIR/llvm/lib/cmake/llvm
|
|
|
|
ninja -j $TERMUX_MAKE_PROCESSES lldb-tblgen
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_make() {
|
|
|
|
ninja -w dupbuild=warn -j $TERMUX_MAKE_PROCESSES all docs-lldb-man
|
2018-04-17 00:20:05 +02:00
|
|
|
}
|
2018-04-17 00:22:27 +02:00
|
|
|
|
2018-04-17 00:20:05 +02:00
|
|
|
termux_step_post_make_install() {
|
2020-04-12 09:13:15 +02:00
|
|
|
cp $TERMUX_PKG_BUILDDIR/docs/man/lldb.1 $TERMUX_PREFIX/share/man/man1
|
2018-04-17 00:20:05 +02:00
|
|
|
}
|