aboutsummaryrefslogtreecommitdiff
path: root/net/olsrd/Makefile
blob: 1e2f3ed1367da2b17d42d79d6190b30036c25bb4 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# New ports collection makefile for:	olsrd
# Date created:		6 April 2005
# Whom:			dave@dogwood.com
#
# $FreeBSD$
#

PORTNAME=	olsrd
PORTVERSION=	0.4.10
CATEGORIES=	net
MASTER_SITES=	http://www.olsr.org/releases/0.4/

MAINTAINER=	dave@dogwood.com
COMMENT=	OLSR routing daemon

BUILD_DEPENDS=	makedepend:${PORTSDIR}/devel/makedepend

.if defined(WITH_MULTI_IF)
BUILD_DEPENDS+=	libnet*>=1.1.2,1:${PORTSDIR}/net/libnet
.endif

USE_BISON=	yes
USE_GMAKE=	yes

USE_RC_SUBR=	olsrd.sh
MAN8=		olsrd.8
MAN5=		olsrd.conf.5
MANCOMPRESSED=	yes

ALL_TARGET=	build_all
INSTALL_TARGET=	install_all

.if defined(WITH_MULTI_IF)
MAKE_ARGS+=	LIBNET=1
.endif
.if defined(PREFIX)
MAKE_ARGS+=	INSTALL_PREFIX=${PREFIX}
.endif

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 502000
IGNORE=		needs ieee80211.h headers
.endif

.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
CFLAGS+=	-fPIC
.endif

.if !defined(WITH_MULTI_IF)
pre-everything::
	@${ECHO_MSG}	""
	@${ECHO_MSG}	" To enable multiple interface support make with"
	@${ECHO_MSG}	" WITH_MULTI_IF defined"
	@${ECHO_MSG}	""
.endif

post-install:
	@${ECHO_MSG}	""
	@${ECHO_MSG}	" Set olsrd_enable=\"YES\" in /etc/rc.conf to enable"
	@${ECHO_MSG}	""

.include <bsd.port.post.mk>