pkgsrc/devel/dconf/database.mk
jperkin dc8fc0fd7b Remove mk/find-prefix.mk usage from the devel category.
The find-prefix infrastructure was required in a pkgviews world where
packages installed from pkgsrc could have different installation
prefixes, and this was a way for a dependency prefix to be determined.

Now that pkgviews has been removed there is no longer any need for the
overhead of this infrastructure.  Instead we use BUILDLINK_PREFIX.pkg
for dependencies pulled in via buildlink, or LOCALBASE/PREFIX where the
dependency is coming from pkgsrc.

Provides a reasonable performance win due to the reduction of `pkg_info
-qp` calls, some of which were redundant anyway as they were duplicating
the same information provided by BUILDLINK_PREFIX.pkg.
2015-11-25 12:49:46 +00:00

21 lines
583 B
Makefile

# $NetBSD: database.mk,v 1.2 2015/11/25 12:49:46 jperkin Exp $
#
# This Makefile fragment is intended to be included by packages that install
# dconf database. It takes care of update the corresponding databases
# at (de)installation time.
#
.if !defined(DCONF_DATABASE_MK)
DCONF_DATABASE_MK= # defined
DCONF= ${LOCALBASE}/bin/dconf
FILES_SUBST+= DCONF=${DCONF:Q}
INSTALL_TEMPLATES+= ../../devel/dconf/files/database.tmpl
DEINSTALL_TEMPLATES+= ../../devel/dconf/files/database.tmpl
TOOLS_NOOP+= dconf
DEPENDS+= dconf-[0-9]*:../../devel/dconf
.endif # DCONF_DATABASE_MK