Date:2010-08-15 19:41:47 (1 year 5 months ago)
Author:bartbes
Commit:84793327bc9afc13c06ba0e60df843ddd9c8f4c2
Message:Wordgrinder: Builds, marked broken until upstream accepts ncurses patch

Files: wordgrinder/Makefile (1 diff)
wordgrinder/patches/001-pmfile.patch (1 diff)

Change Details

wordgrinder/Makefile
1include $(TOPDIR)/rules.mk
2
3PKG_NAME:=wordgrinder
4PKG_VERSION:=0.3.3
5PKG_RELEASE:=1
6
7PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
8PKG_SOURCE_URL:=@SF/$(PKG_NAME)
9PKG_MD5SUM:=1ae3bcf2fc4ee027bdd9518a73733505
10
11include $(INCLUDE_DIR)/package.mk
12
13define Package/wordgrinder
14    SECTION:=utils
15    CATEGORY:=Utilities
16    TITLE:=A word processor for processing words
17    URL:=http://wordgrinder.sourceforge.net/
18    SUBMENU:=Editors
19    DEPENDS:=+libncursesw lua luafilesystem BROKEN
20endef
21
22define Package/wordgrinder/description
23    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.
24endef
25
26define Build/Configure
27endef
28
29define Build/Compile
30    (cd $(PKG_BUILD_DIR);\
31    STAGING_DIR="$(STAGING_DIR)"\
32    TARGET_CC="$(TARGET_CC)"\
33    ./pm);$
34endef
35
36define Package/wordgrinder/install
37    $(INSTALL_DIR) $(1)/usr/bin
38    $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/wordgrinder $(1)/usr/bin/
39endef
40
41$(eval $(call BuildPackage,wordgrinder))
wordgrinder/patches/001-pmfile.patch
1--- wordgrinder-0.3.3/pmfile 2009-12-13 14:44:53.000000000 +0100
2@@ -12,6 +12,9 @@
3 DATE = "13 December 2009"
4 VERSION = "0.3.3"
5 FILEFORMAT = 3
6+STAGING_DIR = os.getenv("STAGING_DIR")
7+CCOMPILER = os.getenv("TARGET_CC")
8+LUAC = "cat %in% > %out%"
9
10 -----------------------------------------------------------------------------
11 -- User configurable settings start here!
12@@ -19,8 +22,8 @@
13 -- Where do you want WordGrinder installed? By default, it goes into your
14 -- home directory.
15
16-PREFIX = HOME
17--- PREFIX = "/usr/local"
18+-- PREFIX = HOME
19+PREFIX = "/usr/"
20
21 -- What build flags do you want to use? (Not including -g or -Os, which are
22 -- added later automatically.)
23@@ -32,10 +35,12 @@
24
25 -- Any other build options go in these three sections. Note the lack of -l, -D
26 -- or -I. We need the XOPEN stuff to make the wide-character curses library
27 -- work.
28
29 CLIBRARIES = {
30     'm',
31+ 'crypt',
32+ 'dl',
33 }
34
35 CDEFINES = {
36@@ -43,10 +48,10 @@
37     'FILEFORMAT=%FILEFORMAT%',
38     'PREFIX="%PREFIX%"'
39 }
40
41 CINCLUDES = {
42- "/usr/include/ncursesw",
43- "/usr/include/lua5.1",
44+ "%STAGING_DIR%/usr/include/ncursesw",
45+ "%STAGING_DIR%/usr/include/",
46     "src/c"
47 }
48
49@@ -211,11 +216,11 @@
50         '_XOPEN_SOURCE_EXTENDED',
51         '_XOPEN_SOURCE',
52     },
53
54     CLIBRARIES = {
55         PARENT,
56- 'ncursesw',
57- 'lua5.1'
58+ '%STAGING_DIR%/usr/lib/libncursesw.a',
59+ '%STAGING_DIR%/usr/lib/liblua.a'
60     }
61 }
62
63@@ -238,15 +243,15 @@
64         "EMULATED_WCWIDTH",
65         "BUILTIN_LFS",
66     },
67
68     CINCLUDES = {
69         PARENT,
70         "src/c/luacore"
71     },
72
73     CLIBRARIES = {
74         PARENT,
75- 'ncursesw',
76+ '%STAGING_DIR%/usr/lib/ncursesw.a',
77     },
78
79     install = pm.install("bin/wordgrinder-static")

Archive Download the corresponding diff file



interactive