summaryrefslogtreecommitdiffstats
path: root/package/libglib2
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2016-06-22 21:07:37 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-07-05 15:53:05 +0200
commit50adab522c0fbf1c99b904b8513200b114eb4a0b (patch)
tree5ff32934efcc96e15eedc81ceabdf94488def225 /package/libglib2
parent624dbec7e1f971519be9a165b09c0b95a8ee282b (diff)
downloadbuildroot-50adab522c0fbf1c99b904b8513200b114eb4a0b.tar.gz
buildroot-50adab522c0fbf1c99b904b8513200b114eb4a0b.zip
packages: use the <PKG>_TARGET_FINALIZE_HOOKS
Register package-specific target-finalize hooks with the newly-introduced <PKG>_TARGET_FINALIZE_HOOKS. This incidentally fixes luarocks, which was registering target-finalize hooks even when it was not enabled. To be noted, the skeleton package is not converted, because it is not optional, we always have it; so its hooks would always be registered anyway. Besides, the followup patches would render this conversion moot anyway, since those hooks would be spread across the various skeleton packages. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Reviewed-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/libglib2')
-rw-r--r--package/libglib2/libglib2.mk6
1 files changed, 2 insertions, 4 deletions
diff --git a/package/libglib2/libglib2.mk b/package/libglib2/libglib2.mk
index b479bae32a..e2bff6d501 100644
--- a/package/libglib2/libglib2.mk
+++ b/package/libglib2/libglib2.mk
@@ -160,10 +160,8 @@ define LIBGLIB2_COMPILE_SCHEMAS
--targetdir=$(TARGET_DIR)/usr/share/glib-2.0/schemas
endef
-ifeq ($(BR2_PACKAGE_LIBGLIB2),y)
-TARGET_FINALIZE_HOOKS += LIBGLIB2_REMOVE_TARGET_SCHEMAS
-TARGET_FINALIZE_HOOKS += LIBGLIB2_COMPILE_SCHEMAS
-endif
+LIBGLIB2_TARGET_FINALIZE_HOOKS += LIBGLIB2_REMOVE_TARGET_SCHEMAS
+LIBGLIB2_TARGET_FINALIZE_HOOKS += LIBGLIB2_COMPILE_SCHEMAS
$(eval $(autotools-package))
$(eval $(host-autotools-package))
OpenPOWER on IntegriCloud