diff options
author | leot <leot@pkgsrc.org> | 2019-06-16 15:28:11 +0000 |
---|---|---|
committer | leot <leot@pkgsrc.org> | 2019-06-16 15:28:11 +0000 |
commit | 15f19e75325278142723c6e8f51f3a96ac8ed7e0 (patch) | |
tree | 6c94c4a1d3692d8795dee8ffc108a8555df1ac2a /devel/glib2/Makefile | |
parent | d0342b4fb1c895b5aacc2166fb67e6b86171533b (diff) | |
download | pkgsrc-15f19e75325278142723c6e8f51f3a96ac8ed7e0.tar.gz |
glib2: Use PKGCONFIG_OVERRIDE instead of patching meson.build-s
meson `pkgconfig' module generate pkg-config files during the configure
phase and PKGCONFIG_OVERRIDE can be used in post-configure stage to
avoid directly patching meson.build files.
Discussed with <ryoon>, thanks!
Diffstat (limited to 'devel/glib2/Makefile')
-rw-r--r-- | devel/glib2/Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/devel/glib2/Makefile b/devel/glib2/Makefile index 860392ca54a..6d77527d723 100644 --- a/devel/glib2/Makefile +++ b/devel/glib2/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.252 2019/06/16 01:54:40 ryoon Exp $ +# $NetBSD: Makefile,v 1.253 2019/06/16 15:28:11 leot Exp $ .include "Makefile.common" @@ -46,6 +46,17 @@ SUBST_SED.xdg= -e 's,/usr/local/share/:/usr/share/,${PREFIX}/share,' SUBST_SED.xdg+= -e 's,/etc/xdg,${PKG_SYSCONFDIR}/xdg,' SUBST_SED.xdg+= -e 's,/usr/share/locale,${PREFIX}/${PKGLOCALEDIR}/locale,' +PKGCONFIG_OVERRIDE+= output/meson-private/gio-2.0.pc +PKGCONFIG_OVERRIDE+= output/meson-private/gio-unix-2.0.pc +PKGCONFIG_OVERRIDE+= output/meson-private/glib-2.0.pc +PKGCONFIG_OVERRIDE+= output/meson-private/gmodule-2.0.pc +PKGCONFIG_OVERRIDE+= output/meson-private/gmodule-export-2.0.pc +PKGCONFIG_OVERRIDE+= output/meson-private/gmodule-no-export-2.0.pc +PKGCONFIG_OVERRIDE+= output/meson-private/gobject-2.0.pc +PKGCONFIG_OVERRIDE+= output/meson-private/gthread-2.0.pc + +PKGCONFIG_OVERRIDE_STAGE= post-configure + # to run gdbus-codegen to generate gdbus-daemon-generated.{h,c} TOOL_DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat PYTHON_FOR_BUILD_ONLY= yes |