diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2010-04-10 18:58:28 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2010-04-13 16:55:13 +0200 |
commit | aca0487261702a0cdf16551c262d83f8879329d1 (patch) | |
tree | 3204e2ec5ab1175b4f1d6c87cdca610d8a577d17 /package/libosip2 | |
parent | 0dae022b7a8745d62a3f275b9e7c9a0cdef700c0 (diff) |
libosip2: convert to the autotools infrastructure
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/libosip2')
-rw-r--r-- | package/libosip2/libosip2.mk | 83 |
1 files changed, 6 insertions, 77 deletions
diff --git a/package/libosip2/libosip2.mk b/package/libosip2/libosip2.mk index 04a75c5dd..441b84c69 100644 --- a/package/libosip2/libosip2.mk +++ b/package/libosip2/libosip2.mk @@ -3,85 +3,14 @@ # libosip2 # ############################################################# - LIBOSIP2_VERSION=3.1.0 LIBOSIP2_SOURCE=libosip2-$(LIBOSIP2_VERSION).tar.gz LIBOSIP2_SITE=http://www.antisip.com/download/exosip2 -LIBOSIP2_DIR=$(BUILD_DIR)/libosip2-$(LIBOSIP2_VERSION) -LIBOSIP2_CAT:=$(ZCAT) - -$(DL_DIR)/$(LIBOSIP2_SOURCE): - $(call DOWNLOAD,$(LIBOSIP2_SITE),$(LIBOSIP2_SOURCE)) - -$(LIBOSIP2_DIR)/.unpacked: $(DL_DIR)/$(LIBOSIP2_SOURCE) - $(LIBOSIP2_CAT) $(DL_DIR)/$(LIBOSIP2_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - - $(CONFIG_UPDATE) $(LIBOSIP2_DIR) - touch $(LIBOSIP2_DIR)/.unpacked - -$(LIBOSIP2_DIR)/.configured: $(LIBOSIP2_DIR)/.unpacked - (cd $(LIBOSIP2_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 \ - --exec-prefix=/usr \ - --bindir=/usr/bin \ - --sbindir=/usr/sbin \ - --libexecdir=/usr/lib \ - --sysconfdir=/etc \ - --datadir=/usr/share \ - --localstatedir=/var \ - --mandir=/usr/man \ - --infodir=/usr/info \ - --includedir=/usr/include \ - --with-gnu-ld \ - --enable-shared \ - --enable-static \ - $(DISABLE_NLS) \ - ) - touch $(LIBOSIP2_DIR)/.configured - -$(LIBOSIP2_DIR)/libosip2.so: $(LIBOSIP2_DIR)/.configured - $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(LIBOSIP2_DIR) - -$(STAGING_DIR)/usr/lib/libosip2.so: $(LIBOSIP2_DIR)/.configured - $(MAKE) DESTDIR=$(STAGING_DIR) -C $(LIBOSIP2_DIR) install - $(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/usr/lib\',g" $(STAGING_DIR)/usr/lib/libosip2.la - $(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/usr/lib\',g" $(STAGING_DIR)/usr/lib/libosipparser2.la - -$(TARGET_DIR)/usr/lib/libosip2.so: $(STAGING_DIR)/usr/lib/libosip2.so - mkdir -p $(TARGET_DIR)/usr/lib - cp -dpf $(STAGING_DIR)/usr/lib/libosip2.so* $(TARGET_DIR)/usr/lib/ - $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libosip2.so* - -$(TARGET_DIR)/usr/lib/libosipparser2.so: $(STAGING_DIR)/usr/lib/libosip2.so - mkdir -p $(TARGET_DIR)/usr/lib - cp -dpf $(STAGING_DIR)/usr/lib/libosipparser2.so* $(TARGET_DIR)/usr/lib/ - $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libosipparser2.so* +LIBOSIP2_INSTALL_STAGING=YES -libosip2: $(TARGET_DIR)/usr/lib/libosip2.so $(TARGET_DIR)/usr/lib/libosipparser2.so +LIBOSIP2_CONF_OPT = \ + --with-gnu-ld \ + --enable-shared \ + --enable-static -libosip2-source: $(DL_DIR)/$(LIBOSIP2_SOURCE) - -libosip2-clean: - -$(MAKE) -C $(LIBOSIP2_DIR) clean - -rm -f $(STAGING_DIR)/usr/lib/libosip2.* - -rm -f $(STAGING_DIR)/usr/lib/libosipparser2.* - -rm -f $(TARGET_DIR)/usr/lib/libosip2.* - -rm -f $(TARGET_DIR)/usr/lib/libosipparser2.* - -libosip2-dirclean: - rm -rf $(LIBOSIP2_DIR) - -.PHONY: libosip2-headers libosip2-target-headers -############################################################# -# -# Toplevel Makefile options -# -############################################################# -ifeq ($(BR2_PACKAGE_LIBOSIP2),y) -TARGETS+=libosip2 -endif +$(eval $(call AUTOTARGETS,package,libosip2)) |