TVHEADEND_DEPENDENCIES = \
host-gettext \
host-pkgconf \
+ host-pngquant \
$(if $(BR2_PACKAGE_PYTHON3),host-python3,host-python) \
openssl
--python="$(HOST_DIR)/usr/bin/python" \
--enable-dvbscan \
--enable-bundle \
+ --enable-pngquant \
--disable-ffmpeg_static \
--disable-hdhomerun_static \
$(TVHEADEND_CONF_OPTS) \
)
endef
+define TVHEADEND_FIX_PNGQUANT_PATH
+ $(SED) "s%^pngquant_bin =.*%pngquant_bin = '$(HOST_DIR)/usr/bin/pngquant'%" \
+ $(@D)/support/mkbundle
+endef
+TVHEADEND_POST_CONFIGURE_HOOKS += TVHEADEND_FIX_PNGQUANT_PATH
+
define TVHEADEND_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
endef