1
1
mirror of https://github.com/OpenVoiceOS/OpenVoiceOS synced 2025-01-06 14:27:43 +01:00
OpenVoiceOS/buildroot-external/package/baresip/baresip.mk
j1nx 0b06159f4b MycroftOS: Add libre, librem and baresip package.
This so users can install the voip skill from jarbas.
2020-06-08 10:50:46 +02:00

60 lines
1.5 KiB
Makefile

#############################################################
#
# BARESIP
#
#############################################################
BARESIP_VERSION = 0.6.5
BARESIP_SITE = http://www.creytiv.com/pub
BARESIP_DEPENDENCIES = libre librem zlib
BARESIP_MAKE_ENV = \
$(TARGET_CONFIGURE_OPTS) \
SYSROOT=$(STAGING_DIR)/usr \
LD="$(TARGET_CC)" \
LFLAGS="$(TARGET_LDFLAGS)"
BARESIP_MAKE_ARGS = \
LIBRE_MK="$(STAGING_DIR)/usr/share/re/re.mk" \
LIBRE_INC="$(STAGING_DIR)/usr/include/re" \
LIBRE_SO="$(STAGING_DIR)/usr/lib" \
LIBREM_MK="$(STAGING_DIR)/usr/share/rem/rem.mk" \
LIBREM_INC="$(STAGING_DIR)/usr/include/rem" \
LIBREM_SO="$(STAGING_DIR)/usr/lib"
ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
BARESIP_DEPENDENCIES += alsa-lib
endif
ifeq ($(BR2_PACKAGE_FFMPEG_SWSCALE),y)
BARESIP_DEPENDENCIES += ffmpeg
BARESIP_MAKE_ENV += \
CFLAGS+=-DCODEC_TYPE_VIDEO=AVMEDIA_TYPE_VIDEO
endif
ifeq ($(BR2_PACKAGE_LIBSNDFILE),y)
BARESIP_DEPENDENCIES += libsndfile
endif
ifeq ($(BR2_PACKAGE_SPEEX),y)
BARESIP_DEPENDENCIES += speex
endif
ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
BARESIP_DEPENDENCIES += util-linux
endif
ifeq ($(BR2_PACKAGE_XORG7),y)
BARESIP_DEPENDENCIES += xlib_libXext
endif
define BARESIP_BUILD_CMDS
$(BARESIP_MAKE_ENV) $(MAKE) $(BARESIP_MAKE_ARGS) -C $(@D) all
endef
define BARESIP_INSTALL_TARGET_CMDS
$(BARESIP_MAKE_ENV) DESTDIR=$(TARGET_DIR) $(MAKE) $(BARESIP_MAKE_ARGS) -C $(@D) install
endef
$(eval $(generic-package))