summaryrefslogtreecommitdiffstats
path: root/devel/gobject-introspection/Makefile
blob: 780921553a4b38b0a2d946260caa3f337faa9da6 (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
# New ports collection makefile for:    gobject-introspection
# Date created:             19 July 2009
# Whom:                 Alexander Logvinov <avl@FreeBSD.org>
#
# $FreeBSD: ports/devel/gobject-introspection/Makefile,v 1.10 2010/06/06 20:09:32 marcus Exp $
#   $MCom: ports/devel/gobject-introspection/Makefile,v 1.12 2010/06/24 09:53:19 kwm Exp $
#

PORTNAME=   gobject-introspection
PORTVERSION=    0.9.0
CATEGORIES= devel
MASTER_SITES=   GNOME
DIST_SUBDIR=    gnome2

MAINTAINER= gnome@FreeBSD.org
COMMENT=    Generate interface introspection data for GObject libraries

BUILD_DEPENDS=  flex:${PORTSDIR}/textproc/flex
LIB_DEPENDS=    ffi.5:${PORTSDIR}/devel/libffi \
        cairo.2:${PORTSDIR}/graphics/cairo

USE_BZIP2=  yes
GNU_CONFIGURE=  yes
USE_GMAKE=  yes
USE_GNOME=  gnomehack glib20
USE_PYTHON= yes
USE_BISON=  both
USE_GETTEXT=    yes
USE_AUTOTOOLS=  libtool:22
USE_LDCONFIG=   yes
MAKE_JOBS_UNSAFE=yes

CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib"

MAN1=       g-ir-compiler.1 g-ir-generate.1 g-ir-scanner.1

.include <bsd.port.pre.mk>

post-patch:
    @${REINPLACE_CMD} -e 's|'cc'|'${CC:Q}'|g' \
        ${WRKSRC}/giscanner/sourcescanner.py

.include <bsd.port.post.mk>