2015-02-10 15:48:32 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2015 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=patchelf
|
2023-01-12 08:27:06 +00:00
|
|
|
PKG_VERSION:=0.17.2
|
2015-02-10 15:48:32 +00:00
|
|
|
|
2022-12-16 06:40:49 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=https://github.com/NixOS/patchelf/releases/download/$(PKG_VERSION)
|
2023-01-12 08:27:06 +00:00
|
|
|
PKG_HASH:=bae2ea376072e422c196218dd9bdef0548ccc08da4de9f36b4672df84ea2d8e2
|
2015-02-10 15:48:32 +00:00
|
|
|
|
|
|
|
HOST_BUILD_PARALLEL:=1
|
|
|
|
HOST_FIXUP:=autoreconf
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
|
|
|
define Host/Install
|
|
|
|
$(INSTALL_DIR) $(STAGING_DIR_HOST)/bin
|
|
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/src/patchelf $(STAGING_DIR_HOST)/bin/patchelf
|
|
|
|
endef
|
|
|
|
|
2022-09-28 08:23:56 +00:00
|
|
|
define Host/Clean
|
|
|
|
rm -rf $(STAGING_DIR_HOST)/bin/patchelf
|
|
|
|
endef
|
|
|
|
|
2015-02-10 15:48:32 +00:00
|
|
|
$(eval $(call HostBuild))
|