diff options
author | David Walter Seikel | 2016-03-28 21:59:05 +1000 |
---|---|---|
committer | David Walter Seikel | 2016-03-28 21:59:05 +1000 |
commit | 26e55ced73cb1154906f11b7d6e965cb816a09fe (patch) | |
tree | 919766d31509c4cd370179ff0ecd6bfec05f6e25 /src/others | |
parent | The beginnings of an image map for SledjHamr, needs more docs to link to. (diff) | |
download | SledjHamr-26e55ced73cb1154906f11b7d6e965cb816a09fe.zip SledjHamr-26e55ced73cb1154906f11b7d6e965cb816a09fe.tar.gz SledjHamr-26e55ced73cb1154906f11b7d6e965cb816a09fe.tar.bz2 SledjHamr-26e55ced73cb1154906f11b7d6e965cb816a09fe.tar.xz |
Add stuff to build external projects NetSurf and polipo.
Diffstat (limited to 'src/others')
-rwxr-xr-x | src/others/build_NetSurf.lua | 48 | ||||
-rwxr-xr-x | src/others/build_polipo.lua | 17 |
2 files changed, 65 insertions, 0 deletions
diff --git a/src/others/build_NetSurf.lua b/src/others/build_NetSurf.lua new file mode 100755 index 0000000..517d673 --- /dev/null +++ b/src/others/build_NetSurf.lua | |||
@@ -0,0 +1,48 @@ | |||
1 | #!/usr/bin/env luajit | ||
2 | |||
3 | local dir = ... | ||
4 | |||
5 | if 'nil' == type(dir) then | ||
6 | local build, err = loadfile('../../build.lua') | ||
7 | if build then | ||
8 | setfenv(build, getfenv(2)) | ||
9 | build(2) | ||
10 | else | ||
11 | print("ERROR - " .. err) | ||
12 | end | ||
13 | dir = workingDir | ||
14 | end | ||
15 | |||
16 | local tools = {"buildsystem", "libnsutils", "nsgenbind"} | ||
17 | local libs = {"libwapcaplet", "libparserutils", "libhubbub", | ||
18 | "libcss", | ||
19 | "libdom", | ||
20 | |||
21 | "libnsbmp", | ||
22 | "libnsgif", | ||
23 | "librosprite", | ||
24 | "libsvgtiny", | ||
25 | "libutf8proc", | ||
26 | } | ||
27 | |||
28 | instDir = dir .. '/netsurf/inst' | ||
29 | exports = 'export PKG_CONFIG_PATH=' .. instDir .. '/lib/pkgconfig::;' .. | ||
30 | 'export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:' .. instDir .. '/lib;' .. | ||
31 | 'export PATH=${PATH}:' ..instDir .. '/bin;' .. | ||
32 | 'export PREFIX=' .. instDir .. '; ' | ||
33 | |||
34 | runCommand(nil, '.', 'rm -rf netsurf; mkdir -p netsurf/inst') | ||
35 | |||
36 | for i, v in ipairs(tools) do | ||
37 | cloneGit(v, 'netsurf', 'git.netsurf-browser.org', '') | ||
38 | runCommand('NetSurf tool - ' .. v, 'netsurf', exports .. 'cd ' .. v .. '; make install') | ||
39 | end | ||
40 | |||
41 | for i, v in ipairs(libs) do | ||
42 | cloneGit(v, 'netsurf', 'git.netsurf-browser.org', '') | ||
43 | runCommand('NetSurf lib - ' .. v, 'netsurf', exports .. 'cd ' .. v .. '; make install') | ||
44 | end | ||
45 | |||
46 | local v = 'netsurf' | ||
47 | cloneGit(v, 'netsurf', 'git.netsurf-browser.org', '') | ||
48 | runCommand('NetSurf', 'netsurf', exports .. 'cd ' .. v .. '; make && cp nsgtk ../inst/bin/netsurf') | ||
diff --git a/src/others/build_polipo.lua b/src/others/build_polipo.lua new file mode 100755 index 0000000..23fdde3 --- /dev/null +++ b/src/others/build_polipo.lua | |||
@@ -0,0 +1,17 @@ | |||
1 | #!/usr/bin/env luajit | ||
2 | |||
3 | local dir = ... | ||
4 | |||
5 | if 'nil' == type(dir) then | ||
6 | local build, err = loadfile('../../build.lua') | ||
7 | if build then | ||
8 | setfenv(build, getfenv(2)) | ||
9 | build(2) | ||
10 | else | ||
11 | print("ERROR - " .. err) | ||
12 | end | ||
13 | dir = workingDir | ||
14 | end | ||
15 | |||
16 | cloneGit('polipo', '.', 'github.com/jech', '') | ||
17 | runCommand(nil, 'polipo', 'make') | ||