Fixup fromcvs/togit conversion
[pkgsrcv2.git] / devel / gobject-introspection / Makefile
1 # $NetBSD$
2 #
3
4 DISTNAME=       gobject-introspection-1.32.1
5 PKGREVISION=    3
6 CATEGORIES=     devel
7 MASTER_SITES=   ${MASTER_SITE_GNOME:=sources/gobject-introspection/1.32/}
8 EXTRACT_SUFX=   .tar.xz
9
10 MAINTAINER=     pkgsrc-users@NetBSD.org
11 HOMEPAGE=       http://live.gnome.org/GObjectIntrospection
12 COMMENT=        GObject Introspection
13 LICENSE=        gnu-gpl-v2 AND gnu-lgpl-v2
14
15 PKG_DESTDIR_SUPPORT=    user-destdir
16
17 DEPENDS+=       ${PYPKGPREFIX}-cElementTree-[0-9]*:../../textproc/py-cElementTree
18
19 GNU_CONFIGURE=  yes
20 USE_LIBTOOL=    yes
21 USE_TOOLS+=     pkg-config flex bison gmake
22 GMAKE_REQD=     3.81
23
24 CONFIGURE_ARGS+=        --disable-tests
25
26 PKGCONFIG_OVERRIDE+=    gobject-introspection-1.0.pc.in
27 PKGCONFIG_OVERRIDE+=    gobject-introspection-no-export-1.0.pc.in
28
29 SUBST_CLASSES+= timet
30 SUBST_STAGE.timet=      pre-configure
31 SUBST_FILES.timet=      giscanner/ast.py
32 SUBST_FILES.timet+=     tests/scanner/Foo-1.0-expected.gir \
33                         tests/scanner/Regress-1.0-expected.gir
34 .include "../../mk/bsd.prefs.mk"
35 .if !empty(MACHINE_PLATFORM:MNetBSD-5.99*) || !empty(MACHINE_PLATFORM:MNetBSD-[6-9]*) || !empty(MACHINE_PLATFORM:MMirBSD)
36 SUBST_SED.timet=        -e 's,@TIMET_TYPENAME@,TYPE_INT64,g'
37 SUBST_SED.timet+=       -e 's,@TIMET_CTYPE@,gint64,g'
38 .else
39 SUBST_SED.timet=        -e 's,@TIMET_TYPENAME@,TYPE_LONG,g'
40 SUBST_SED.timet+=       -e 's,@TIMET_CTYPE@,glong,g'
41 .endif
42
43 # not executable
44 CHECK_INTERPRETER_SKIP+= lib/gobject-introspection/giscanner/*.py
45
46 # needed for test only
47 #.include "../../graphics/cairo/buildlink3.mk"
48 TEST_TARGET=    check
49
50 BUILDLINK_API_DEPENDS.glib2+= glib2>=2.30.0
51 .include "../../devel/glib2/buildlink3.mk"
52 .include "../../devel/libffi/buildlink3.mk"
53 .include "../../lang/python/application.mk"
54 .include "../../lang/python/extension.mk"
55 .include "../../mk/bsd.pkg.mk"