libeXosip2: convert to autotargets and bump to 3.3.0
Signed-off-by: Martin Banky <Martin.Banky@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
3d1de0ed96
commit
05e4b940c9
23
CHANGES
23
CHANGES
@ -31,17 +31,18 @@
|
||||
gtk2-themes, gtkperf, gvfs, haserl, hdparm, hostapd, hwdata,
|
||||
ifplugd, iperf, iproute2, iptables, iw, jpeg, kexec, kismet,
|
||||
less, libcgi, libcurl, libdaemon, libdnet, liberation,
|
||||
libevent, libglade, libgtk2, libiconv, libidn, libmms, libnl,
|
||||
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,
|
||||
shared-mime-info, speex, sqlite, squashfs, strace, sylpheed,
|
||||
taglib, tcpdump, thttpd, tiff, tn5250, udev, udpcast,
|
||||
usbmount, usbutils, vsftpd, vtun, which, wpa_supplicant,
|
||||
libevent, libeXosip2, libglade, libgtk2, libiconv, libidn,
|
||||
libmms, libnl, 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, shared-mime-info, speex,
|
||||
sqlite, squashfs, strace, sylpheed, taglib, tcpdump, thttpd,
|
||||
tiff, tn5250, udev, udpcast, usbmount, usbutils, vsftpd, vtun,
|
||||
which, wpa_supplicant,
|
||||
xdriver_xf86-input-{acecad,aiptek,evdev,joystick,keyboard},
|
||||
xdriver-xf86-input-{mouse,synaptics,vmmouse,void},
|
||||
xdriver-xf86-video-{apm,ark,ast,ati,chips,cirrus,dummy,fbdev},
|
||||
|
@ -3,93 +3,26 @@
|
||||
# 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_VERSION=3.1.0
|
||||
LIBEXOSIP2_SOURCE=libeXosip2-$(LIBEXOSIP2_VERSION).tar.gz
|
||||
LIBEXOSIP2_SITE=http://www.antisip.com/download/exosip2
|
||||
LIBEXOSIP2_DIR=$(BUILD_DIR)/libeXosip2-$(LIBEXOSIP2_VERSION)
|
||||
LIBEXOSIP2_CAT:=$(ZCAT)
|
||||
LIBEXOSIP2_DEPENDENCIES = host-pkg-config libosip2
|
||||
|
||||
$(DL_DIR)/$(LIBEXOSIP2_SOURCE):
|
||||
$(call DOWNLOAD,$(LIBEXOSIP2_SITE),$(LIBEXOSIP2_SOURCE))
|
||||
|
||||
$(LIBEXOSIP2_DIR)/.unpacked: $(DL_DIR)/$(LIBEXOSIP2_SOURCE)
|
||||
$(LIBEXOSIP2_CAT) $(DL_DIR)/$(LIBEXOSIP2_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
||||
$(CONFIG_UPDATE) $(LIBEXOSIP2_DIR)
|
||||
touch $(LIBEXOSIP2_DIR)/.unpacked
|
||||
|
||||
$(LIBEXOSIP2_DIR)/.configured: $(LIBEXOSIP2_DIR)/.unpacked
|
||||
(cd $(LIBEXOSIP2_DIR); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
$(TARGET_CONFIGURE_ARGS) \
|
||||
./configure $(QUIET) \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--enable-shared \
|
||||
--enable-static \
|
||||
$(DISABLE_NLS) \
|
||||
)
|
||||
touch $@
|
||||
|
||||
$(LIBEXOSIP2_DIR)/.compiled: $(LIBEXOSIP2_DIR)/.configured
|
||||
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(LIBEXOSIP2_DIR)
|
||||
touch $@
|
||||
|
||||
#LDFLAGS=$(TARGET_LDFLAGS)
|
||||
|
||||
$(STAGING_DIR)/usr/lib/libeXosip2.so: $(LIBEXOSIP2_DIR)/.compiled
|
||||
cp -dpf $(LIBEXOSIP2_DIR)/src/.libs/libeXosip2.so* $(STAGING_DIR)/usr/lib
|
||||
touch $@
|
||||
|
||||
$(STAGING_DIR)/usr/lib/libeXosip2.a: $(LIBEXOSIP2_DIR)/.compiled
|
||||
cp -dpf $(LIBEXOSIP2_DIR)/src/.libs/libeXosip2.a $(STAGING_DIR)/usr/lib
|
||||
cp -dpf $(LIBEXOSIP2_DIR)/include/*.h $(STAGING_DIR)/usr/include
|
||||
touch $@
|
||||
|
||||
$(STAGING_DIR)/usr/lib/libeXosip2.la: $(LIBEXOSIP2_DIR)/.compiled
|
||||
cp -dpf $(LIBEXOSIP2_DIR)/src/libeXosip2.la $(STAGING_DIR)/usr/lib
|
||||
$(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/usr/lib\',g" $(STAGING_DIR)/usr/lib/libeXosip2.la
|
||||
touch $@
|
||||
|
||||
$(STAGING_DIR)/usr/bin/sip_reg: $(LIBEXOSIP2_DIR)/.compiled
|
||||
cp -dpf $(LIBEXOSIP2_DIR)/tools/.libs/sip_reg $(STAGING_DIR)/usr/bin
|
||||
touch $@
|
||||
|
||||
|
||||
$(TARGET_DIR)/usr/lib/libeXosip2.so: $(STAGING_DIR)/usr/lib/libeXosip2.so
|
||||
mkdir -p $(TARGET_DIR)/usr/lib
|
||||
cp -dpf $(STAGING_DIR)/usr/lib/libeXosip2.so* $(TARGET_DIR)/usr/lib/
|
||||
$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libeXosip2.so*
|
||||
touch $@
|
||||
|
||||
$(TARGET_DIR)/usr/bin/sip_reg: $(STAGING_DIR)/usr/bin/sip_reg
|
||||
mkdir -p $(TARGET_DIR)/usr/bin
|
||||
cp -dpf $(STAGING_DIR)/usr/bin/sip_reg $(TARGET_DIR)/usr/bin
|
||||
touch $@
|
||||
|
||||
|
||||
|
||||
libeXosip2: host-pkg-config libosip2 $(TARGET_DIR)/usr/lib/libeXosip2.so
|
||||
|
||||
libeXosip2-source: $(DL_DIR)/$(LIBEXOSIP2_SOURCE)
|
||||
|
||||
libeXosip2-clean:
|
||||
-$(MAKE) -C $(LIBEXOSIP2_DIR) clean
|
||||
-rm -f $(STAGING_DIR)/usr/lib/libeXosip2.*
|
||||
-rm -f $(TARGET_DIR)/usr/lib/libeXosip2.*
|
||||
|
||||
|
||||
libeXosip2-dirclean:
|
||||
rm -rf $(LIBEXOSIP2_DIR)
|
||||
|
||||
.PHONY: libeXosip2-headers libeXosip2-target-headers
|
||||
#############################################################
|
||||
#
|
||||
# Toplevel Makefile options
|
||||
#
|
||||
#############################################################
|
||||
ifeq ($(BR2_PACKAGE_LIBEXOSIP2),y)
|
||||
TARGETS+=libeXosip2
|
||||
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; \
|
||||
); \
|
||||
toolchain/patch-kernel.sh $(@D) $(@D)/debian/patches \*; \
|
||||
fi
|
||||
endef
|
||||
endif
|
||||
|
||||
LIBEXOSIP2_POST_PATCH_HOOKS += LIBEXOSIP2_DEBIAN_PATCHES
|
||||
|
||||
$(eval $(call AUTOTARGETS,package,libeXosip2))
|
||||
|
Loading…
Reference in New Issue
Block a user