vp-build/srcpkgs/gtk-sharp2/template

31 lines
968 B
Bash

# Template file for 'gtk-sharp2'
pkgname=gtk-sharp2
version=2.12.45
revision=2
wrksrc="gtk-sharp-${version}"
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="pkg-config automake libtool mono"
makedepends="mono-devel gtk+-devel libglade-devel"
maintainer="John <me@johnnynator.dev>"
short_desc="Graphical User Interface Toolkit for mono and .Net (Gtk#)"
license="LGPL-2.1-only"
homepage="https://www.mono-project.com/docs/gui/gtksharp/"
distfiles="https://download.mono-project.com/sources/gtk-sharp212/gtk-sharp-${version}.tar.gz"
checksum=02680578e4535441064aac21d33315daa009d742cab8098ac8b2749d86fffb6a
if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
_have_mdoc="no"
elif [[ $XBPS_TARGET_MACHINE == ppc* ]]; then
_have_mdoc="no"
fi
pre_configure() {
# 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.in
fi
autoreconf -i
}