Root/wordgrinder/patches/001-pmfile.patch

Source at commit 84793327bc9afc13c06ba0e60df843ddd9c8f4c2 created 1 year 9 months ago.
By bartbes, Wordgrinder: Builds, marked broken until upstream accepts ncurses patch
1--- wordgrinder-0.3.3/pmfile 2009-12-13 14:44:53.000000000 +0100
2+++ wordgrinder-0.3.3/pmfile-openwrt 2010-08-15 16:06:45.000000000 +0200
3@@ -12,6 +12,9 @@
4 DATE = "13 December 2009"
5 VERSION = "0.3.3"
6 FILEFORMAT = 3
7+STAGING_DIR = os.getenv("STAGING_DIR")
8+CCOMPILER = os.getenv("TARGET_CC")
9+LUAC = "cat %in% > %out%"
10
11 -----------------------------------------------------------------------------
12 -- User configurable settings start here!
13@@ -19,8 +22,8 @@
14 -- Where do you want WordGrinder installed? By default, it goes into your
15 -- home directory.
16
17-PREFIX = HOME
18--- PREFIX = "/usr/local"
19+-- PREFIX = HOME
20+PREFIX = "/usr/"
21
22 -- What build flags do you want to use? (Not including -g or -Os, which are
23 -- added later automatically.)
24@@ -32,10 +35,12 @@
25
26 -- Any other build options go in these three sections. Note the lack of -l, -D
27 -- or -I. We need the XOPEN stuff to make the wide-character curses library
28 -- work.
29
30 CLIBRARIES = {
31     'm',
32+ 'crypt',
33+ 'dl',
34 }
35
36 CDEFINES = {
37@@ -43,10 +48,10 @@
38     'FILEFORMAT=%FILEFORMAT%',
39     'PREFIX="%PREFIX%"'
40 }
41
42 CINCLUDES = {
43- "/usr/include/ncursesw",
44- "/usr/include/lua5.1",
45+ "%STAGING_DIR%/usr/include/ncursesw",
46+ "%STAGING_DIR%/usr/include/",
47     "src/c"
48 }
49
50@@ -211,11 +216,11 @@
51         '_XOPEN_SOURCE_EXTENDED',
52         '_XOPEN_SOURCE',
53     },
54
55     CLIBRARIES = {
56         PARENT,
57- 'ncursesw',
58- 'lua5.1'
59+ '%STAGING_DIR%/usr/lib/libncursesw.a',
60+ '%STAGING_DIR%/usr/lib/liblua.a'
61     }
62 }
63
64@@ -238,15 +243,15 @@
65         "EMULATED_WCWIDTH",
66         "BUILTIN_LFS",
67     },
68
69     CINCLUDES = {
70         PARENT,
71         "src/c/luacore"
72     },
73
74     CLIBRARIES = {
75         PARENT,
76- 'ncursesw',
77+ '%STAGING_DIR%/usr/lib/ncursesw.a',
78     },
79
80     install = pm.install("bin/wordgrinder-static")
81

Archive Download this file



interactive