# Template file for 'codelite'
pkgname=codelite
version=17.0.0
revision=1
build_style=cmake
build_helper=cmake-wxWidgets-gtk3
configure_args="-DWITH_PCH=0 -DWITH_WX_CONFIG=wx-config-gtk3
 $(vopt_if sftp -DENABLE_SFTP=1 -DENABLE_SFTP=0)"
hostmakedepends="pkg-config which"
makedepends="gtk+3-devel wxWidgets-gtk3-devel sqlite-devel MesaLib-devel
 $(vopt_if hunspell hunspell-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/codelite/releases/download/${version}/codelite-${version}.tar.gz
checksum=c0dfe6df38426d761ef5622b7a9ab91481244a09ad751f5daafa37bb9b611d57
python_version=3

build_options="hunspell sftp"
build_options_default="hunspell sftp"
desc_option_hunspell="Enable SpellCheck plugin"
desc_option_sftp="Enable Workspace Mirroring plugin"

CXXFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
