blob: 5a60bb0a7600ff8a322794ec687b2b615ac87626 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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_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))
|