From fc0af6f29de3ca7720a34f24ab46fe04581d69e1 Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Sun, 11 Jun 2017 14:31:40 +0200 Subject: [PATCH] freeswitch-stable: move mod_python feature Moved mod_python specialty from install/dir routine to mod builder Signed-off-by: Sebastian Kemper --- net/freeswitch-stable/Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/net/freeswitch-stable/Makefile b/net/freeswitch-stable/Makefile index d0998c1..cc79af0 100644 --- a/net/freeswitch-stable/Makefile +++ b/net/freeswitch-stable/Makefile @@ -211,12 +211,6 @@ define Package/$(PKG_NAME)/install/mod $(INSTALL_DIR) $(1)/usr/lib/$(PRG_NAME)/mod $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/$(PRG_NAME)/mod/mod_$(2).so \ $(1)/usr/lib/$(PRG_NAME)/mod -ifeq ($(2),python) - $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR) - $(INSTALL_DATA) \ - $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/$(PRG_NAME).py \ - $(1)$(PYTHON_PKG_DIR) -endif endef define Package/$(PKG_NAME)/config @@ -421,6 +415,12 @@ $(subst \n,$(newline),$(3)) endef define Package/$(PKG_NAME)-mod-$(1)/install $(call Package/$(PKG_NAME)/install/mod,$$(1),$(1)) +ifeq ($(1),python) + $(INSTALL_DIR) $$(1)$(PYTHON_PKG_DIR) + $(INSTALL_DATA) \ + $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/$(PRG_NAME).py \ + $$(1)$(PYTHON_PKG_DIR) +endif endef $$(eval $$(call BuildPackage,$(PKG_NAME)-mod-$(1))) endef