pkgsrc/net/libfetch/options.mk
joerg a627d8f327 libfetch-2.16:
- 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
2008-10-06 12:58:29 +00:00

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