aboutsummaryrefslogtreecommitdiffstats
path: root/lang/vala/Makefile
blob: ea97811facd7900dedb6b41c01ef8e38aacea255 (plain) (blame)
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
44
45
46
# New ports collection makefile for:    vala
# Date created:     2007-07-09
# Whom:         Michael Johnson <ahze@FreeBSD.org>
#
# $FreeBSD$
#   $MCom: ports/lang/vala/Makefile,v 1.32 2010/04/21 22:30:45 kwm Exp $
#

PORTNAME=   vala
PORTVERSION=    0.8.1
PORTREVISION=   1
CATEGORIES= lang gnome
MASTER_SITES=   GNOME

MAINTAINER= gnome@FreeBSD.org
COMMENT=    Programming language and compiler that converts Vala code into C code

OPTIONS=    VAPIGEN "Enable VAPI generator" Off
USE_BZIP2=  yes
USE_GNOME=  glib20 gnomeprefix libxslt
GNU_CONFIGURE=  yes
USE_GETTEXT=    yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}" LDFLAGS="-L${LOCALBASE}/lib"
USE_BISON=  build
USE_LDCONFIG=   yes

MAN1=       valac.1

.include <bsd.port.pre.mk>

.if defined(WITH_VAPIGEN)
CONFIGURE_ARGS+=--enable-vapigen
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/XML/LibXML.pm:${PORTSDIR}/textproc/p5-XML-LibXML
RUN_DEPENDS+=   ${SITE_PERL}/${PERL_ARCH}/XML/LibXML.pm:${PORTSDIR}/textproc/p5-XML-LibXML
MAN1+=      vala-gen-introspect.1 vapigen.1
PLIST_SUB+= VAPIGEN=""
.else
CONFIGURE_ARGS+=--disable-vapigen
PLIST_SUB+= VAPIGEN="@comment "
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|$$(prefix)/libdata/pkgconfig|' \
        ${WRKSRC}/Makefile.in

.include <bsd.port.post.mk>