summaryrefslogtreecommitdiff
path: root/x11/gtk-sharp/Makefile
blob: 8110f664265e6026a13d94f1c2d58d3c7f988f39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# $NetBSD: Makefile,v 1.81 2020/06/02 08:25:00 adam Exp $

DISTNAME=	gtk-sharp-2.12.45
PKGREVISION=	4
CATEGORIES=	x11
MASTER_SITES=	https://download.mono-project.com/sources/gtk-sharp212/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://www.mono-project.com/GtkSharp
COMMENT=	C\# bindings for GTK
LICENSE=	gnu-lgpl-v2.1

PREV_PKGPATH=	x11/gtk2-sharp

USE_LIBTOOL=	yes
USE_TOOLS+=	pkg-config gmake perl:run
GNU_CONFIGURE=	yes

MAKE_JOBS_SAFE=	no

USE_PKGLOCALEDIR=	yes

REPLACE_PERL+=		parser/*.pl
PKGCONFIG_OVERRIDE+=	gtk/gtk-sharp-2.0.pc.in
PKGCONFIG_OVERRIDE+=	gtkdotnet/gtk-dotnet-2.0.pc.in
PKGCONFIG_OVERRIDE+=	glib/glib-sharp-2.0.pc.in
PKGCONFIG_OVERRIDE+=	parser/gapi-2.0.pc.in
PKGCONFIG_OVERRIDE+=	glade/glade-sharp-2.0.pc.in

SUBST_CLASSES+=			relprefix
SUBST_MESSAGE.relprefix=	Replacing relative prefix in pkg-config files.
SUBST_STAGE.relprefix=		pre-configure
SUBST_FILES.relprefix=		${PKGCONFIG_OVERRIDE}
SUBST_SED.relprefix=		-e 's|$${pcfiledir}/../..|@prefix@|g'

.include "../../devel/libglade/buildlink3.mk"
.include "../../lang/mono/buildlink3.mk"
BUILDLINK_API_DEPENDS.gtk2+=	gtk2+>=2.12.0
.include "../../x11/gtk2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"