From cecbe172238000e7fba61a87a6b04597ba01b27b Mon Sep 17 00:00:00 2001 From: danoloan10 Date: Mon, 25 Dec 2023 13:48:18 +0100 Subject: [PATCH] wt: add build options and their dependencies Fixes https://github.com/epoupon/lms/issues/384 --- srcpkgs/wt/template | 41 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/srcpkgs/wt/template b/srcpkgs/wt/template index d825acae8889b..c48c3ab0d9535 100644 --- a/srcpkgs/wt/template +++ b/srcpkgs/wt/template @@ -3,7 +3,20 @@ pkgname=wt version=4.10.0 revision=2 build_style=cmake -makedepends="boost-devel" +configure_args="$(vopt_bool examples BUILD_EXAMPLES) $(vopt_bool examples INSTALL_EXAMPLES) + $(vopt_bool docs INSTALL_DOCUMENTATION) $(vopt_bool resources INSTALL_RESOURCES) + $(vopt_bool ssl ENABLE_SSL) $(vopt_bool haru ENABLE_HARU) $(vopt_bool pango ENABLE_PANGO) + $(vopt_bool sqlite ENABLE_SQLITE) $(vopt_bool postgres ENABLE_POSTGRES) + $(vopt_bool firebird ENABLE_FIREBIRD) $(vopt_bool mysql ENABLE_MYSQL) + $(vopt_bool mssqlserver ENABLE_MSSQLSERVER) $(vopt_bool qt4 ENABLE_QT4) $(vopt_bool qt5 ENABLE_QT5) + $(vopt_bool saml ENABLE_SAML) $(vopt_bool libwttest ENABLE_LIBWTTEST) $(vopt_bool libtdbo ENABLE_LIBTDBO) + $(vopt_bool no_std_locale WT_NO_STD_LOCALE) $(vopt_bool no_std_wstring WT_NO_STD_WSTRING) + $(vopt_bool opengl ENABLE_OPENGL) $(vopt_bool unwind ENABLE_UNWIND)" +makedepends="boost-devel + $(vopt_if ssl openssl-devel) $(vopt_if haru Haru-devel) $(vopt_if pango pango-devel) $(vopt_if sqlite sqlite-devel) + $(vopt_if postgres postgresql-libs-devel) $(vopt_if firebird firebird3) $(vopt_if mysql libmysqlclient-devel) + $(vopt_if mssqlserver unixodbc-devel) $(vopt_if qt4 qt-devel) $(vopt_if qt5 qt5-devel) + $(vopt_if opengl libfreeglut-devel) $(vopt_if backtrace libunwind-devel)" short_desc="Wt, C++ Web Toolkit" maintainer="danoloan10 " license="GPL-2.0-or-later" @@ -12,6 +25,32 @@ changelog="https://webtoolkit.eu/wt/doc/reference/html/Releasenotes.html" distfiles="https://github.com/emweb/wt/archive/refs/tags/${version}.tar.gz" checksum=7090023d4fc4b6594bf4cb11072d9d3d775269327aece9a8993c7bbe46decb9d +build_options="docs examples resources ssl haru pango sqlite postgres firebird mysql mssqlserver qt4 qt5 saml libwttest libtdbo no_std_locale no_std_wstring opengl backtrace" +build_options_default="resources ssl haru pango sqlite postgres mysql mssqlserver qt5 libwttest libtdbo opengl" +vopt_conflict qt4 qt5 +desc_option_docs="Install documentation (tutorials and reference)" +desc_option_examples="Build and install examples (binaries and source)" +desc_option_resources="Install resources directory" +desc_option_ssl="Enable cryptography functions, using OpenSSL" +desc_option_haru="Enable Haru Free PDF Library, which is used to provide support for painting to PDF (WPdfImage)" +desc_option_pango="Enable Pango Library, which is used for improved font support (WPdfImage and WRasterImage)" +desc_option_sqlite="Build SQLite3 backend for Wt::Dbo" +desc_option_postgres="Build PostgreSQL backend for Wt::Dbo" +desc_option_firebird="Build FirebirdSQL backend for Wt::Dbo" +desc_option_mysql="Build mariadb/mysql backend for Wt::Dbo" +desc_option_mssqlserver="Build Microsoft SQL Server backend for Wt::Dbo" +desc_option_qt4="Build Qt4 interworking library (libwtwithqt)" +desc_option_qt5="Build Qt5 interworking library (libwtwithqt5)" +desc_option_saml="Build built-in SAML service provider for Wt::Auth" +desc_option_no_std_locale="Build Wt to run on a system without std::locale support" +desc_option_no_std_wstring="Build Wt to run on a system without std::wstring support" +desc_option_libwttest="Build Wt::Test" +desc_option_libtdbo="Build Wt::Dbo" + +if [ -n "$CROSS_BUILD" ]; then + build_options_default+=" firebird" +fi + wt-devel_package() { depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - development files"