From 732cfee405d39348a476d38f192122f44a8964fd Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sat, 28 May 2022 23:45:30 +0200 Subject: [PATCH] - libbdplus: bump version to 0.2.0; rework build --- package/libbdplus/libbdplus.mk | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/package/libbdplus/libbdplus.mk b/package/libbdplus/libbdplus.mk index 53dade17..cf011747 100644 --- a/package/libbdplus/libbdplus.mk +++ b/package/libbdplus/libbdplus.mk @@ -4,13 +4,10 @@ # ################################################################################ -LIBBDPLUS_VERSION = 0.1.2 +LIBBDPLUS_VERSION = 0.2.0 LIBBDPLUS_DIR = libbdplus-$(LIBBDPLUS_VERSION) LIBBDPLUS_SOURCE = libbdplus-$(LIBBDPLUS_VERSION).tar.bz2 -LIBBDPLUS_SITE = ftp://ftp.videolan.org/pub/videolan/libbdplus/$(LIBBDPLUS_VERSION) - -$(DL_DIR)/$(LIBBDPLUS_SOURCE): - $(download) $(LIBBDPLUS_SITE)/$(LIBBDPLUS_SOURCE) +LIBBDPLUS_SITE = https://download.videolan.org/pub/videolan/libbdplus/$(LIBBDPLUS_VERSION) LIBBDPLUS_DEPENDENCIES = libaacs @@ -18,16 +15,17 @@ LIBBDPLUS_CONF_OPTS = \ --enable-shared \ --disable-static -libbdplus: $(LIBBDPLUS_DEPENDENCIES) $(DL_DIR)/$(LIBBDPLUS_SOURCE) | $(TARGET_DIR) - $(REMOVE)/$(PKG_DIR) - $(UNTAR)/$(PKG_SOURCE) - $(CHDIR)/$(PKG_DIR); \ - ./bootstrap; \ - $(CONFIGURE); \ - $(MAKE); \ - $(MAKE) install DESTDIR=$(TARGET_DIR) - $(REWRITE_LIBTOOL) +define LIBBDPLUS_BOOTSTRAP + $(CHDIR)/$($(PKG)_DIR); \ + ./bootstrap +endef +LIBBDPLUS_POST_PATCH_HOOKS += LIBBDPLUS_BOOTSTRAP + +define LIBBDPLUS_INSTALL_FILES $(INSTALL) -d $(TARGET_DIR)/.config/bdplus/vm0 $(INSTALL_COPY) $(PKG_FILES_DIR)/* $(TARGET_DIR)/.config/bdplus/vm0 - $(REMOVE)/$(PKG_DIR) - $(TOUCH) +endef +LIBBDPLUS_TARGET_FINALIZE_HOOKS += LIBBDPLUS_INSTALL_FILES + +libbdplus: | $(TARGET_DIR) + $(call autotools-package)