[BACK]Return to schemas.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / glib2

File: [cvs.NetBSD.org] / pkgsrc / devel / glib2 / schemas.mk (download)

Revision 1.2, Sun Feb 20 15:07:40 2011 UTC (10 years, 9 months ago) by jmmv
Branch: MAIN
CVS Tags: pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1
Changes since 1.1: +7 -1 lines

TOOLS_NOOP is not enough to catch all calls to glib-compile-schemas because
some packages deduce the full name to the tool instead of relying on the

Attempt to do better by setting the GLIB_COMPILE_SCHEMAS variable to
a non-absolute name during the build, hoping that such packages do define
this Makefile variable.

This should fix the build of evince as reported in PR pkg/44589.

# $NetBSD: schemas.mk,v 1.2 2011/02/20 15:07:40 jmmv Exp $
# This Makefile fragment is intended to be included by packages that install
# GSettings schemas.  It takes care of rebuilding the corresponding databases
# at (de)installation time.

.if !defined(GLIB_SCHEMAS_MK)
GLIB_SCHEMAS_MK=	# defined

GLIB_COMPILE_SCHEMAS=	${BUILDLINK_PREFIX.glib2}/bin/glib-compile-schemas

INSTALL_TEMPLATES+=	../../devel/glib2/files/schemas.tmpl
DEINSTALL_TEMPLATES+=	../../devel/glib2/files/schemas.tmpl

TOOLS_NOOP+=		glib-compile-schemas
# Adding glib-compile-schemas to TOOLS_NOOP is not enough to mock out all
# calls to this tool.  Some packages do 'pkg-config --variable
# glib_compile_schemas gio-2.0' to get the path to the binary.  Do a best
# effort here by overriding the possibly-defined GLIB_COMPILE_SCHEMAS
# variable in the offending Makefiles.
MAKE_FLAGS+=		GLIB_COMPILE_SCHEMAS=glib-compile-schemas

.include "../../devel/glib2/buildlink3.mk"

.endif			# GLIB_SCHEMAS_MK