1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/net/olsrd/Makefile

57 lines
1.2 KiB
Makefile
Raw Normal View History

# Created by: dave@dogwood.com
# $FreeBSD$
PORTNAME= olsrd
2014-06-08 07:07:45 +00:00
DISTVERSION= 0.6.6.2
CATEGORIES= net
2010-05-22 07:38:37 +00:00
MASTER_SITES= http://www.olsr.org/releases/0.6/ \
http://ftp2.za.freebsd.org/pub/mesh/pc/protocols/olsr/
MAINTAINER= jhay@FreeBSD.org
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
USES= bison gmake tar:bzip2
2014-06-07 19:13:44 +00:00
USE_LDCONFIG= yes
USE_RC_SUBR= olsrd
ALL_TARGET= build_all
INSTALL_TARGET= install_all
.if defined(WITH_MULTI_IF)
MAKE_ARGS+= LIBNET=1
.endif
.if defined(PREFIX)
MAKE_ARGS+= PREFIX=${PREFIX}
.endif
2014-06-07 19:13:44 +00:00
MAKE_ARGS+= STAGEDIR=${STAGEDIR}
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
CFLAGS+= -fPIC
.endif
.if !defined(WITH_MULTI_IF)
pre-everything::
@${ECHO_MSG} ""
@${ECHO_MSG} " To enable IPv4 multiple interface support make with"
@${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
post-install:
@${ECHO_MSG} ""
@${ECHO_MSG} " Set olsrd_enable=\"YES\" in /etc/rc.conf to enable"
@${ECHO_MSG} ""
.include <bsd.port.post.mk>