pkgsrc/sysutils/socket/Makefile
2017-08-01 14:58:51 +00:00

30 lines
681 B
Makefile

# $NetBSD: Makefile,v 1.19 2017/08/01 14:59:06 wiz Exp $
DISTNAME= socket-1.1
CATEGORIES= sysutils net
MASTER_SITES= https://www.freebsd.org/~wosch/src/
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Create tcp socket and connect to stdin/out
LICENSE= gnu-gpl-v2
MAKE_ENV+= INSTALLBASE=${PREFIX:Q}
PKG_OPTIONS_VAR= PKG_OPTIONS.socket
PKG_SUPPORTED_OPTIONS= inet6
PKG_SUGGESTED_OPTIONS= inet6
INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1
.include "../../mk/bsd.options.mk"
###
### IPv6 support
###
.if !empty(PKG_OPTIONS:Minet6)
MAKE_ENV+= SWITCHES="-DUSE_INET6 -DHAVE_SYS_PARAM_H -Wall"
.else
MAKE_ENV+= SWITCHES="-DHAVE_SYS_PARAM_H -Wall"
.endif
.include "../../mk/bsd.pkg.mk"