37 lines
1.1 KiB
Bash
37 lines
1.1 KiB
Bash
# Template file for 'gtk-sharp'
|
|
pkgname=gtk-sharp
|
|
version=2.99.3
|
|
revision=2
|
|
lib32disabled=yes
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static"
|
|
hostmakedepends="automake libtool mono pkg-config"
|
|
makedepends="mono-devel gtk+3-devel libglade-devel"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
homepage="https://www.mono-project.com/GtkSharp"
|
|
license="LGPL-2.1-or-later"
|
|
short_desc="Graphical User Interface Toolkit for mono and .Net (Gtk#)"
|
|
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
|
|
checksum=6440f571416267ae0cb5698071d087b31e3084693fa2c829b1db37ca7ea2c3a2
|
|
|
|
if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
|
|
_have_mdoc="no"
|
|
elif [[ $XBPS_TARGET_MACHINE == ppc* ]]; then
|
|
_have_mdoc="no"
|
|
fi
|
|
|
|
pre_configure() {
|
|
# Use mcs instead of the dead gmcs compiler
|
|
sed "s/gmcs/mcs/" -i configure.ac
|
|
|
|
# Don't build broken threadcheck module
|
|
sed "s/ENABLE_THREADCHECK, true/ENABLE_THREADCHECK, false/" -i configure.ac
|
|
|
|
# mdoc is not shipped on ppc64le and all BE because it needs roslyn
|
|
if [ "$_have_mdoc" = "no" ]; then
|
|
sed "s/enable_monodoc=yes/enable_monodoc=no/" -i configure.ac
|
|
fi
|
|
|
|
autoreconf -if
|
|
}
|