blob: bbda3a9e40a48eb87090bc7e444ef362c320881e [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#
2# Copyright (C) 2015 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:=patchelf
10PKG_VERSION:=0.18.0
11
12PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
13PKG_SOURCE_URL:=https://github.com/NixOS/patchelf/releases/download/$(PKG_VERSION)
14PKG_HASH:=1952b2a782ba576279c211ee942e341748fdb44997f704dd53def46cd055470b
15
16HOST_BUILD_PARALLEL:=1
17HOST_FIXUP:=autoreconf
18
19include $(INCLUDE_DIR)/host-build.mk
20
21define Host/Install
22 $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin
23 $(INSTALL_BIN) $(HOST_BUILD_DIR)/src/patchelf $(STAGING_DIR_HOST)/bin/patchelf
24endef
25
26define Host/Clean
27 rm -rf $(STAGING_DIR_HOST)/bin/patchelf
28endef
29
30$(eval $(call HostBuild))