aboutsummaryrefslogtreecommitdiffstats
path: root/net/olsrd/Makefile
blob: 22e2abe6414ad1024ecd63c5f8fe067a7963ca5d (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
# Created by: dave@dogwood.com
# $FreeBSD$

PORTNAME=   olsrd
PORTVERSION=    0.9.5
CATEGORIES= net
MASTER_SITES=   http://www.olsr.org/releases/0.9/

MAINTAINER= koue@chaosophia.net
COMMENT=    OLSR routing daemon

LICENSE=    BSD3CLAUSE
LICENSE_FILE=   ${WRKSRC}/license.txt

USES=       bison gmake tar:bzip2
USE_LDCONFIG=   yes
USE_RC_SUBR=    olsrd

ALL_TARGET= build_all
INSTALL_TARGET= install_all

CFLAGS_aarch64= -fPIC
CFLAGS_amd64=   -fPIC

OPTIONS_DEFINE= MULTI_IF
MULTI_IF_DESC=  IPv4 multiple interface support

MULTI_IF_LIB_DEPENDS=   libnet.so:net/libnet
MULTI_IF_MAKE_ARGS= LIBNET=1

post-patch:
    @${REINPLACE_CMD} -e 's|/sbin/ldconfig|:|g' ${WRKSRC}/make/Makefile.fbsd

post-install:
    @${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/${PORTNAME}
    @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so.*

.include <bsd.port.mk>