113498266Sopenharmony_ciPrerequirement 213498266Sopenharmony_ci============== 313498266Sopenharmony_ciThis document describes how to compile, build and install curl and libcurl 413498266Sopenharmony_cifrom sources using mk. To build it, you will require to install latest 513498266Sopenharmony_ci9legacy patches into Plan 9. Also Plan 9 still have no configuration option so 613498266Sopenharmony_ciboth zlib and libopenssl are required too. 713498266Sopenharmony_ci 813498266Sopenharmony_ciThe zlib that is available on Plan 9 can be downloaded from: 913498266Sopenharmony_ci 1013498266Sopenharmony_ci https://github.com/madler/zlib/pull/398 1113498266Sopenharmony_ci 1213498266Sopenharmony_ciLibreSSL Portable can be downloaded from: 1313498266Sopenharmony_ci 1413498266Sopenharmony_ci https://github.com/libressl-portable/portable/pull/510 1513498266Sopenharmony_ci 1613498266Sopenharmony_ciInstruction 1713498266Sopenharmony_ci=========== 1813498266Sopenharmony_ciFirst, you should construct namespace as like described below: 1913498266Sopenharmony_ci 2013498266Sopenharmony_ci% bind -ac ../lib lib 2113498266Sopenharmony_ci% bind -ac ../src src 2213498266Sopenharmony_ci% bind -ac ../include include 2313498266Sopenharmony_ci% bind -ac .. . 2413498266Sopenharmony_ci 2513498266Sopenharmony_ciThen you will see as shown below (excerpt): 2613498266Sopenharmony_ci 2713498266Sopenharmony_ci curl.git/ 2813498266Sopenharmony_ci |_plan9 2913498266Sopenharmony_ci | |_BUILD.PLAN9.txt 3013498266Sopenharmony_ci | |_CHANGES 3113498266Sopenharmony_ci | |_CMake 3213498266Sopenharmony_ci | | : 3313498266Sopenharmony_ci | |_mkfile 3413498266Sopenharmony_ci | |_mkfile.proto 3513498266Sopenharmony_ci | |_include 3613498266Sopenharmony_ci | | |_Makefile.am 3713498266Sopenharmony_ci | | | : 3813498266Sopenharmony_ci | | |_mkfile 3913498266Sopenharmony_ci | |_lib 4013498266Sopenharmony_ci | | |_CMakeLists.txt 4113498266Sopenharmony_ci | | | : 4213498266Sopenharmony_ci | | |_mkfile 4313498266Sopenharmony_ci | | |_mkfile.inc 4413498266Sopenharmony_ci | |_src 4513498266Sopenharmony_ci | | |_CMakeLists.txt 4613498266Sopenharmony_ci | | | : 4713498266Sopenharmony_ci | | |_mkfile 4813498266Sopenharmony_ci | | |_mkfile.inc 4913498266Sopenharmony_ci |_lib 5013498266Sopenharmony_ci |_src 5113498266Sopenharmony_ci 5213498266Sopenharmony_ciAfter constructing namespace, you can run mk on plan9 directory. 5313498266Sopenharmony_ci 5413498266Sopenharmony_ci% mk 5513498266Sopenharmony_ci% mk install 56