summaryrefslogtreecommitdiff
path: root/gawk/Makefile
diff options
context:
space:
mode:
authorDavid Kühling <dvdkhlng@gmx.de>2010-09-18 20:47:21 +0200
committerDavid Kühling <dvdkhlng@gmx.de>2010-09-18 20:47:21 +0200
commit4bfce3b6e2ea095ea3d9f5d2d1018cc0a1e5ce09 (patch)
tree58590463ada82a27eca0889312c32450358249a8 /gawk/Makefile
downloadqipackages-fork-4bfce3b6e2ea095ea3d9f5d2d1018cc0a1e5ce09.tar.gz
Major overhaul and cleanup. Support for .ubi image file installations.grafted
Only compile&install a minimum host Gforth for bootstrapping the target Gforth, removing strange emacs-dependencies that cropped up earlier. Image file can now be built on the nanonote using 'gforth-update-image' command. Also, Gforth is now run through a wrapper that calls 'gforth-update-image' automatically, if necessary. Also first attempts at supporting libcc C-interface libraries pre-compiled on the host. Tested to compile on amd64 and i386.
Diffstat (limited to 'gawk/Makefile')
-rw-r--r--gawk/Makefile50
1 files changed, 50 insertions, 0 deletions
diff --git a/gawk/Makefile b/gawk/Makefile
new file mode 100644
index 0000000..01fb904
--- /dev/null
+++ b/gawk/Makefile
@@ -0,0 +1,50 @@
+# 2010-06-22 22:44 jirka $
+
+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))