i'm migrating to SA 32x-branch/svn (r607171) on FreeBSD 62.

i've openssl installed from ports in prefix=/usr/local, i.e.,

ssl libs in /usr/local/lib
ssl incs in /usr/local/include/openssl

echoing my working procedure from osx, i

cd spamassassin
setenv LDFLAGS "-L/usr/local/lib"
setenv CPPFLAGS "-I/usr/local/include"

perl Makefile.PL PREFIX=/usr/local/spamassassin ENABLE_SSL="yes"

cd spamc
perl version.h.pl

./configure --enable-ssl CFLAGS="-DSPAMC_SSL"

cd ../
make

on freebsd only, this fails to find openssl headers,

...
cp sa-compile blib/script/sa-compile
/usr/local/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)"
blib/script/sa-compile
make -f spamc/Makefile spamc/spamc
gcc -DSPAMC_SSL -DSPAMC_SSL spamc/spamc.c spamc/getopt.c
spamc/libspamc.c spamc/utils.c -o spamc/spamc -L/usr/local/lib -lssl
-lcrypto -lz
In file included from spamc/spamc.c:22:
spamc/utils.h:29:28: openssl/crypto.h: No such file or directory
spamc/utils.h:30:25: openssl/pem.h: No such file or directory
spamc/utils.h:31:25: openssl/ssl.h: No such file or directory
spamc/utils.h:32:25: openssl/err.h: No such file or directory
...

what freebsd/spamassassin mysticism am i missing? some other FLAG?

thanks.