xref: /curl/plan9/README (revision 9a8b3b3e)
1Prerequirement
2==============
3This document describes how to compile, build and install curl and libcurl
4from sources using mk. To build it, you will require to install latest
59legacy patches into Plan 9. Also Plan 9 still have no configuration option so
6both zlib and libopenssl are required too.
7
8The zlib that is available on Plan 9 can be downloaded from:
9
10  https://github.com/madler/zlib/pull/398
11
12LibreSSL Portable can be downloaded from:
13
14  https://github.com/libressl-portable/portable/pull/510
15
16Instruction
17===========
18First, you should construct namespace as like described below:
19
20% bind -ac ../lib lib
21% bind -ac ../src src
22% bind -ac ../include include
23% bind -ac .. .
24
25Then you will see as shown below (excerpt):
26
27  curl.git/
28   |_plan9
29   | |_BUILD.PLAN9.txt
30   | |_CHANGES
31   | |_CMake
32   | |  :
33   | |_mkfile
34   | |_mkfile.proto
35   | |_include
36   | | |_Makefile.am
37   | | |  :
38   | | |_mkfile
39   | |_lib
40   | | |_CMakeLists.txt
41   | | |  :
42   | | |_mkfile
43   | | |_mkfile.inc
44   | |_src
45   | | |_CMakeLists.txt
46   | | |  :
47   | | |_mkfile
48   | | |_mkfile.inc
49   |_lib
50   |_src
51
52After constructing namespace, you can run mk on plan9 directory.
53
54% mk
55% mk install
56