2020-12-20 12:06:40 +01:00
|
|
|
# $NetBSD: Makefile,v 1.25 2020/12/20 11:06:40 prlw1 Exp $
|
2012-06-04 11:57:42 +02:00
|
|
|
|
|
|
|
.include "../../devel/glib2/Makefile.common"
|
|
|
|
|
2012-06-04 12:10:01 +02:00
|
|
|
PKGNAME:= ${PKGNAME:S/glib2/gdbus-codegen/}
|
2013-06-01 00:53:23 +02:00
|
|
|
CATEGORIES= devel gnome
|
2012-06-04 11:57:42 +02:00
|
|
|
|
2013-04-06 05:45:05 +02:00
|
|
|
COMMENT= Generate code and/or documentation for one or more D-Bus interfaces
|
2012-06-04 11:57:42 +02:00
|
|
|
|
2019-06-03 11:53:50 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/gio/gdbus-2.0/codegen
|
2012-06-04 11:57:42 +02:00
|
|
|
|
2019-06-03 11:53:50 +02:00
|
|
|
SUBST_CLASSES+= autovars
|
|
|
|
SUBST_STAGE.autovars= pre-configure
|
|
|
|
SUBST_MESSAGE.autovars= autoconf meson.build
|
|
|
|
SUBST_FILES.autovars= meson.build config.py.in gdbus-codegen.in
|
|
|
|
SUBST_VARS.autovars= PKGVERSION PYTHONBIN
|
|
|
|
SUBST_SED.autovars= -e 's,@VERSION@,${PKGVERSION:Q},'
|
2020-03-04 20:25:14 +01:00
|
|
|
SUBST_SED.autovars+= -e 's,@MAJOR_VERSION@,${PKGVERSION:R:R:Q},'
|
|
|
|
SUBST_SED.autovars+= -e 's,@MINOR_VERSION@,${PKGVERSION:R:E:Q},'
|
2019-06-03 11:53:50 +02:00
|
|
|
SUBST_SED.autovars+= -e 's,@PYTHON@,${PYTHONBIN:Q},'
|
|
|
|
SUBST_SED.autovars+= -e 's,@DATADIR@,${PREFIX}/share,'
|
2012-06-04 11:57:42 +02:00
|
|
|
|
2019-06-03 11:53:50 +02:00
|
|
|
REPLACE_PYTHON+= gdbus-codegen.in
|
2012-06-04 11:57:42 +02:00
|
|
|
|
2019-06-03 11:53:50 +02:00
|
|
|
DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
|
2012-06-04 11:57:42 +02:00
|
|
|
|
2019-10-07 11:28:09 +02:00
|
|
|
.include "../../devel/meson/build.mk"
|
2012-06-04 11:57:42 +02:00
|
|
|
.include "../../lang/python/application.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|