lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

commit 53c786849197295b7c0e0249b56bb076aed94314
parent 97a6a903e84c3af94765d8d6c0bbfa9992e2ff1d
Author: Heinrich Schuchardt <xypron.glpk@gmx.de>
Date:   Tue, 22 Dec 2015 21:17:18 +0100

GNU Make

OpenWRT provides gcc but lacks make. So building foreign software is
difficult.

This patch provides GNU Make 4.1.

Built on Debian Jessie amd64.
Tested on TP-Link MR3020 (ar71xx/generic).

version 4:
	remove gnumake.h from the package
	We could package it in a separate make-dev package if really needed.

version 3:
	use Build/InstallDev to provide build time dependency

version 2:
	superfluous lines removed as suggested by Yousong Zhou

CC: Yousong Zhou <yszhou4tech@gmail.com>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>

Diffstat:
Adevel/make/Makefile | 46++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+), 0 deletions(-)

diff --git a/devel/make/Makefile b/devel/make/Makefile @@ -0,0 +1,46 @@ +# +# 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:=make +PKG_VERSION:=4.1 +PKG_RELEASE:=1 + +PKG_SOURCE_URL:=@GNU/make +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_MD5SUM:=654f9117957e6fa6a1c49a8f08270ec9 +PKG_MAINTAINER:=Heinrich Schuchardt <xypron.glpk@gmx.de> +PKG_LICENSE:=GPL-3.0+ + +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/make + SECTION:=devel + CATEGORY:=Development + TITLE:=make + URL:=https://www.gnu.org/software/make/ +endef + +define Package/make/description + The Make package contains a tool to create executables from source files. +endef + +define Package/make/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/make $(1)/usr/bin/ +endef + +# provide gnumake.h at build time for other packages +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include + $(CP) $(PKG_BUILD_DIR)/gnumake.h $(1)/usr/include/ +endef + +$(eval $(call BuildPackage,make))