tools/patchelf: fix portability issue breaking mac os x builds (#18998)
[openwrt/svn-archive/archive.git] / tools / patchelf / Makefile
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.8
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
13 PKG_SOURCE_URL:=http://nixos.org/releases/patchelf/patchelf-$(PKG_VERSION)
14 PKG_MD5SUM:=5b151e3c83b31f5931b4a9fc01635bfd
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 $(eval $(call HostBuild))