pkgsrc/devel/gobject-introspection/Makefile

59 lines
2 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.53 2017/10/18 21:32:24 wiz Exp $
DISTNAME= gobject-introspection-1.54.1
CATEGORIES= devel gnome
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gobject-introspection/${PKGVERSION_NOREV:R}/}
EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users@NetBSD.org
2017-08-01 16:58:51 +02:00
HOMEPAGE= https://wiki.gnome.org/Projects/GObjectIntrospection
COMMENT= GObject Introspection
LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2
DEPENDS+= ${PYPKGPREFIX}-cElementTree-[0-9]*:../../textproc/py-cElementTree
DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config flex bison gmake
2011-11-26 17:12:40 +01:00
GMAKE_REQD= 3.81
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-doctool
PKGCONFIG_OVERRIDE+= gobject-introspection-1.0.pc.in
PKGCONFIG_OVERRIDE+= gobject-introspection-no-export-1.0.pc.in
SUBST_CLASSES+= timet
SUBST_STAGE.timet= pre-configure
SUBST_FILES.timet= giscanner/ast.py
SUBST_FILES.timet+= tests/scanner/Regress-1.0-expected.gir
.include "../../mk/bsd.prefs.mk"
2012-05-18 16:38:56 +02:00
.if !empty(MACHINE_PLATFORM:MNetBSD-5.99*) || !empty(MACHINE_PLATFORM:MNetBSD-[6-9]*) || !empty(MACHINE_PLATFORM:MMirBSD)
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
#REPLACE_PYTHON+= tools/g-ir-tool-template.in
SUBST_CLASSES+= pyenv
SUBST_STAGE.pyenv= pre-configure
SUBST_FILES.pyenv+= tools/g-ir-tool-template.in
SUBST_SED.pyenv+= -e 's,/usr/bin/env ,,'
# not executable
CHECK_INTERPRETER_SKIP+= lib/gobject-introspection/giscanner/*.py
# needed for tests only
#.include "../../graphics/cairo/buildlink3.mk"
#.include "../../graphics/cairo-gobject/buildlink3.mk"
#TEST_TARGET= check
BUILDLINK_API_DEPENDS.glib2+= glib2>=2.54.0
.include "../../devel/glib2/buildlink3.mk"
2014-01-26 13:01:44 +01:00
BUILDLINK_API_DEPENDS.libffi+= libffi>=3.0.0
.include "../../devel/libffi/buildlink3.mk"
2011-04-19 13:55:56 +02:00
.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"