Root/wordgrinder/patches/001-pmfile.patch

1--- a/pmfile 2009-12-13 06:44:53.000000000 -0700
2+++ b/pmfile 2010-09-14 22:36:03.000000000 -0600
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@@ -36,6 +39,8 @@
25 
26 CLIBRARIES = {
27     'm',
28+ 'crypt',
29+ 'dl',
30 }
31 
32 CDEFINES = {
33@@ -45,8 +50,8 @@
34 }
35     
36 CINCLUDES = {
37- "/usr/include/ncursesw",
38- "/usr/include/lua5.1",
39+ "%STAGING_DIR%/usr/include/ncursesw",
40+ "%STAGING_DIR%/usr/include/",
41     "src/c"
42 }
43 
44@@ -214,8 +219,8 @@
45     
46     CLIBRARIES = {
47         PARENT,
48- 'ncursesw',
49- 'lua5.1'
50+ '%STAGING_DIR%/usr/lib/libncursesw.a',
51+ '%STAGING_DIR%/usr/lib/liblua.a'
52     }
53 }
54 
55@@ -246,7 +251,7 @@
56     
57     CLIBRARIES = {
58         PARENT,
59- 'ncursesw',
60+ '%STAGING_DIR%/usr/lib/ncursesw.a',
61     },
62 
63     install = pm.install("bin/wordgrinder-static")
64

Archive Download this file



interactive