INSTALL (1410B)
1 Prerequisites 2 ============= 3 4 * C compiler - defaults in config.mk (HaikuOS needs Clang/LLVM) 5 6 7 Testing 8 ------- 9 10 * Perl ≥ 5.010 11 * expect 12 13 $ make test 14 15 16 Install 17 ------- 18 19 $ git clone https://git.sr.ht/~strahinja/sled 20 $ cd sled 21 $ cp config.$(uname -s) config.mk 22 $ su 23 # make install 24 25 With got[1]: 26 27 $ got clone https://git.sr.ht/~strahinja/sled 28 $ got checkout sled.git 29 $ cd sled 30 $ cp config.$(uname -s) config.mk 31 $ su 32 # make install 33 34 35 Persistent build configuration file 36 ----------------------------------- 37 38 The file config.mk will be sourced when building targets which also accept 39 configuration through environment variables. For example, CPPFLAGS and PREFIX 40 are specified in config.mk. 41 42 Initially, there will be no config.mk, you will need to copy one of the 43 customized config.* files or write your own: 44 45 $ cp config.$(uname -s) config.mk || echo Write config.mk from scratch 46 47 48 Applying patches 49 ---------------- 50 51 To apply any patches, change the current directory to the one holding the sled 52 repository, then: 53 54 $ git am path_to_patch/filename-of-patch.patch 55 56 and then call make as above. Included patches are located inside the patch/ 57 subdirectory. 58 59 With got[1]: 60 61 $ got patch path_to_patch/filename-of-patch.patch 62 63 Both with git and got, it is advisable to create a separate branch holding the 64 modifications, which can be rebased onto upstream when it changes. 65 66 [1]: https://www.gameoftrees.org