1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-06 11:41:52 +00:00

Turn WITH_MULTI_IF into an OPTION and pet portlint. I am not even

touching the mysterious .if defined(PREFIX).
This commit is contained in:
Adam Weinberger 2014-07-14 16:19:49 +00:00
parent 9c653c99d8
commit 9a26321d94
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=361796
2 changed files with 7 additions and 17 deletions

View File

@ -13,10 +13,6 @@ COMMENT= OLSR routing daemon
BUILD_DEPENDS= makedepend:${PORTSDIR}/devel/makedepend
.if defined(WITH_MULTI_IF)
LIB_DEPENDS+= libnet.so:${PORTSDIR}/net/libnet
.endif
USES= bison gmake tar:bzip2
USE_LDCONFIG= yes
USE_RC_SUBR= olsrd
@ -24,13 +20,16 @@ USE_RC_SUBR= olsrd
ALL_TARGET= build_all
INSTALL_TARGET= install_all
.if defined(WITH_MULTI_IF)
MAKE_ARGS+= LIBNET=1
.endif
OPTIONS_DEFINE= MULTI_IF
MULTI_IF_DESC= IPv6 multiple interface support
MULTI_IF_LIB_DEPENDS= libnet.so:${PORTSDIR}/net/libnet
MULTI_IF_MAKE_ARGS= LIBNET=1
.if defined(PREFIX)
MAKE_ARGS+= PREFIX=${PREFIX}
.endif
MAKE_ARGS+= STAGEDIR=${STAGEDIR}
MAKE_ARGS+= STAGEDIR=${STAGEDIR}
.include <bsd.port.pre.mk>
@ -38,14 +37,6 @@ MAKE_ARGS+= STAGEDIR=${STAGEDIR}
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
post-patch:
@${REINPLACE_CMD} -e 's|/sbin/ldconfig|:|g' ${WRKSRC}/make/Makefile.fbsd

View File

@ -6,4 +6,3 @@ networks. The protocol is pro-active, table driven and utilizes a
technique called multipoint relaying for message flooding.
WWW: http://www.olsr.org/