Root/gawk/Makefile

Source at commit 1b3135c created 8 years 11 months ago.
By Xiangfu Liu, new package: SDL-widgets: a GUI toolkit on top of the SDL libraries
1# 2010-06-22 22:44 jirka $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=gawk
6PKG_VERSION:=3.1.8
7PKG_RELEASE:=1
8
9PKG_SOURCE:=gawk-$(PKG_VERSION).tar.gz
10PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/gawk/
11PKG_MD5SUM:=35937a0f83f0efe7a8c2dee635624784
12PKG_CAT:=zcat
13
14PKG_BUILD_DIR:=$(BUILD_DIR)/gawk-$(PKG_VERSION)
15
16include $(INCLUDE_DIR)/package.mk
17
18define Package/gawk
19    SECTION:=utils
20    CATEGORY:=Utilities
21    TITLE:=GAWK
22    URL:=http://www.gnu.org/software/gawk/
23endef
24
25define Package/gawk/description
26    GNU version of AWK.
27endef
28
29define Build/Configure
30    $(call Build/Configure/Default, \
31        --prefix=/usr --with-linux-headers="$(LINUX_DIR)" \
32    )
33endef
34
35define Package/gawk/install
36    $(INSTALL_DIR) $(1)/usr/bin/
37    $(INSTALL_BIN) $(PKG_BUILD_DIR)/gawk $(1)/usr/bin/
38    $(INSTALL_BIN) $(PKG_BUILD_DIR)/gawk $(1)/usr/bin/gawk-3.1.8
39    $(INSTALL_BIN) $(PKG_BUILD_DIR)/awklib/igawk $(1)/usr/bin/
40    $(INSTALL_BIN) $(PKG_BUILD_DIR)/pgawk $(1)/usr/bin/
41    $(INSTALL_DIR) $(1)/usr/libexec/
42    $(INSTALL_DIR) $(1)/usr/libexec/awk/
43    $(INSTALL_BIN) $(PKG_BUILD_DIR)/awklib/grcat $(1)/usr/bin/
44    $(INSTALL_BIN) $(PKG_BUILD_DIR)/awklib/pwcat $(1)/usr/bin/
45    $(INSTALL_DIR) $(1)/usr/share/
46    $(INSTALL_DIR) $(1)/usr/share/awk/
47    $(INSTALL_BIN) $(PKG_BUILD_DIR)/awklib/eg/lib/* $(1)/usr/share/awk
48endef
49
50$(eval $(call BuildPackage,gawk))
51

Archive Download this file



interactive