Merge pull request #736 from svlobanov/yate-fix-build-on-macos
yate: fix build on macos
This commit is contained in:
commit
0eb623a3a6
1 changed files with 9 additions and 1 deletions
|
@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=yate
|
PKG_NAME:=yate
|
||||||
PKG_VERSION:=6.4.0-1
|
PKG_VERSION:=6.4.0-1
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=http://yate.null.ro/tarballs/yate6/
|
PKG_SOURCE_URL:=http://yate.null.ro/tarballs/yate6/
|
||||||
|
@ -25,6 +25,8 @@ PKG_FIXUP:=autoreconf
|
||||||
PKG_BUILD_PARALLEL:=0
|
PKG_BUILD_PARALLEL:=0
|
||||||
PKG_INSTALL:=1
|
PKG_INSTALL:=1
|
||||||
|
|
||||||
|
PKG_BUILD_DEPENDS:=HOST_OS_MACOS:fakeuname/host
|
||||||
|
|
||||||
# Yate currently does not compile with FORTIFY_SOURCE enabled
|
# Yate currently does not compile with FORTIFY_SOURCE enabled
|
||||||
PKG_FORTIFY_SOURCE:=0
|
PKG_FORTIFY_SOURCE:=0
|
||||||
|
|
||||||
|
@ -45,6 +47,9 @@ PKG_CONFIG_DEPENDS:= \
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
include $(INCLUDE_DIR)/nls.mk
|
include $(INCLUDE_DIR)/nls.mk
|
||||||
|
ifeq ($(CONFIG_HOST_OS_MACOS),y)
|
||||||
|
include $(TOPDIR)/feeds/packages/utils/fakeuname/fakeuname.mk
|
||||||
|
endif
|
||||||
|
|
||||||
TAR_OPTIONS+= --strip-components 1
|
TAR_OPTIONS+= --strip-components 1
|
||||||
TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS)
|
TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS)
|
||||||
|
@ -91,6 +96,9 @@ endef
|
||||||
# Otherwise yate ignores CPPFLAGS
|
# Otherwise yate ignores CPPFLAGS
|
||||||
TARGET_CFLAGS += $(TARGET_CPPFLAGS)
|
TARGET_CFLAGS += $(TARGET_CPPFLAGS)
|
||||||
|
|
||||||
|
CONFIGURE_VARS+= \
|
||||||
|
$(if $(CONFIG_HOST_OS_MACOS),PATH=$(FAKEUNAME_PATH):$(TARGET_PATH_PKG))
|
||||||
|
|
||||||
CONFIGURE_ARGS+= \
|
CONFIGURE_ARGS+= \
|
||||||
--disable-sctp \
|
--disable-sctp \
|
||||||
--disable-tdmcard \
|
--disable-tdmcard \
|
||||||
|
|
Loading…
Reference in a new issue