Build libeXosip2 after openssl if enabled, and explicitly disable support for it otherwise, so configure doesn't end up looking for it on host. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
36 lines
1.0 KiB
Makefile
36 lines
1.0 KiB
Makefile
#############################################################
|
|
#
|
|
# libeXosip2
|
|
#
|
|
#############################################################
|
|
LIBEXOSIP2_VERSION = 3.5.0
|
|
LIBEXOSIP2_SOURCE = libexosip2_$(LIBEXOSIP2_VERSION).orig.tar.gz
|
|
LIBEXOSIP2_PATCH = libexosip2_$(LIBEXOSIP2_VERSION)-1.diff.gz
|
|
LIBEXOSIP2_SITE = $(BR2_DEBIAN_MIRROR)/debian/pool/main/libe/libexosip2
|
|
LIBEXOSIP2_INSTALL_STAGING = YES
|
|
|
|
LIBEXOSIP2_DEPENDENCIES = host-pkg-config libosip2
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
LIBEXOSIP2_DEPENDENCIES += openssl
|
|
LIBEXOSIP2_CONF_OPT += --enable-openssl
|
|
else
|
|
LIBEXOSIP2_CONF_OPT += --disable-openssl
|
|
endif
|
|
|
|
ifneq ($(LIBEXOSIP2_PATCH),)
|
|
define LIBEXOSIP2_DEBIAN_PATCHES
|
|
if [ -d $(@D)/debian/patches ]; then \
|
|
(cd $(@D)/debian/patches && for i in *; \
|
|
do $(SED) 's,^\+\+\+ .*cvs-$(LIBEXOSIP2_VERSION)/,+++ cvs-$(LIBEXOSIP2_VERSION)/,' $$i; \
|
|
done; \
|
|
); \
|
|
support/scripts/apply-patches.sh $(@D) $(@D)/debian/patches \*; \
|
|
fi
|
|
endef
|
|
endif
|
|
|
|
LIBEXOSIP2_POST_PATCH_HOOKS += LIBEXOSIP2_DEBIAN_PATCHES
|
|
|
|
$(eval $(call AUTOTARGETS))
|