2013-03-08 11:32:11 +00:00
|
|
|
# Created by: dave@dogwood.com
|
2005-04-08 22:22:36 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= olsrd
|
2014-06-08 07:07:45 +00:00
|
|
|
DISTVERSION= 0.6.6.2
|
2005-04-08 22:22:36 +00:00
|
|
|
CATEGORIES= net
|
2010-05-22 07:38:37 +00:00
|
|
|
MASTER_SITES= http://www.olsr.org/releases/0.6/ \
|
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
|
|
|
|
2010-12-25 16:55:41 +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
|
|
|
|
|
2014-05-29 12:00:30 +00:00
|
|
|
USES= bison gmake tar:bzip2
|
2014-06-07 19:13:44 +00:00
|
|
|
USE_LDCONFIG= yes
|
2012-08-05 23:19:36 +00:00
|
|
|
USE_RC_SUBR= olsrd
|
2005-04-08 22:22:36 +00:00
|
|
|
|
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
|
2014-06-07 19:13:44 +00:00
|
|
|
MAKE_ARGS+= STAGEDIR=${STAGEDIR}
|
2005-04-08 22:22:36 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
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
|
|
|
|
|
2014-06-07 19:13:44 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|/sbin/ldconfig|:|g' ${WRKSRC}/make/Makefile.fbsd
|
|
|
|
|
2005-05-07 13:55:51 +00:00
|
|
|
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>
|