git-crypt icon indicating copy to clipboard operation
git-crypt copied to clipboard

build using MacPorts instructions

Open atmosx opened this issue 2 years ago • 1 comments

Unfortunately, there is no MacPorts support for git-crypt yet. To compile nuder MacPorts with OpenSSL support:

git clone https://github.com/AGWA/git-crypt.git
cd git-crypt
export CPPFLAGS="-I/opt/local/libexec/openssl11/include -I/opt/local/include"
make
make install PREFIX=$HOME/Programs

LibreSSL is another alternative, instructions are similar.

NOTE: The path $HOME/Programs is a personal preference for software I install manually, make sure $HOME/Programs/bin is in your $PATH.

To find the specific OpenSSL path, in case you're not using openssl11 with Macports:

pkg-config openssl --libs
-L/opt/local/libexec/openssl11/lib -lssl -lcrypto

Cheers!

atmosx avatar Jun 25 '22 08:06 atmosx

I'm not sure what you mean by "no MacPorts support for git-crypt yet". It's already packaged and available in MacPorts: https://ports.macports.org/port/git-crypt/

quentinmit avatar Jun 27 '22 04:06 quentinmit

I'm not sure what you mean by "no MacPorts support for git-crypt yet". It's already packaged and available in MacPorts: https://ports.macports.org/port/git-crypt/

That's correct, I missed it! When I installed git-crypt for the first time wasn't part of the ports tree. We can close thius comment then.

atmosx avatar Aug 04 '22 14:08 atmosx