summaryrefslogtreecommitdiff
path: root/lang/vala/Makefile
blob: d94c640d0f9423812ca21a15aa7909bd4e00c3ed (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
41
42
43
# $NetBSD: Makefile,v 1.17 2011/04/05 17:52:10 drochner Exp $
#

DISTNAME=	vala-0.12.0
CATEGORIES=	lang gnome
MASTER_SITES=	${MASTER_SITE_GNOME:=sources/vala/0.12/}
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://live.gnome.org/Vala
COMMENT=	Compiler for the GObject type system
LICENSE=	gnu-lgpl-v2.1

PKG_DESTDIR_SUPPORT=	user-destdir

GNU_CONFIGURE=	yes
USE_LIBTOOL=	yes
USE_TOOLS+=		bison flex gmake pkg-config

PKGCONFIG_OVERRIDE+=	libvala.pc.in

BUILDLINK_API_DEPENDS.glib2+=	glib2>=2.16.0
BUILDLINK_DEPMETHOD.libxslt=			build

INSTALLATION_DIRS=		share/doc/vala

SUBST_CLASSES+=			bookdir
SUBST_STAGE.bookdir=	post-patch
SUBST_MESSAGE.bookdir=	Fixing doc path
SUBST_FILES.bookdir=	doc/vala/Makefile.in doc/vala/Makefile.am
SUBST_SED.bookdir=		-e 's,@@BOOKDIR@@,${PREFIX}/share/doc/vala/devhelp/books,'

post-install:
.for file in AUTHORS COPYING ChangeLog ChangeLog.pre-0-4 ChangeLog.pre-0-5-7 INSTALL MAINTAINERS NEWS README THANKS
	${INSTALL_DATA} ${WRKSRC}/${file} \
		${DESTDIR}${PREFIX}/share/doc/vala
.endfor

.include "options.mk"

.include "../../devel/glib2/buildlink3.mk"
.include "../../textproc/libxslt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"