pkgsrc/devel/gdbus-codegen/Makefile

30 lines
1 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.25 2020/12/20 11:06:40 prlw1 Exp $
.include "../../devel/glib2/Makefile.common"
2012-06-04 12:10:01 +02:00
PKGNAME:= ${PKGNAME:S/glib2/gdbus-codegen/}
CATEGORIES= devel gnome
COMMENT= Generate code and/or documentation for one or more D-Bus interfaces
2019-06-03 11:53:50 +02:00
WRKSRC= ${WRKDIR}/${DISTNAME}/gio/gdbus-2.0/codegen
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},'
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,'
2019-06-03 11:53:50 +02:00
REPLACE_PYTHON+= gdbus-codegen.in
2019-06-03 11:53:50 +02:00
DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
.include "../../devel/meson/build.mk"
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"