Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Jul 2016 19:25:41 -0700 (PDT)
From:      Don Lewis <truckman@FreeBSD.org>
To:        jbeich@vfemail.net
Cc:        freebsd-ports@FreeBSD.org
Subject:   Re: what to do when base openssl isn't suitable
Message-ID:  <201607020225.u622Pfbc094491@gw.catspoiler.org>
In-Reply-To: <y45l-szjl-wny@vfemail.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On  2 Jul, Jan Beich wrote:
> Don Lewis <truckman@FreeBSD.org> writes:
> 
>> I've got a port that does not work with base openssl because it looks
>> for libssl.pc.  Other than that, I don't think it is picky about what
>> flavor of ports ssl is installed.  Because the default version of ssl
>> still defaults to base, I don't see a way to get this port to build on
>> the cluster, so there is no way to provide binary packages.  That's a
>> problem for end users because this port has bunch of huge build
>> dependencies.  Thoughts?
> 
> Have you tried putting a copy of libssl.pc under ${FILESDIR} and
> adjusting PKG_CONFIG_PATH or forcing configure to accept *FLAGS without?
> 
>   # from net-p2p/zetacoin/Makefile
>   CONFIGURE_ENV=	CRYPTO_CFLAGS="-I${OPENSSLINC}" CRYPTO_LIBS="-L${OPENSSLLIB} -lcrypto" \
> 			SSL_CFLAGS="-I${OPENSSLINC}" SSL_LIBS="-L${OPENSSLLIB} -lssl"
> 
>   # from mail/mpop/Makefile
>   OPENSSL_CONFIGURE_ENV=${OPENSSLINC:M/usr/include:C,.+,libssl_CFLAGS=" ",} \
> 			${OPENSSLLIB:M/usr/lib:C,.+,libssl_LIBS="-lssl -lcrypto",}

Option #2 works, except on FreeBSD 9, where the base version of OpenSSL
is too old.  I'm ok with setting IGNORE in that case.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607020225.u622Pfbc094491>