aboutsummaryrefslogtreecommitdiff
path: root/net/nvnet/Makefile
blob: cf26974c93c2da6eedc028e79164dba82e58d8af (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Ports collection makefile for: nvnet
# Date created:	1 Oct 2003
# Whom: 	Quinton Dolan <q@onthenet.com.au>
#
# $FreeBSD$
#

PORTNAME=	nvnet
PORTVERSION=	1.0.0301
CATEGORIES=	net kld
MASTER_SITES=	http://www.onthenet.com.au/~q/nvnet/
DISTFILES=	${PORTNAME}-src-${DISTVERSION}${EXTRACT_SUFX}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Driver for NVIDIA MCP Ethernet adapter

DISTVERSION=	20050312

NO_PACKAGE=	Depends on kernel
ONLY_FOR_ARCHS=	amd64 i386
WRKSRC=		${WRKDIR}/nvnet
PLIST_SUB=	KMODDIR=${KMODDIR}
PORTDOCS=	README nvidia_pci.c.diff
MAN4=		nvnet.4
MAKE_ENV=	OSTYPE=${OPSYS}

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 600021
IGNORE=		nve support already exists in base
.endif

pre-fetch:
.if !exists(${SRC_BASE}/sys/Makefile)
IGNORE=		Kernel source files required
.endif

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/module/if_nv.ko ${KMODDIR}
	${INSTALL_MAN} ${WRKSRC}/man/nvnet.4 ${PREFIX}/man/man4
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
	${INSTALL_MAN} ${WRKSRC}/doc/${i} ${DOCSDIR}
.endfor
.endif
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>