summaryrefslogtreecommitdiff
path: root/package/libosip2/libosip2.mk
blob: da3f9a277ba55ff0dcb0092f44a858cdfdc1a831 (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
#############################################################
#
# libosip2
#
#############################################################
LIBOSIP2_VERSION = 3.3.0
LIBOSIP2_SOURCE = libosip2_$(LIBOSIP2_VERSION).orig.tar.gz
LIBOSIP2_PATCH = libosip2_$(LIBOSIP2_VERSION)-1.diff.gz
LIBOSIP2_SITE = $(BR2_DEBIAN_MIRROR)/debian/pool/main/libo/libosip2
LIBOSIP2_INSTALL_STAGING = YES

ifneq ($(LIBOSIP2_PATCH),)
define LIBOSIP2_DEBIAN_PATCHES
	if [ -d $(@D)/debian/patches ]; then \
		(cd $(@D)/debian/patches && for i in *; \
		 do $(SED) 's,^\+\+\+ .*cvs-$(LIBOSIP2_VERSION)/,+++ cvs-$(LIBOSIP2_VERSION)/,' $$i; \
		 done; \
		); \
		support/scripts/apply-patches.sh $(@D) $(@D)/debian/patches \*; \
	fi
endef
endif

LIBOSIP2_POST_PATCH_HOOKS += LIBOSIP2_DEBIAN_PATCHES

$(eval $(call AUTOTARGETS,package,libosip2))