69 lines
1.8 KiB
Bash
69 lines
1.8 KiB
Bash
# Template file for 'gwenhywfar'
|
|
pkgname=gwenhywfar
|
|
version=4.20.0
|
|
revision=2
|
|
_dnrel=208
|
|
hostmakedepends="automake pkg-config libgcrypt-devel libtool"
|
|
makedepends="libgcrypt-devel gnutls-devel gtk+-devel qt-devel qt5-devel
|
|
gtk+3-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-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=02&dummy=gwenhywfar-$version.tar.gz"
|
|
checksum=5a88daabba1388f9528590aab5de527a12dd44a7da4572ce48469a29911b0fb0
|
|
|
|
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 gtk3";'
|
|
autoreconf -fi
|
|
}
|
|
|
|
gwenhywfar-gtk_package() {
|
|
short_desc+=" - gtk+2 bindings"
|
|
pkg_install() {
|
|
vmove usr/lib/*-gtk2*
|
|
}
|
|
}
|
|
|
|
gwenhywfar-gtk3_package() {
|
|
short_desc+=" - gtk+3 bindings"
|
|
pkg_install() {
|
|
vmove usr/lib/*-gtk3*
|
|
}
|
|
}
|
|
|
|
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"
|
|
}
|
|
}
|