termux-packages/packages/lldb/build.sh

30 lines
968 B
Bash
Raw Normal View History

2018-04-17 00:20:05 +02:00
TERMUX_PKG_HOMEPAGE=https://lldb.llvm.org
TERMUX_PKG_DESCRIPTION="LLVM based debugger"
2019-01-21 13:53:58 +01:00
TERMUX_PKG_LICENSE="NCSA"
2019-10-21 03:58:48 +02:00
TERMUX_PKG_VERSION=9.0.0
TERMUX_PKG_SRCURL=https://releases.llvm.org/$TERMUX_PKG_VERSION/lldb-$TERMUX_PKG_VERSION.src.tar.xz
TERMUX_PKG_SHA256=1e4c2f6a1f153f4b8afa2470d2e99dab493034c1ba8b7ffbbd7600de016d0794
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"
2018-04-17 00:20:05 +02:00
termux_step_pre_configure() {
LDFLAGS+=" -Wl,--exclude-libs=libLLVMSupport.a"
2018-04-17 00:20:05 +02:00
}
2018-04-17 00:20:05 +02:00
termux_step_post_make_install() {
cp $TERMUX_PKG_SRCDIR/docs/lldb.1 $TERMUX_PREFIX/share/man/man1
}