From: nynex Date: Wed, 22 Apr 2015 15:50:37 +0000 (+0000) Subject: added make and build-essential X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f1f8b0d3eeb2ae460a37a3f6e24b32712b7ae007;p=librecmc%2Flibrecmc-fossil.git added make and build-essential --- diff --git a/trunk/package/devel/build-essential/Makefile b/trunk/package/devel/build-essential/Makefile new file mode 100644 index 00000000..37bffb62 --- /dev/null +++ b/trunk/package/devel/build-essential/Makefile @@ -0,0 +1,33 @@ +# +# Copyright (C) 2008 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +# blogic@openwrt.org + +include $(TOPDIR)/rules.mk + +PKG_NAME:=build-essential +PKG_RELEASE:=1 +PKG_VERSION:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/build-essential + SECTION:=devel + CATEGORY:=Development + TITLE:=Build essentials + DEPENDS=+gcc +make +binutils +patch +diffutils @NO_STRIP + PKGARCH:=all +endef + +define Build/Compile + +endef + +define Package/build-essential/install + cp -r ./files/* $(1) +endef + +$(eval $(call BuildPackage,build-essential)) diff --git a/trunk/package/devel/build-essential/files/usr/src/hello/hello.c b/trunk/package/devel/build-essential/files/usr/src/hello/hello.c new file mode 100644 index 00000000..e693fd8c --- /dev/null +++ b/trunk/package/devel/build-essential/files/usr/src/hello/hello.c @@ -0,0 +1,8 @@ +#include + +int main(int argc, char **argv) +{ + printf("Hello OpenWrt\n"); + + return 0; +} diff --git a/trunk/package/devel/make/Makefile b/trunk/package/devel/make/Makefile new file mode 100644 index 00000000..81366af3 --- /dev/null +++ b/trunk/package/devel/make/Makefile @@ -0,0 +1,37 @@ +# +# Copyright (C) 2007-2010 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:=3.81 +PKG_RELEASE:=1 +PKG_SOURCE_URL:=@GNU/make +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_MD5SUM:=354853e0b2da90c527e35aabb8d6f1e6 +PKG_INSTALL:=1 +PKG_BUILD_PARALLEL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/make + SECTION:=devel + CATEGORY:=Development + DEPENDS:=+libelf1 + TITLE:=make + URL:=http://www.gnu.org/software/make/ +endef + +define Package/make/description + The Make package contains a program for compiling packages +endef + +define Package/make/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/make $(1)/usr/bin/ +endef + +$(eval $(call BuildPackage,make))