void-packages/srcpkgs/codelite/template
2021-05-18 03:16:32 +02:00

38 lines
1.3 KiB
Bash

# Template file for 'codelite'
pkgname=codelite
version=13.0
revision=5
archs="i686* x86_64* ppc64le*"
build_style=cmake
build_helper=cmake-wxWidgets-gtk3
configure_args="-DWITH_PCH=0
$(vopt_if sftp -DENABLE_SFTP=1)
$(vopt_if lldb -DENABLE_LLDB=1)"
hostmakedepends="pkg-config clang which"
makedepends="gtk+3-devel wxWidgets-gtk3-devel sqlite-devel
$(vopt_if lldb lldb-devel) $(vopt_if hunspell hunspell-devel)
$(vopt_if mysql libmariadbclient-devel) $(vopt_if sftp libssh-devel)"
short_desc="Open-source, cross platform IDE for the C/C++ programming languages"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://www.codelite.org"
distfiles="https://github.com/eranif/${pkgname}/archive/${version}.tar.gz"
checksum=f2653fa42d6214999718236998cb223e6de00a498c0cfde795e901be693fb9ac
nocross=yes
python_version=2 #unverified
build_options="hunspell lldb mysql sftp"
build_options_default="hunspell sftp"
desc_option_hunspell="Enable SpellCheck plugin"
desc_option_lldb="Enable support for LLDB"
desc_option_mysql="Enable mysql/mariadb support"
desc_option_sftp="Enable Workspace Mirroring plugin"
case "$XBPS_TARGET_MACHINE" in
x86_64*|ppc64le*) build_options_default+=" lldb";;
esac
pre_configure() {
sed -i -e 's,wx-config,&-gtk3,g' \
CMakeLists.txt
}