Check if dependencies are installed:
$ brew install gettext libjpeg libmcrypt mhash
Construct LDFLAGS and CPPFLAGS, then configure with those:
$ brew info gettext | grep "/usr/local/Cellar"
/usr/local/Cellar/gettext/0.21 (1,959 files, 19.1MB) *
$ brew info libjpeg | grep "/usr/local/Cellar"
/usr/local/Cellar/jpeg/9d (21 files, 743KB) *
$ brew info libmcrypt | grep "/usr/local/Cellar"
/usr/local/Cellar/mcrypt/2.6.8 (19 files, 397.8KB) *
$ brew info mhash | grep "/usr/local/Cellar"
/usr/local/Cellar/mhash/0.9.9.9 (20 files, 452.7KB) *
$ cd steghide-0.5.1/
$ LDFLAGS="-L/usr/local/Cellar/gettext/0.21/lib -L/usr/local/Cellar/mcrypt/2.6.8/lib -L/usr/local/Cellar/jpeg/9d/lib -L/usr/local/Cellar/mhash/0.9.9.9/lib" CPPFLAGS="-I/usr/local/Cellar/gettext/0.21/include -I/usr/local/Cellar/mcrypt/2.6.8/include -I/usr/local/Cellar/jpeg/9d/include -I/usr/local/Cellar/mhash/0.9.9.9/include" ./configure
$ cd ..
Apply this patch:
$ wget https://github.com/sabotage-linux/sabotage/raw/master/KEEP/steghide-gcc.patch
$ patch -p0 < steghide-gcc.patch
$ cd steghide-0.5.1/
And this one:
--- src/Makefile.old 2018-08-06 19:03:10.000000000 -0600
+++ src/Makefile 2018-08-06 19:05:29.000000000 -0600
@@ -106,7 +106,7 @@
POSUB = po
RANLIB = ranlib
SET_MAKE =
-SHELL = /bin/sh
+SHELL = /bin/bash
STRIP =
USE_INCLUDED_LIBINTL = no
USE_INTLDIR_FALSE =
@@ -190,7 +190,7 @@
WavPCMSampleValue.cc error.cc main.cc msg.cc SMDConstructionHeuristic.cc
localedir = $(datadir)/locale
-LIBTOOL = $(SHELL) libtool
+LIBTOOL = $(SHELL) glibtool --tag CXX
MAINTAINERCLEANFILES = Makefile.in
subdir = src
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
Then make && sudo make install
:)
thank you!!!! :)