2005-04-08 22:22:36 +00:00
|
|
|
# New ports collection makefile for: olsrd
|
|
|
|
# Date created: 6 April 2005
|
|
|
|
# Whom: dave@dogwood.com
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= olsrd
|
2008-10-11 06:18:20 +00:00
|
|
|
DISTVERSION= 0.5.6-r2
|
2005-04-08 22:22:36 +00:00
|
|
|
CATEGORIES= net
|
2007-10-24 15:51:10 +00:00
|
|
|
MASTER_SITES= http://www.olsr.org/releases/0.5/ \
|
2008-10-11 06:18:20 +00:00
|
|
|
http://ftp2.za.freebsd.org/pub/mesh/pc/protocols/olsr/
|
2005-04-08 22:22:36 +00:00
|
|
|
|
2008-10-11 06:18:20 +00:00
|
|
|
MAINTAINER= jhay@freebsd.org
|
2005-04-08 22:22:36 +00:00
|
|
|
COMMENT= OLSR routing daemon
|
|
|
|
|
|
|
|
BUILD_DEPENDS= makedepend:${PORTSDIR}/devel/makedepend
|
|
|
|
|
|
|
|
.if defined(WITH_MULTI_IF)
|
2005-11-14 17:07:08 +00:00
|
|
|
BUILD_DEPENDS+= libnet*>=1.1.2,1:${PORTSDIR}/net/libnet
|
2005-04-08 22:22:36 +00:00
|
|
|
.endif
|
|
|
|
|
2007-10-24 15:51:10 +00:00
|
|
|
USE_BZIP2= yes
|
2007-10-17 10:13:01 +00:00
|
|
|
USE_BISON= build
|
2005-04-08 22:22:36 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
|
2005-05-07 13:55:51 +00:00
|
|
|
USE_RC_SUBR= olsrd.sh
|
2005-04-08 22:22:36 +00:00
|
|
|
MAN8= olsrd.8
|
|
|
|
MAN5= olsrd.conf.5
|
|
|
|
MANCOMPRESSED= yes
|
|
|
|
|
2006-03-17 15:08:02 +00:00
|
|
|
ALL_TARGET= build_all
|
|
|
|
INSTALL_TARGET= install_all
|
|
|
|
|
2005-04-08 22:22:36 +00:00
|
|
|
.if defined(WITH_MULTI_IF)
|
2006-03-17 15:08:02 +00:00
|
|
|
MAKE_ARGS+= LIBNET=1
|
|
|
|
.endif
|
|
|
|
.if defined(PREFIX)
|
2007-10-24 15:51:10 +00:00
|
|
|
MAKE_ARGS+= PREFIX=${PREFIX}
|
2005-04-08 22:22:36 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2009-01-08 17:59:41 +00:00
|
|
|
.if ${OSVERSION} >= 800059
|
|
|
|
BROKEN= does not build
|
|
|
|
.endif
|
|
|
|
|
2006-04-18 10:40:42 +00:00
|
|
|
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
|
|
|
|
CFLAGS+= -fPIC
|
|
|
|
.endif
|
|
|
|
|
2005-05-07 13:55:51 +00:00
|
|
|
.if !defined(WITH_MULTI_IF)
|
|
|
|
pre-everything::
|
|
|
|
@${ECHO_MSG} ""
|
2008-10-11 06:18:20 +00:00
|
|
|
@${ECHO_MSG} " To enable IPv4 multiple interface support make with"
|
2005-05-07 13:55:51 +00:00
|
|
|
@${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} ""
|
|
|
|
|
2005-04-08 22:22:36 +00:00
|
|
|
.include <bsd.port.post.mk>
|