summaryrefslogtreecommitdiffstats
path: root/devel/gobject-introspection/Makefile
blob: c29a80408f08fcc4634027f84085e0254f0ca78f (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
# Created by: Alexander Logvinov <avl@FreeBSD.org>
# $FreeBSD$
#   $MCom$

PORTNAME=   gobject-introspection
PORTVERSION=    1.40.0
PORTREVISION=   1
CATEGORIES= devel
MASTER_SITES=   GNOME
DIST_SUBDIR=    gnome3

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

# we need cairo otherwise the generated Cairo gir is broken
BUILD_DEPENDS=  cairo-trace:${PORTSDIR}/graphics/cairo
LIB_DEPENDS=    libffi.so:${PORTSDIR}/devel/libffi

USES=       bison gettext gmake libtool:keepla pathfix pkgconfig tar:xz
GNU_CONFIGURE=  yes
USE_GNOME=  gnomehier glib20
USE_PYTHON= 2
USE_LDCONFIG=   yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
INSTALL_TARGET= install-strip

# Force it to put the .cache in ${WRKSRC} instead of ~/.cache. ports/143260
MAKE_ENV=   HOME=${WRKDIR}

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

.include <bsd.port.mk>