summaryrefslogtreecommitdiff
path: root/wordgrinder
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 /wordgrinder
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 'wordgrinder')
-rw-r--r--wordgrinder/Makefile41
-rw-r--r--wordgrinder/patches/001-pmfile.patch63
2 files changed, 104 insertions, 0 deletions
diff --git a/wordgrinder/Makefile b/wordgrinder/Makefile
new file mode 100644
index 0000000..9a478ee
--- /dev/null
+++ b/wordgrinder/Makefile
@@ -0,0 +1,41 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=wordgrinder
+PKG_VERSION:=0.3.3
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
+PKG_SOURCE_URL:=@SF/$(PKG_NAME)
+PKG_MD5SUM:=1ae3bcf2fc4ee027bdd9518a73733505
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/wordgrinder
+ SECTION:=utils
+ CATEGORY:=Utilities
+ TITLE:=A word processor for processing words
+ URL:=http://wordgrinder.sourceforge.net/
+ SUBMENU:=Editors
+ DEPENDS:=+libncursesw lua luafilesystem BROKEN
+endef
+
+define Package/wordgrinder/description
+ WordGrinder is a word processor for processing words. It is not WYSIWYG. It is not point and click. It is not a desktop publisher. It is not a text editor. It is not do fonts and it barely does styles. What it does do is words. It's designed for writing text. It gets out of your way and lets you type.
+endef
+
+define Build/Configure
+endef
+
+define Build/Compile
+ (cd $(PKG_BUILD_DIR);\
+ STAGING_DIR="$(STAGING_DIR)"\
+ TARGET_CC="$(TARGET_CC)"\
+ ./pm);$
+endef
+
+define Package/wordgrinder/install
+ $(INSTALL_DIR) $(1)/usr/bin
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/wordgrinder $(1)/usr/bin/
+endef
+
+$(eval $(call BuildPackage,wordgrinder))
diff --git a/wordgrinder/patches/001-pmfile.patch b/wordgrinder/patches/001-pmfile.patch
new file mode 100644
index 0000000..9362584
--- /dev/null
+++ b/wordgrinder/patches/001-pmfile.patch
@@ -0,0 +1,63 @@
+--- a/pmfile 2009-12-13 06:44:53.000000000 -0700
++++ b/pmfile 2010-09-14 22:36:03.000000000 -0600
+@@ -12,6 +12,9 @@
+ DATE = "13 December 2009"
+ VERSION = "0.3.3"
+ FILEFORMAT = 3
++STAGING_DIR = os.getenv("STAGING_DIR")
++CCOMPILER = os.getenv("TARGET_CC")
++LUAC = "cat %in% > %out%"
+
+ -----------------------------------------------------------------------------
+ -- User configurable settings start here!
+@@ -19,8 +22,8 @@
+ -- Where do you want WordGrinder installed? By default, it goes into your
+ -- home directory.
+
+-PREFIX = HOME
+--- PREFIX = "/usr/local"
++-- PREFIX = HOME
++PREFIX = "/usr/"
+
+ -- What build flags do you want to use? (Not including -g or -Os, which are
+ -- added later automatically.)
+@@ -36,6 +39,8 @@
+
+ CLIBRARIES = {
+ 'm',
++ 'crypt',
++ 'dl',
+ }
+
+ CDEFINES = {
+@@ -45,8 +50,8 @@
+ }
+
+ CINCLUDES = {
+- "/usr/include/ncursesw",
+- "/usr/include/lua5.1",
++ "%STAGING_DIR%/usr/include/ncursesw",
++ "%STAGING_DIR%/usr/include/",
+ "src/c"
+ }
+
+@@ -214,8 +219,8 @@
+
+ CLIBRARIES = {
+ PARENT,
+- 'ncursesw',
+- 'lua5.1'
++ '%STAGING_DIR%/usr/lib/libncursesw.a',
++ '%STAGING_DIR%/usr/lib/liblua.a'
+ }
+ }
+
+@@ -246,7 +251,7 @@
+
+ CLIBRARIES = {
+ PARENT,
+- 'ncursesw',
++ '%STAGING_DIR%/usr/lib/ncursesw.a',
+ },
+
+ install = pm.install("bin/wordgrinder-static")