aboutsummaryrefslogtreecommitdiffstats
path: root/net/nepim/Makefile
blob: ae951936587a5571cf35b680a0943703cd12bf91 (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
# New ports collection makefile for:    nepim
# Date created:             19th September 2005
# Whom:                 Marcin Jessa <yazzy@yazzy.org>
# $FreeBSD$

PORTNAME=   nepim
PORTVERSION=    0.53
CATEGORIES= net
MASTER_SITES=   ${MASTER_SITE_SAVANNAH}
MASTER_SITE_SUBDIR= nepim

MAINTAINER= ports@FreeBSD.org
COMMENT=    Tool for measuring available bandwidth between hosts

LIB_DEPENDS=    oop.4:${PORTSDIR}/devel/liboop

USE_GMAKE=  yes
ALL_TARGET= default

WRKSRC=     ${WRKDIR}/${DISTNAME}/src

PLIST_FILES=    bin/nepim

post-patch:
    @${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
        ${WRKSRC}/Makefile

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/nepim ${PREFIX}/bin

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 700048
CFLAGS+=    -DHAVE_IP_MREQ -DHAVE_IPV6_MREQ
.else
CFLAGS+=    -DHAVE_IP_MREQ -DHAVE_IPV6_MREQ -DHAVE_IP_MREQN \
        -DHAVE_GROUP_SOURCE_REQ
.endif

.include <bsd.port.post.mk>