4c97fac781
hacks to install kernel loadable modules correctly on amd64 platforms with the new INSTALL_KLD command. All PORTREVISIONS have been bumped to show when the new version of installing became available.
40 lines
887 B
Makefile
40 lines
887 B
Makefile
# New ports collection makefile for: ng_daphne
|
|
# Date created: 8 November 2003
|
|
# Whom: Gerasimos Dimitriadis
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= ng_daphne
|
|
PORTVERSION= 1.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= net kld
|
|
MASTER_SITES= http://newton.ee.auth.gr/ng_daphne/
|
|
|
|
MAINTAINER= gedimitr@auth.gr
|
|
COMMENT= A simple netgraph module for multihop ad hoc networks
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
SYSDIR?= ${SRC_BASE}/sys
|
|
.if !exists(${SYSDIR}/netgraph/netgraph.h)
|
|
IGNORE= "Requires kernel source (/usr/src/sys) to build"
|
|
.endif
|
|
MAKE_ENV+= WERROR=
|
|
|
|
EXTRA_PATCHES= ${FILESDIR}/extra-patch-ng_daphne.c
|
|
PLIST_FILES= lib/ng_daphne.ko
|
|
PORTDOCS= README
|
|
|
|
do-install:
|
|
${INSTALL_KLD} ${WRKSRC}/ng_daphne.ko ${PREFIX}/lib
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
.endif
|
|
|
|
post-install:
|
|
@${SED} -e 's,%%PREFIX%%,${PREFIX},g' ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|