From c63725e867ea8601303672cde1fe61ef604d5dce Mon Sep 17 00:00:00 2001 From: Sebastian Kemper <sebastian_ml@gmx.net> Date: Fri, 2 Jun 2017 22:14:02 +0200 Subject: [PATCH] freeswitch-stable: Fix mod_python build - added sed scripts in order for mod_python to find the right lib to link to - fixed some whitespaces Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net> --- net/freeswitch-stable/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/net/freeswitch-stable/Makefile b/net/freeswitch-stable/Makefile index ac1fb65..d84da07 100644 --- a/net/freeswitch-stable/Makefile +++ b/net/freeswitch-stable/Makefile @@ -567,11 +567,15 @@ define Build/Prepare $(PKG_BUILD_DIR)/libs/esl/python/Makefile $(SED) 's|^SITE_DIR=.*|SITE_DIR=$$$$(DESTDIR)$(PYTHON_PKG_DIR)|' \ $(PKG_BUILD_DIR)/libs/esl/python/Makefile - $(SED)'s|swig2.0|$(STAGING_DIR_HOSTPKG)/bin/swig|' \ + $(SED) 's|swig2.0|$(STAGING_DIR_HOSTPKG)/bin/swig|' \ $(PKG_BUILD_DIR)/libs/esl/python/Makefile - $(SED)'s|swig2.0|$(STAGING_DIR_HOSTPKG)/bin/swig|' \ + $(SED) 's|swig2.0|$(STAGING_DIR_HOSTPKG)/bin/swig|' \ $(PKG_BUILD_DIR)/src/mod/languages/mod_python/Makefile.am - $(SED)'s|^PYTHON_SITE_DIR=.*|PYTHON_SITE_DIR=$(PYTHON_PKG_DIR)|' \ + $(SED) 's|^PYTHON_SITE_DIR=.*|PYTHON_SITE_DIR=$(PYTHON_PKG_DIR)|' \ + $(PKG_BUILD_DIR)/src/mod/languages/mod_python/Makefile.am + $(SED) 's|@PYTHON_CFLAGS@|-I$(PYTHON_INC_DIR)|' \ + $(PKG_BUILD_DIR)/src/mod/languages/mod_python/Makefile.am + $(SED) 's|@PYTHON_LDFLAGS@|$(TARGET_LDFLAGS) -lpython$(PYTHON_VERSION)|' \ $(PKG_BUILD_DIR)/src/mod/languages/mod_python/Makefile.am # Hack for mod_unimrcp - it has a build-time dep on mod_sofia -- 2.30.2