Commit c88f821b5afcd530a5dcb298f3b82061eab18c9e
Exists in
master
and in
3 other branches
Merge branch 'develop' of https://github.com/PerryWerneck/lib3270 into develop
Showing
1 changed file
with
33 additions
and
0 deletions
Show diff stats
README.md
| @@ -104,3 +104,36 @@ Compiling for Windows (With MSYS2) | @@ -104,3 +104,36 @@ Compiling for Windows (With MSYS2) | ||
| 104 | * make install | 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 | + ```shell | ||
| 115 | + $ brew install automake binutils coreutils curl gettext libtool openldap openssl pkgconfig | ||
| 116 | + ``` | ||
| 117 | + | ||
| 118 | +3. Use [open-keg](https://gist.github.com/andrebreves/5f36e78575e20162ed0a62bd27c4bcea) to make keg-only dependencies available during build process | ||
| 119 | + | ||
| 120 | + ```shell | ||
| 121 | + $ open-keg curl openldap openssl | ||
| 122 | + ``` | ||
| 123 | +4. Configure, build and install (inside the [open-keg](https://gist.github.com/andrebreves/5f36e78575e20162ed0a62bd27c4bcea) shell opened above) | ||
| 124 | + | ||
| 125 | + ```shell | ||
| 126 | + $ ./autogen.sh --prefix="$(brew --cellar)/lib3270/5.3" | ||
| 127 | + $ make all && make install | ||
| 128 | + $ brew link lib3270 | ||
| 129 | + ``` | ||
| 130 | + | ||
| 131 | +Uninstalling | ||
| 132 | +------------ | ||
| 133 | + | ||
| 134 | +1. To uninstall | ||
| 135 | + | ||
| 136 | + ```shell | ||
| 137 | + $ brew unlink lib3270 | ||
| 138 | + $ rm -fr "$(brew --cellar)/lib3270" | ||
| 139 | + ``` |