pkgsrc/net/6tunnel/Makefile

32 lines
731 B
Makefile

# $NetBSD: Makefile,v 1.11 2010/02/26 10:28:33 wiz Exp $
#
DISTNAME= 6tunnel-0.09
CATEGORIES= net
MASTER_SITES= ftp://amba.bydg.pdi.net/pub/wojtekka/
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= v4/v6 protocol translation
PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}/6tunnel
NOT_FOR_PLATFORM+= Interix-*-* # no IPv6 support
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
LDFLAGS+= -lsocket -lnsl
.endif
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
do-build:
${CC} ${CFLAGS} -o ${WRKSRC}/6tunnel ${WRKSRC}/6tunnel.c ${LDFLAGS}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/6tunnel ${DESTDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/6tunnel.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.include "../../mk/bsd.pkg.mk"