logrotate: fix build with gcc 6
[buildroot-gz.git] / package / libpjsip / libpjsip.mk
blob2b5e18f2230e1d5cd24d3c704da28aab166b3d7f
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_CFLAGS = $(TARGET_CFLAGS) -DPJ_HAS_IPV6=1
18 # relocation truncated to fit: R_68K_GOT16O
19 ifeq ($(BR2_m68k_cf),y)
20 LIBPJSIP_CFLAGS += -mxgot
21 endif
23 LIBPJSIP_CONF_ENV = \
24 LD="$(TARGET_CC)" \
25 CFLAGS="$(LIBPJSIP_CFLAGS)"
27 LIBPJSIP_CONF_OPTS = \
28 --disable-sound \
29 --disable-gsm-codec \
30 --disable-speex-codec \
31 --disable-speex-aec \
32 --disable-resample \
33 --disable-video \
34 --disable-opencore-amr \
35 --disable-g7221-codec \
36 --disable-ilbc-codec \
37 --with-external-srtp=$(STAGING_DIR)/usr
39 ifeq ($(BR2_PACKAGE_OPENSSL),y)
40 LIBPJSIP_DEPENDENCIES += openssl
41 LIBPJSIP_CONF_OPTS += --with-ssl=$(STAGING_DIR)/usr
42 else
43 LIBPJSIP_CONF_OPTS += --disable-ssl
44 endif
46 ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
47 LIBPJSIP_DEPENDENCIES += util-linux
48 endif
50 $(eval $(autotools-package))