void-packages/srcpkgs/gwenhywfar/template
Jürgen Buchmüller 3291670bed gwenhywfar: fix cross for qt4 and qt5
Enable Qt4 and Qt5 bindings for all target architectures.
2017-01-15 12:09:30 +01:00

61 lines
1.7 KiB
Bash

# Template file for 'gwenhywfar'
pkgname=gwenhywfar
version=4.15.3
revision=3
_dnrel=201
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 <gottox@voidlinux.eu>"
license="LGPL"
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=6a0e8787c99620414da6140e567c616b55856c5edf8825a9ebc67431923ee63a
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"
}
}