--cpu="$(BR2_GCC_TARGET_CPU)" \
--python="$(HOST_DIR)/usr/bin/python" \
--disable-dvbscan \
+ --enable-bundle \
$(TVHEADEND_CONF_OPTS) \
)
endef
$(MAKE) -C $(@D) DESTDIR="$(TARGET_DIR)" install
endef
+# Remove documentation and source files that are not needed because we
+# use the bundled web interface version.
+define TVHEADEND_CLEAN_SHARE
+ rm -rf $(TARGET_DIR)/usr/share/tvheadend/docs
+ rm -rf $(TARGET_DIR)/usr/share/tvheadend/src
+endef
+
+TVHEADEND_POST_INSTALL_TARGET_HOOKS += TVHEADEND_CLEAN_SHARE
+
#----------------------------------------------------------------------------
# To run tvheadend, we need:
# - a startup script, and its config file
$(TARGET_DIR)/home/tvheadend/.hts/tvheadend/accesscontrol/1
chmod -R go-rwx $(TARGET_DIR)/home/tvheadend
endef
-TVHEADEND_POST_INSTALL_TARGET_HOOKS = TVHEADEND_INSTALL_DB
+TVHEADEND_POST_INSTALL_TARGET_HOOKS += TVHEADEND_INSTALL_DB
define TVHEADEND_INSTALL_INIT_SYSV
$(INSTALL) -D package/tvheadend/etc.default.tvheadend $(TARGET_DIR)/etc/default/tvheadend