freeswitch-stable: move mod_python feature
authorSebastian Kemper <sebastian_ml@gmx.net>
Sun, 11 Jun 2017 12:31:40 +0000 (14:31 +0200)
committerSebastian Kemper <sebastian_ml@gmx.net>
Sun, 11 Jun 2017 12:31:43 +0000 (14:31 +0200)
Moved mod_python specialty from install/dir routine to mod builder

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
net/freeswitch-stable/Makefile

index d0998c1844abffdde37ad037a9e45fc8df6c2d7b..cc79af0adb13dc933617d2e57c70bdc2f8273a30 100644 (file)
@@ -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