FreeBSD Port: ftp/curl

Scot Hetzel swhetzel at gmail.com
Thu Jul 20 21:04:51 UTC 2006


On 7/20/06, Andrew Pantyukhin <infofarmer at gmail.com> wrote:
> I wonder if it's possible to resolve the situation when
> (defined(WITH_GNUTLS) && !defined(WITHOUT_SSL)) in a
> friendlier way than a simple IGNORE. I have WITH_GNUTLS
> in my make.conf and I don't have WITHOUT_SSL there. It
> would be great if you could make the port choose on its own,
> either way would be perfect.
>

I had a look at the ports Makefile, and there is only one thing that
is holding the port back, from doing what you want.  The port defines:

.if !defined(WITHOUT_SSL)
USE_OPENSSL= yes
.endif

before it includes bsd.port.pre.mk.  If this could be included after
the bsd.port.pre.mk, then the port could have been made to work as you
wanted.  Since USE_OPENSSL is defined in bsd.port.pre.mk, it needs to
be defined before this *.mk file.  If it could be moved into
bsd.port.post.mk, then the ports Makefile could be changed as follows;

-.if !defined(WITHOUT_SSL)
-USE_OPENSSL= yes
-.endif

 .include <bsd.port.pre.mk>

-.if defined(WITH_GNUTLS) && !defined(WITHOUT_SSL)
-IGNORE=         may only use GNU TLS if WITHOUT_SSL is defined
+.if defined(WITH_GNUTLS)
+WITHOUT_SSL= yes
+.else
+USE_OPENSSL= yes
.endif

Scot
-- 
DISCLAIMER:
No electrons were mamed while sending this message. Only slightly bruised.


More information about the freebsd-ports mailing list