Skip to content

Commit

Permalink
wt: add build options and their dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Danoloan10 committed Dec 25, 2023
1 parent 9cd6233 commit 522d228
Showing 1 changed file with 37 additions and 2 deletions.
39 changes: 37 additions & 2 deletions srcpkgs/wt/template
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
# Template file for 'wt'
pkgname=wt
version=4.10.3
revision=1
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 <danoloan10@tutanota.com>"
license="GPL-2.0-or-later"
Expand All @@ -12,6 +25,28 @@ changelog="https://webtoolkit.eu/wt/doc/reference/html/Releasenotes.html"
distfiles="https://github.com/emweb/wt/archive/refs/tags/${version}.tar.gz"
checksum=33f563d5eb79377f42c0955095545f36db6c9ad5528ed686d3f32a6b8c166204

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 firebird 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"

wt-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
Expand Down

0 comments on commit 522d228

Please sign in to comment.