c352216c63
Variables TERMUX_PKG_PLATFORM_INDEPENDENT TERMUX_DEBUG TERMUX_PKG_HAS_DEBUG TERMUX_PKG_ESSENTIAL TERMUX_SUBPKG_ESSENTIAL TERMUX_PKG_NO_STATICSPLIT TERMUX_PKG_BUILD_IN_SRC TERMUX_PKG_FORCE_CMAKE TERMUX_PKG_HOSTBUILD should not accept arbitrary values for marking them "enabled". Instead they should accept boolean values which makes them easier to handle and also makes their meaning clear. build-package.sh should make decision based on variable's value but not on whether it is set or empty. %ci:no-build
31 lines
992 B
Bash
31 lines
992 B
Bash
TERMUX_PKG_HOMEPAGE=https://lldb.llvm.org
|
|
TERMUX_PKG_DESCRIPTION="LLVM based debugger"
|
|
TERMUX_PKG_LICENSE="NCSA"
|
|
TERMUX_PKG_VERSION=8.0.0
|
|
TERMUX_PKG_REVISION=2
|
|
TERMUX_PKG_SRCURL=https://releases.llvm.org/${TERMUX_PKG_VERSION}/lldb-$TERMUX_PKG_VERSION.src.tar.xz
|
|
TERMUX_PKG_SHA256=49918b9f09816554a20ac44c5f85a32dc0a7a00759b3259e78064d674eac0373
|
|
TERMUX_PKG_DEPENDS="libc++, libedit, libllvm, libxml2, ncurses-ui-libs"
|
|
TERMUX_PKG_BREAKS="lldb-dev"
|
|
TERMUX_PKG_REPLACES="lldb-dev"
|
|
TERMUX_PKG_HAS_DEBUG=false
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
-DLLDB_DISABLE_CURSES=0
|
|
-DLLDB_DISABLE_LIBEDIT=0
|
|
-DLLDB_DISABLE_PYTHON=1
|
|
-DLLVM_CONFIG=$TERMUX_PREFIX/bin/llvm-config
|
|
-DLLVM_ENABLE_TERMINFO=1
|
|
-DLLVM_LINK_LLVM_DYLIB=ON
|
|
"
|
|
|
|
# Can't be compiled for x86_64 due to 'llvm-tblgen' error.
|
|
TERMUX_PKG_BLACKLISTED_ARCHES="x86_64"
|
|
|
|
termux_step_pre_configure() {
|
|
LDFLAGS+=" -Wl,--exclude-libs=libLLVMSupport.a"
|
|
}
|
|
|
|
termux_step_post_make_install() {
|
|
cp $TERMUX_PKG_SRCDIR/docs/lldb.1 $TERMUX_PREFIX/share/man/man1
|
|
}
|