void-packages/srcpkgs/codelite/template
2020-04-21 18:44:59 -04:00

33 lines
1.2 KiB
Bash

# Template file for 'codelite'
pkgname=codelite
version=13.0
revision=2
build_style=cmake
configure_args="-DWITH_PCH=0
$(vopt_if sftp -DENABLE_SFTP=1)
$(vopt_if lldb -DENABLE_LLDB=1)"
hostmakedepends="pkg-config clang"
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="Andrea Brancaleoni <abc@pompel.me>"
license="GPL-2.0-or-later"
homepage="http://www.codelite.org"
distfiles="https://github.com/eranif/${pkgname}/archive/${version}.tar.gz"
checksum=f2653fa42d6214999718236998cb223e6de00a498c0cfde795e901be693fb9ac
python_version=2 #unverified
archs="i686* x86_64* ppc64le*"
build_options="hunspell lldb mysql sftp"
build_options_default="hunspell lldb 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"
pre_configure() {
sed -i -e 's,wx-config,&-gtk3,g' \
-e "1i\SET(wxWidgets_CONFIG_EXECUTABLE wx-config-gtk3)" \
CMakeLists.txt
}