a627d8f327
- only include openssl if the openssl option is present - include arpa/inet.h to get ntohl and friends on older platforms like Interix - use new netdb.h compat code from libnbcompat - include inttypes.h only when present - don't name local variables err, Interix has a symbol like that in default namespace - allow fetch_read to do short read and do more intelligent buffering for header processing; effectively don't do a system call for each byte read
21 lines
484 B
Makefile
21 lines
484 B
Makefile
# $NetBSD: options.mk,v 1.2 2008/10/06 12:58:29 joerg Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.libfetch
|
|
PKG_SUPPORTED_OPTIONS= inet6 openssl
|
|
PKG_SUGGESTED_OPTIONS= inet6 openssl
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
.if !empty(PKG_OPTIONS:Minet6)
|
|
MAKE_ENV+= FETCH_WITH_INET6=yes
|
|
.else
|
|
MAKE_ENV+= FETCH_WITH_INET6=no
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mopenssl)
|
|
MAKE_ENV+= FETCH_WITH_OPENSSL=yes
|
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
.else
|
|
MAKE_ENV+= FETCH_WITH_OPENSSL=no
|
|
.endif
|