Commit 6ab31ade9dbe9c7d90f1c1a9d189ffff239d71b0
1 parent
43db012c
Exists in
master
and in
3 other branches
Build instructions for macOS
Showing
1 changed file
with
45 additions
and
0 deletions
Show diff stats
README.md
| ... | ... | @@ -104,3 +104,48 @@ Compiling for Windows (With MSYS2) |
| 104 | 104 | * make install |
| 105 | 105 | |
| 106 | 106 | |
| 107 | +Building for macOS (using homebrew) | |
| 108 | +=================================== | |
| 109 | + | |
| 110 | +1. Install [homebrew](https://brew.sh/) | |
| 111 | + | |
| 112 | +2. Install dependencies | |
| 113 | + | |
| 114 | + * automake | |
| 115 | + * binutils | |
| 116 | + * coreutils | |
| 117 | + * curl | |
| 118 | + * dbus | |
| 119 | + * gettext | |
| 120 | + * libtool | |
| 121 | + * m4 | |
| 122 | + * openldap | |
| 123 | + * openssl | |
| 124 | + * pkgconfig | |
| 125 | + | |
| 126 | + ```console | |
| 127 | + $ brew install automake binutils coreutils curl dbus gettext libtool m4 openldap openssl pkgconfig | |
| 128 | + ``` | |
| 129 | + | |
| 130 | +3. Use [open-keg](https://gist.github.com/andrebreves/5f36e78575e20162ed0a62bd27c4bcea) to make keg-only dependencies available during the build processes | |
| 131 | + | |
| 132 | + ```console | |
| 133 | + $ open-keg curl gettext openldap openssl | |
| 134 | + ``` | |
| 135 | +4. Configure, build and install (inside [open-keg](https://gist.github.com/andrebreves/5f36e78575e20162ed0a62bd27c4bcea) shell) | |
| 136 | + | |
| 137 | + ```console | |
| 138 | + $ ./autogen.sh --prefix="$(brew --cellar)/lib3270/5.3" | |
| 139 | + $ make && make install | |
| 140 | + $ brew link lib3270 | |
| 141 | + ``` | |
| 142 | + | |
| 143 | +Uninstalling | |
| 144 | +------------ | |
| 145 | + | |
| 146 | +1. To uninstall | |
| 147 | + | |
| 148 | + ```console | |
| 149 | + $ brew unlink lib3270 | |
| 150 | + $ rm -fr "$(brew --cellar)/lib3270" | |
| 151 | + ``` | ... | ... |