# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=wxwidgets
pkgver=3.1.4
pkgrel=0
pkgdesc="C++ library for creating applications"
url="https://www.wxwidgets.org/"
arch="all"
options="!check"  # Test suite requires X11.  Passes on gwyn except wxHTML.
license="LGPL-2.1-only WITH wx-exception"
depends=""
checkdepends="adwaita-icon-theme ttf-liberation"
makedepends="glu-dev gstreamer-dev gst-plugins-base-dev gtk+3.0-dev
	libexecinfo-dev libjpeg-turbo-dev libnotify-dev libsecret-dev libsm-dev
	mesa-dev tiff-dev zlib-dev"
subpackages="$pkgname-dev $pkgname-lang"
source="https://github.com/wxWidgets/wxWidgets/releases/download/v$pkgver/wxWidgets-$pkgver.tar.bz2"
builddir="$srcdir/wxWidgets-$pkgver"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-xlocale
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="aabb257fa222eb819f1e16086977b0ecfd3eb3406d695e0e642ffdb8b4dc586a9721404916be4756a2d92a1a8dc41b661b54717a64e03850a8a92d32d45ece14  wxWidgets-3.1.4.tar.bz2"