summaryrefslogtreecommitdiffstats
path: root/package/libeXosip2/libeXosip2.mk
blob: 69fdca326403a68cd385cea6655fdaecb745022e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#############################################################
#
# libeXosip2
#
#############################################################
LIBEXOSIP2_VERSION = 3.3.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

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))