odroid-mali: new package
[buildroot-gz.git] / package / libpjsip / libpjsip.mk
blobebb5897d0973b58d6f92336773d5c9fe9eb840f1
1 ################################################################################
3 # libpjsip
5 ################################################################################
7 LIBPJSIP_VERSION = 2.4.5
8 LIBPJSIP_SOURCE = pjproject-$(LIBPJSIP_VERSION).tar.bz2
9 LIBPJSIP_SITE = http://www.pjsip.org/release/$(LIBPJSIP_VERSION)
10 LIBPJSIP_DEPENDENCIES = libsrtp
11 LIBPJSIP_LICENSE = GPLv2+
12 LIBPJSIP_LICENSE_FILES = COPYING
13 LIBPJSIP_INSTALL_STAGING = YES
14 LIBPJSIP_MAKE = $(MAKE1)
16 LIBPJSIP_CONF_ENV = \
17 LD="$(TARGET_CC)" \
18 CFLAGS="$(TARGET_CFLAGS) -DPJ_HAS_IPV6=1"
20 LIBPJSIP_CONF_OPTS = \
21 --disable-sound \
22 --disable-gsm-codec \
23 --disable-speex-codec \
24 --disable-speex-aec \
25 --disable-resample \
26 --disable-video \
27 --disable-opencore-amr \
28 --disable-g7221-codec \
29 --disable-ilbc-codec \
30 --with-external-srtp=$(STAGING_DIR)/usr
32 ifeq ($(BR2_PACKAGE_OPENSSL),y)
33 LIBPJSIP_DEPENDENCIES += openssl
34 LIBPJSIP_CONF_OPTS += --with-ssl=$(STAGING_DIR)/usr
35 else
36 LIBPJSIP_CONF_OPTS += --disable-ssl
37 endif
39 ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
40 LIBPJSIP_DEPENDENCIES += util-linux
41 endif
43 $(eval $(autotools-package))