summaryrefslogtreecommitdiff
path: root/devel/libsmi/Makefile
blob: aae4f2b74304144d9c7db51999d1b6f9014739a8 (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
39
40
41
42
43
# $NetBSD: Makefile,v 1.13 2006/11/10 20:15:17 rillig Exp $
#

DISTNAME=	libsmi-0.4.5
PKGREVISION=	1
CATEGORIES=	devel net
MASTER_SITES=	ftp://ftp.ibr.cs.tu-bs.de/pub/local/libsmi/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.ibr.cs.tu-bs.de/projects/libsmi/
COMMENT=	Library to access SMI MIB information

MIBDIR=		${PREFIX}/share/libsmi/mibs
PIBDIR=		${PREFIX}/share/libsmi/pibs

DEPENDS+=	wget-[0-9]*:../../net/wget

USE_LIBTOOL=	YES
USE_TOOLS+=	gmake
GNU_CONFIGURE=	YES
CONFIGURE_ARGS+=--with-mibdir=${MIBDIR:Q}
CONFIGURE_ARGS+=--with-pibdir=${PIBDIR:Q}
# this might make it easier to use scotty's and ucd-snmp's mibs,
# and local ones too
CONFIGURE_ARGS+=--with-smipath="${MIBDIR}:${PREFIX}/share/snmp/mibs:${PREFIX}/lib/tnm2.1.8/mibs:/usr/local/share/snmp/mibs"
CONFIGURE_ARGS+=--sysconfdir=${PKG_SYSCONFDIR:Q}

REPLACE_SH+=	tools/smicache.in
REPLACE_SH+=	tools/smistrip.in
REPLACE_SH+=	test/*.test.in

TEST_TARGET=	check

# Only for systems that don't have these:
.include "../../mk/bsd.prefs.mk"
.if ${OS_VERSION:M1.4} || ${OS_VERSION:M1.3} || ${OS_VERSION:M1.2}
CPPFLAGS+=	-Dstrtoll=strtoq -Dstrtoull=strtouq
.endif

post-extract:
	rm -f ${WRKSRC}/test/smilint-smiv2.test

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