aboutsummaryrefslogtreecommitdiffstats
path: root/net/trickle/Makefile
blob: cba97490a92d9af2986b14b740b2f56ecbd88703 (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
39
# Created by: Kirill Ponomarew <ponomarew@oberon.net>
# $FreeBSD$

PORTNAME=   trickle
PORTVERSION=    1.07
PORTREVISION=   4
CATEGORIES= net
MASTER_SITES=   http://monkey.org/~marius/trickle/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Lightweight, portable bandwidth shaper

LICENSE=    BSD3CLAUSE
LICENSE_FILE=   ${WRKSRC}/LICENSE

LIB_DEPENDS=    libevent.so:devel/libevent2

USES=       libtool
GNU_CONFIGURE=  yes
USE_LDCONFIG=   yes

MAKE_JOBS_UNSAFE=   yes

CONFIGURE_ARGS+=--with-libevent=${LOCALBASE} \
        --sysconfdir=${PREFIX}/etc
CPPFLAGS+=  -I${LOCALBASE}/include
LIBS+=      -L${LOCALBASE}/lib

PORTDOCS=   *

OPTIONS_DEFINE= DOCS

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/trickle/trickle-overload.so
    ${INSTALL_DATA} ${FILESDIR}/trickled.conf ${STAGEDIR}${PREFIX}/etc/trickled.conf.sample
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>