61 lines
1.7 KiB
Bash
61 lines
1.7 KiB
Bash
# Template file for 'gwenhywfar'
|
|
pkgname=gwenhywfar
|
|
version=4.17.0
|
|
revision=1
|
|
_dnrel=205
|
|
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=11fdffaa2970c937251587fc62a41893c20f7ab3d74c2b66dfa81f40b2a82bfd
|
|
|
|
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"
|
|
}
|
|
}
|