libosip2: change site location and bump to 3.3.0
authorMartin Banky <martin.banky@gmail.com>
Sat, 2 Oct 2010 22:06:23 +0000 (15:06 -0700)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 4 Oct 2010 09:28:32 +0000 (11:28 +0200)
Change the site location to debian mirror to get the latest debian patches.

Signed-off-by: Martin Banky <Martin.Banky@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
CHANGES
package/libosip2/libosip2.mk

diff --git a/CHANGES b/CHANGES
index 69ec5d0b7fddfab32e6b126164ce1579df1cee70..e14801b3f67a3b613bf3ab7b4938bb6147c076f8 100644 (file)
--- a/CHANGES
+++ b/CHANGES
        ifplugd, iperf, iproute2, iptables, iw, jpeg, kexec, kismet,
        less, libcgi, libcurl, libdaemon, libdnet, liberation,
        libevent, libglade, libgtk2, libiconv, libidn, libmms, libnl,
-       liboil, libpcap, libpng, libtool, libungif, libxml2, libxslt,
-       lighttpd, lite, lm-sensors, lockfile-progs, logrotate, m4,
-       mdadm, mesa3d, metacity, mtd-utils, mysql_client, nano, nbd,
-       ncftp, neon, netperf, netsnmp, ng-spice-rework, ntfsprogs,
+       liboil, libosip2, libpcap, libpng, libtool, libungif, libxml2,
+       libxslt, lighttpd, lite, lm-sensors, lockfile-progs, logrotate,
+       m4, mdadm, mesa3d, metacity, mtd-utils, mysql_client, nano,
+       nbd, ncftp, neon, netperf, netsnmp, ng-spice-rework, ntfsprogs,
        ntp, openntpd, openssh, openvpn, oprofile, pango, patch, pcre,
        php, pkg-config, prboom, radvd, rdesktop, ruby, qt, quagga,
        samba, sawman, sdl_mixer, sdl_sound, setserial,
index 441b84c69617e02747794c5069305b0906bbec42..aa15332c9f5f346e817c429ec870bb3dd02bfe5a 100644 (file)
@@ -3,14 +3,24 @@
 # libosip2
 #
 #############################################################
-LIBOSIP2_VERSION=3.1.0
-LIBOSIP2_SOURCE=libosip2-$(LIBOSIP2_VERSION).tar.gz
-LIBOSIP2_SITE=http://www.antisip.com/download/exosip2
-LIBOSIP2_INSTALL_STAGING=YES
+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
 
-LIBOSIP2_CONF_OPT = \
-       --with-gnu-ld \
-       --enable-shared \
-       --enable-static
+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; \
+               ); \
+               toolchain/patch-kernel.sh $(@D) $(@D)/debian/patches \*; \
+       fi
+endef
+endif
+
+LIBOSIP2_POST_PATCH_HOOKS += LIBOSIP2_DEBIAN_PATCHES
 
 $(eval $(call AUTOTARGETS,package,libosip2))