aboutsummaryrefslogtreecommitdiffstats
path: root/net/librouteros/Makefile
blob: badda044ebb5b7c0a6652c5a0808478a94e1e0a1 (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
# Created by: Mark Felder <feld@FreeBSD.org>
# $FreeBSD$

PORTNAME=   librouteros
PORTVERSION=    1.1.2
PORTREVISION=   1
CATEGORIES= net
MASTER_SITES=   http://verplant.org/librouteros/files/

MAINTAINER= feld@FreeBSD.org
COMMENT=    Library for communicating with network devices by MikroTik

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    libgcrypt.so:${PORTSDIR}/security/libgcrypt

USE_BZIP2=  yes
USE_AUTOTOOLS=  libtool
USE_LDCONFIG=   yes

LDFLAGS+=   -L${LOCALBASE}/lib
CFLAGS+=    -I${LOCALBASE}/include -Wno-error

PORTDOCS=   AUTHORS COPYING ChangeLog INSTALL NEWS README

OPTIONS_DEFINE= DOCS

.include <bsd.port.options.mk>

post-install:
.if ${PORT_OPTIONS:MDOCS}
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.endif

.include <bsd.port.mk>