calvaria: Add p54spi EEPROM generator
[openwrt/svn-archive/archive.git] / utils / sed / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=sed
11 PKG_VERSION:=4.2.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
16 PKG_MD5SUM:=7d310fbd76e01a01115075c1fd3f455a
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/sed
23 SECTION:=utils
24 CATEGORY:=Utilities
25 TITLE:=GNU streams editor
26 URL:=http://ftp.gnu.org/gnu/sed/
27 endef
28
29 define Package/sed/description
30 Sed (streams editor) takes text input and performs some operation
31 (or set of operations) on it and outputs the modified text.
32 endef
33
34 MAKE_FLAGS += \
35 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
36 PREFIX="/usr" \
37 HOST="$(GNU_TARGET_NAME)" \
38
39 define Package/sed/install
40 $(INSTALL_DIR) $(1)/usr/bin
41 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sed $(1)/usr/bin/
42 endef
43
44 $(eval $(call BuildPackage,sed))