kamailio4: fix and cleanup build procedure
Signed-off-by: Jiri Slachta <slachta@cesnet.cz>
This commit is contained in:
parent
1b502dc54b
commit
78f3e63ed5
1 changed files with 13 additions and 18 deletions
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=kamailio4
|
PKG_NAME:=kamailio4
|
||||||
PKG_VERSION:=4.0.4
|
PKG_VERSION:=4.0.4
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE_URL:=http://www.kamailio.org/pub/kamailio/$(PKG_VERSION)/src/
|
PKG_SOURCE_URL:=http://www.kamailio.org/pub/kamailio/$(PKG_VERSION)/src/
|
||||||
PKG_SOURCE:=kamailio-$(PKG_VERSION)$(PKG_VARIANT)_src.tar.gz
|
PKG_SOURCE:=kamailio-$(PKG_VERSION)$(PKG_VARIANT)_src.tar.gz
|
||||||
|
@ -211,22 +211,21 @@ $(eval $(call BuildPlugin,xlog,xlog,Advanced logger,,))
|
||||||
$(eval $(call BuildPlugin,xmpp,xmpp,SIP-to-XMPP Gateway,tm,+libexpat))
|
$(eval $(call BuildPlugin,xmpp,xmpp,SIP-to-XMPP Gateway,tm,+libexpat))
|
||||||
|
|
||||||
PKG_MAKE_ARGS:= \
|
PKG_MAKE_ARGS:= \
|
||||||
cfg-dir="/etc/kamailio/" \
|
prefix=/ \
|
||||||
bin-dir="/usr/sbin/" \
|
cfg_dir=/etc/kamailio/ \
|
||||||
data-dir="/var/lib/kamailio/" \
|
bin_dir=/usr/sbin/ \
|
||||||
lib-dir="/usr/lib/kamailio/" \
|
data_dir=/var/lib/kamailio/ \
|
||||||
modules-dir="/usr/lib/kamailio/modules/" \
|
lib_dir=/usr/lib/kamailio/ \
|
||||||
|
modules_dir=/usr/lib/kamailio/ \
|
||||||
include_modules="$(INCL_MODULES)" \
|
include_modules="$(INCL_MODULES)" \
|
||||||
|
cfg_target:=/etc/kamailio/ \
|
||||||
TLS_HOOKS=1 \
|
TLS_HOOKS=1 \
|
||||||
extra_defs="-DUSE_PTHREAD_MUTEX " \
|
extra_defs="-DUSE_PTHREAD_MUTEX " \
|
||||||
CFLAGS="$(TARGET_CFLAGS)" \
|
CFLAGS="$(TARGET_CFLAGS)" \
|
||||||
ISSMP="no" \
|
|
||||||
LOCALBASE="$(STAGING_DIR)/usr" \
|
LOCALBASE="$(STAGING_DIR)/usr" \
|
||||||
SYSBASE="$(STAGING_DIR)/usr" \
|
SYSBASE="$(STAGING_DIR)/usr" \
|
||||||
PCREDEFS:="$(TARGET_CPPFLAGS)" \
|
PCREDEFS:="$(TARGET_CPPFLAGS)" \
|
||||||
PCRELIBS:="$(TARGET_LDFLAGS)" \
|
PCRELIBS:="$(TARGET_LDFLAGS)" \
|
||||||
cfg_target:=/etc/kamailio/ \
|
|
||||||
PREFIX:=/usr \
|
|
||||||
CROSS_COMPILE=$(TARGET_CROSS) \
|
CROSS_COMPILE=$(TARGET_CROSS) \
|
||||||
CC="$(TARGET_CC)" \
|
CC="$(TARGET_CC)" \
|
||||||
ARCH="$(ARCH)" \
|
ARCH="$(ARCH)" \
|
||||||
|
@ -234,15 +233,11 @@ PKG_MAKE_ARGS:= \
|
||||||
quiet=verbose
|
quiet=verbose
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
if ! [ -f $(PREBUILT_STAMP) ]; then \
|
$(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) \
|
||||||
echo $(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) \
|
EXTRA_LIBS=-L$(STAGING_DIR)/usr/lib/ \
|
||||||
EXTRA_LIBS=-L$(STAGING_DIR)/usr/lib/ prefix:=/usr \
|
all
|
||||||
all && touch $(PREBUILT_STAMP); \
|
$(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) \
|
||||||
fi
|
install
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) prefix=/ \
|
|
||||||
install-cfg
|
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) $(PKG_MAKE_ARGS) prefix=/usr \
|
|
||||||
install-bin install-modules-all install-utils
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,kamailio4))
|
$(eval $(call BuildPackage,kamailio4))
|
||||||
|
|
Loading…
Reference in a new issue