blob: 203f7ede03fa6e54c3a3b9316f2cc7b6f01c232a (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# $NetBSD: Makefile,v 1.16 2012/02/16 02:31:09 obache Exp $
#
DISTNAME= gobject-introspection-1.30.0
PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gobject-introspection/1.30/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://live.gnome.org/GObjectIntrospection
COMMENT= GObject Introspection
LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2
PKG_DESTDIR_SUPPORT= user-destdir
DEPENDS+= ${PYPKGPREFIX}-cElementTree-[0-9]*:../../textproc/py-cElementTree
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config flex bison gmake
GMAKE_REQD= 3.81
CONFIGURE_ARGS+= --disable-tests
PKGCONFIG_OVERRIDE+= gobject-introspection-1.0.pc.in
PKGCONFIG_OVERRIDE+= gobject-introspection-no-export-1.0.pc.in
PYTHON_VERSIONS_ACCEPTED= 27 26 25
SUBST_CLASSES+= timet
SUBST_STAGE.timet= pre-configure
SUBST_FILES.timet= giscanner/ast.py
SUBST_FILES.timet+= tests/scanner/Foo-1.0-expected.gir \
tests/scanner/Regress-1.0-expected.gir
.include "../../mk/bsd.prefs.mk"
.if !empty(MACHINE_PLATFORM:MNetBSD-5.99*) || !empty(MACHINE_PLATFORM:MNetBSD-[6-9]*)
SUBST_SED.timet= -e 's,@TIMET_TYPENAME@,TYPE_INT64,g'
SUBST_SED.timet+= -e 's,@TIMET_CTYPE@,gint64,g'
.else
SUBST_SED.timet= -e 's,@TIMET_TYPENAME@,TYPE_LONG,g'
SUBST_SED.timet+= -e 's,@TIMET_CTYPE@,glong,g'
.endif
# not executable
CHECK_INTERPRETER_SKIP+= lib/gobject-introspection/giscanner/*.py
# needed for test only
#.include "../../graphics/cairo/buildlink3.mk"
TEST_TARGET= check
BUILDLINK_API_DEPENDS.glib2+= glib2>=2.30.0
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/libffi/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"
|