# Template file for 'wxWidgets'
pkgname="wxWidgets"
version="2.8.12"
revision=4
build_style=gnu-configure
short_desc="Cross-Platform GUI Library"
maintainer="Martin Riese <grauehaare@gmx.de>"
license="wxWindows Library Licence"
homepage="http://www.wxwidgets.org/"
hostmakedepends="pkg-config"
makedepends="gtk+-devel libjpeg-turbo-devel tiff-devel libSM-devel libXinerama-devel libmspack-devel SDL-devel glu-devel"
distfiles="${SOURCEFORGE_SITE}/wxwindows/${version}/${pkgname}-${version}.tar.bz2"
checksum="3b0ac1d2d017683851841501c8e1b744b97242d684a1668ded61809b0504f707"
configure_args="--enable-unicode --with-opengl --with-sdl"

wxWidgets-devel_package() {
	conflicts="wxGTK-devel>=0"
	depends="${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.so"
		vmove usr/share
		vmove usr/bin
		vmove usr/lib/wx
	}
}
