aboutsummaryrefslogtreecommitdiff
path: root/package/cdrkit/cdrkit.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/cdrkit/cdrkit.mk')
-rw-r--r--package/cdrkit/cdrkit.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/package/cdrkit/cdrkit.mk b/package/cdrkit/cdrkit.mk
index f49d5150f3..67814f1418 100644
--- a/package/cdrkit/cdrkit.mk
+++ b/package/cdrkit/cdrkit.mk
@@ -18,5 +18,14 @@ else
CDRKIT_CONF_OPTS += -DBITFIELDS_HTOL=0
endif
+ifeq ($(BR2_PACKAGE_FILE),y)
+CDRKIT_DEPENDENCIES += host-pkgconf file
+CDRKIT_CONF_OPTS += \
+ -DUSE_MAGIC=ON \
+ -DEXTRA_LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs libmagic`"
+else
+CDRKIT_CONF_OPTS += -DUSE_MAGIC=OFF
+endif
+
$(eval $(cmake-package))
$(eval $(host-cmake-package))