Commit 3f99f5c7a721f51d5ed95fce713e3cf38d3a50e5

Authored by Perry Werneck
Committed by GitHub
2 parents 758fb6c9 8e72a279

Merge pull request #6 from andrebreves/develop

Build instructions for macOS
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 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 + ```
... ...