# Template file for 'gwenhywfar' pkgname=gwenhywfar version=4.18.0 revision=3 _dnrel=206 hostmakedepends="automake pkg-config libgcrypt-devel libtool" makedepends="libgcrypt-devel gnutls-devel gtk+-devel qt-devel qt5-devel" build_style="gnu-configure" configure_args="--enable-visibility --disable-binreloc --with-qt4-includes=${XBPS_CROSS_BASE}/usr/include --with-qt4-libs=${XBPS_CROSS_BASE}/usr/lib --with-qt4-moc=/usr/lib/qt/bin/moc --with-qt4-uic=/usr/lib/qt/bin/uic --with-qt5-includes=${XBPS_CROSS_BASE}/usr/include --with-qt5-libs=${XBPS_CROSS_BASE}/usr/lib --with-qt5-moc=/usr/lib/qt5/bin/moc --with-qt5-uic=/usr/lib/qt5/bin/uic" maintainer="Enno Boland " license="LGPL-2.1" homepage="http://www.aquamaniac.de" short_desc="OS abstraction functions for various projects" distfiles="http://www2.aquamaniac.de/sites/download/download.php?package=01&release=${_dnrel}&file=01&dummy=gwenhywfar-$version.tar.gz" checksum=6915bba42d8b7f0213cee186a944296e5e5e97cdbde5b539a924261af03086ca if [ -n "$CROSS_BUILD" ]; then hostmakedepends+=" qt-host-tools qt-devel qt5-host-tools qt5-devel" fi pre_configure() { # Build all GUIs sed -i configure.ac -e's;"qt4 gtk2";"qt4 qt5 gtk2";' autoreconf -fi } gwenhywfar-gtk_package() { short_desc+=" - gtk+2 bindings" pkg_install() { vmove usr/lib/*-gtk2* } } gwenhywfar-qt_package() { short_desc+=" - qt4 bindings" pkg_install() { vmove usr/lib/*-qt4* } } gwenhywfar-qt5_package() { short_desc+=" - qt5 bindings" pkg_install() { vmove usr/lib/*-qt5* } } gwenhywfar-devel_package() { depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - development files" pkg_install() { vmove usr/include vmove usr/lib/pkgconfig vmove "usr/lib/*.so" } }