packages/gawk: GNU version of awk

[juhosg: remove SVN keywords, add license header]

Signed-off-by: Xiangfu <xiangfu.z@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@30933 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg 2012-03-13 19:41:24 +00:00
parent 0e01d3a5b0
commit 1a49430aec

53
utils/gawk/Makefile Normal file
View File

@ -0,0 +1,53 @@
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=gawk
PKG_VERSION:=3.1.8
PKG_RELEASE:=1
PKG_SOURCE:=gawk-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/gawk/
PKG_MD5SUM:=35937a0f83f0efe7a8c2dee635624784
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/gawk-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/gawk
SECTION:=utils
CATEGORY:=Utilities
TITLE:=GAWK
URL:=http://www.gnu.org/software/gawk/
endef
define Package/gawk/description
GNU version of AWK.
endef
define Build/Configure
$(call Build/Configure/Default, \
--prefix=/usr --with-linux-headers="$(LINUX_DIR)" \
)
endef
define Package/gawk/install
$(INSTALL_DIR) $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/gawk $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/gawk $(1)/usr/bin/gawk-3.1.8
$(INSTALL_BIN) $(PKG_BUILD_DIR)/awklib/igawk $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/pgawk $(1)/usr/bin/
$(INSTALL_DIR) $(1)/usr/libexec/
$(INSTALL_DIR) $(1)/usr/libexec/awk/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/awklib/grcat $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/awklib/pwcat $(1)/usr/bin/
$(INSTALL_DIR) $(1)/usr/share/
$(INSTALL_DIR) $(1)/usr/share/awk/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/awklib/eg/lib/* $(1)/usr/share/awk
endef
$(eval $(call BuildPackage,gawk))