[utils/sed] add GNU streams editor
authorAlexandros C. Couloumbis <alex@ozo.com>
Sun, 25 Apr 2010 07:51:51 +0000 (07:51 +0000)
committerAlexandros C. Couloumbis <alex@ozo.com>
Sun, 25 Apr 2010 07:51:51 +0000 (07:51 +0000)
SVN-Revision: 21152

utils/sed/Makefile [new file with mode: 0644]

diff --git a/utils/sed/Makefile b/utils/sed/Makefile
new file mode 100644 (file)
index 0000000..46f3b73
--- /dev/null
@@ -0,0 +1,44 @@
+# 
+# Copyright (C) 2006 - 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:=sed
+PKG_VERSION:=4.2.1
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
+PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
+PKG_MD5SUM:=7d310fbd76e01a01115075c1fd3f455a
+PKG_CAT:=bzcat
+
+PKG_INSTALL:=1
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/sed
+  SECTION:=utils
+  CATEGORY:=Utilities
+  TITLE:=GNU streams editor
+  URL:=http://ftp.gnu.org/gnu/sed/
+endef
+
+define Package/sed/description
+       Sed (streams editor) takes text input and performs some operation 
+       (or set of operations) on it and outputs the modified text.
+endef
+
+MAKE_FLAGS += \
+       CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
+       PREFIX="/usr" \
+       HOST="$(GNU_TARGET_NAME)" \
+
+define Package/sed/install
+       $(INSTALL_DIR) $(1)/usr/bin
+       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sed $(1)/usr/bin/
+endef
+
+$(eval $(call BuildPackage,sed))