From 5197bcea2e359b90eec189bafad59964389b73ff Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sat, 28 May 2022 15:30:52 +0200 Subject: [PATCH] - libsigc++: rework build --- package/libsigc/libsigc.mk | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/package/libsigc/libsigc.mk b/package/libsigc/libsigc.mk index 5093e4d9..84f66f75 100644 --- a/package/libsigc/libsigc.mk +++ b/package/libsigc/libsigc.mk @@ -9,24 +9,17 @@ LIBSIGC_DIR = libsigc++-$(LIBSIGC_VERSION) LIBSIGC_SOURCE = libsigc++-$(LIBSIGC_VERSION).tar.xz LIBSIGC_SITE = https://download.gnome.org/sources/libsigc++/$(basename $(LIBSIGC_VERSION)) -$(DL_DIR)/$(LIBSIGC_SOURCE): - $(download) $(LIBSIGC_SITE)/$(LIBSIGC_SOURCE) - LIBSIGC_CONF_OPTS = \ --disable-benchmark \ --disable-documentation \ --disable-warnings \ --without-boost -libsigc: $(DL_DIR)/$(LIBSIGC_SOURCE) | $(TARGET_DIR) - $(REMOVE)/$(PKG_DIR) - $(UNTAR)/$(PKG_SOURCE) - $(CHDIR)/$(PKG_DIR); \ - $(CONFIGURE); \ - $(MAKE); \ - $(MAKE) install DESTDIR=$(TARGET_DIR); \ - cp sigc++config.h $(TARGET_includedir) +define LIBSIGC_INSTALL_HEADER + cp $(PKG_BUILD_DIR)/sigc++config.h $(TARGET_includedir) ln -sf ./sigc++-2.0/sigc++ $(TARGET_includedir)/sigc++ - $(REWRITE_LIBTOOL) - $(REMOVE)/$(PKG_DIR) - $(TOUCH) +endef +LIBSIGC_PRE_FOLLOWUP_HOOKS += LIBSIGC_INSTALL_HEADER + +libsigc: | $(TARGET_DIR) + $(call autotools-package)