summaryrefslogtreecommitdiff
path: root/net/bing/Makefile
blob: f848e755b9c033659efbdc0930bff1c72adcb433 (plain)
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
# $NetBSD: Makefile,v 1.25 2008/07/14 12:56:10 joerg Exp $

DISTNAME=	bing-1.0.4
CATEGORIES=	net
MASTER_SITES=	http://fgouget.free.fr/bing/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://fgouget.free.fr/bing/index-en.shtml
COMMENT=	Bing is a point-to-point bandwidth measurement tool

PKG_DESTDIR_SUPPORT=	user-destdir

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "SunOS"
LDFLAGS+=	-lsocket -lnsl
.endif

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man8 share/doc/bing

post-install:
	${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/bing

.include "../../mk/bsd.pkg.mk"

# XXX On NetBSD the gcc-2.95.3 for:
# XXX
# XXX     alpha
# XXX
# XXX has an optimization bug when compiling with -O2 that is tickled by
# XXX ${WRKSRC}/bing.c
#
.if ${OPSYS} == "NetBSD"
.  if (${MACHINE_ARCH} == "alpha")
CXXFLAGS:=	${CXXFLAGS:C/-O[0-9]*//g}
CFLAGS:=	${CFLAGS:C/-O[0-9]*//g}
.  endif
.endif