diff --git a/package/neutrino-mediathek/neutrino-mediathek.mk b/package/neutrino-mediathek/neutrino-mediathek.mk index c0af0309..b6332a20 100644 --- a/package/neutrino-mediathek/neutrino-mediathek.mk +++ b/package/neutrino-mediathek/neutrino-mediathek.mk @@ -9,15 +9,20 @@ NEUTRINO_MEDIATHEK_DIR = mediathek.$(NEUTRINO_MEDIATHEK_VERSION) NEUTRINO_MEDIATHEK_SOURCE = mediathek.$(NEUTRINO_MEDIATHEK_VERSION) NEUTRINO_MEDIATHEK_SITE = https://github.com/neutrino-mediathek -neutrino-mediathek: $(SHARE_PLUGINS) | $(TARGET_DIR) - $(REMOVE)/$(PKG_DIR) - $(GET_GIT_SOURCE) $(PKG_SITE)/$(PKG_SOURCE) $(DL_DIR)/$(PKG_SOURCE) - $(CPDIR)/$(PKG_SOURCE) - $(CHDIR)/$(PKG_DIR); \ - $(INSTALL_COPY) plugins/* $(SHARE_PLUGINS)/; \ - $(INSTALL_COPY) share/* $(TARGET_datadir) - $(REMOVE)/$(PKG_DIR) - # temporarily use beta-version from our board - rm -rf $(SHARE_PLUGINS)/neutrino-mediathek* - $(INSTALL_COPY) $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS)/scripts-lua/plugins/mediathek/* $(SHARE_PLUGINS)/ - $(call TOUCH) +ifeq ($(BS_PACKAGE_NEUTRINO_MEDIATHEK_ORIGIN_NI),y) +NEUTRINO_MEDIATHEK_DEPENDENCIES = $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS) +NEUTRINO_MEDIATHEK_ORIGIN = $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS)/scripts-lua/plugins/mediathek +else +NEUTRINO_MEDIATHEK_ORIGIN = $(PKG_BUILD_DIR)/plugins +endif + +define NEUTRINO_MEDIATHEK_INSTALL_PLUGIN + $(INSTALL) -d $(TARGET_datadir) + $(INSTALL_COPY) $(PKG_BUILD_DIR)/share/* $(TARGET_datadir) + $(INSTALL) -d $(SHARE_PLUGINS) + $(INSTALL_COPY) $($(PKG)_ORIGIN)/* $(SHARE_PLUGINS) +endef +NEUTRINO_MEDIATHEK_INDIVIDUAL_HOOKS += NEUTRINO_MEDIATHEK_INSTALL_PLUGIN + +neutrino-mediathek: | $(TARGET_DIR) + $(call individual-package) diff --git a/package/pkg-configuration.mk b/package/pkg-configuration.mk index 20a2a2bb..b5fe2679 100644 --- a/package/pkg-configuration.mk +++ b/package/pkg-configuration.mk @@ -43,3 +43,6 @@ BS_PACKAGE_NEUTRINO_WEATHER_DEV_KEY ?= $(NEUTRINO_WEATHER_DEV_KEY) ifeq ($(BS_PACKAGE_NEUTRINO_WEATHER_DEV_KEY),$(empty)) BS_PACKAGE_NEUTRINO_WEATHER_DEV_KEY = 9b9e718858bb5f4589aeaddd3f4047c4 endif + +# neutrino-mediathek: use plugin from NI plugins repository +BS_PACKAGE_NEUTRINO_MEDIATHEK_ORIGIN_NI ?= y