b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | # |
| 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 | # |
| 7 | include $(TOPDIR)/rules.mk |
| 8 | |
| 9 | PKG_NAME:=patchelf |
| 10 | PKG_VERSION:=0.18.0 |
| 11 | |
| 12 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 |
| 13 | PKG_SOURCE_URL:=https://github.com/NixOS/patchelf/releases/download/$(PKG_VERSION) |
| 14 | PKG_HASH:=1952b2a782ba576279c211ee942e341748fdb44997f704dd53def46cd055470b |
| 15 | |
| 16 | HOST_BUILD_PARALLEL:=1 |
| 17 | HOST_FIXUP:=autoreconf |
| 18 | |
| 19 | include $(INCLUDE_DIR)/host-build.mk |
| 20 | |
| 21 | define Host/Install |
| 22 | $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin |
| 23 | $(INSTALL_BIN) $(HOST_BUILD_DIR)/src/patchelf $(STAGING_DIR_HOST)/bin/patchelf |
| 24 | endef |
| 25 | |
| 26 | define Host/Clean |
| 27 | rm -rf $(STAGING_DIR_HOST)/bin/patchelf |
| 28 | endef |
| 29 | |
| 30 | $(eval $(call HostBuild)) |