aboutsummaryrefslogtreecommitdiffstats
path: root/net/nmsg/Makefile
blob: e9696a0bba4da3c4bcd2f11f357939df95f44ba9 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# $FreeBSD$

PORTNAME=   nmsg
PORTVERSION=    0.11.2
CATEGORIES= net
MASTER_SITES=   FARSIGHT LOCAL/truckman/farsight

MAINTAINER= truckman@FreeBSD.org
COMMENT=    Network message encapsulation system

LICENSE=    APACHE20
LICENSE_FILE=   ${WRKSRC}/COPYRIGHT

LIB_DEPENDS=    libprotobuf-c.so:devel/protobuf-c \
        libxs.so:devel/libxs \
        libwdns.so:dns/wdns \
        libyajl.so:devel/yajl

GNU_CONFIGURE=  yes
USE_LDCONFIG=   yes
USES=       gmake libtool pathfix pkgconfig
CONFIGURE_ARGS= --with-pkgconfigdir='$${exec_prefix}/libdata/pkgconfig'
INSTALL_TARGET= install-strip

PORTDOCS=   *

# The DOXYGEN option is best effort.
# If doxygen is installed, it will get used if the option is set to NO.
OPTIONS_DEFINE=     DOXYGEN EXAMPLES MANPAGES
OPTIONS_DEFAULT=    DOXYGEN MANPAGES
OPTIONS_SUB=        yes

CPPFLAGS+=  -I${LOCALBASE}/include/yajl

ALL_TARGET= all
DOXYGEN_BUILD_DEPENDS=  doxygen:devel/doxygen
DOXYGEN_ALL_TARGET= html-local
DOCBOOK_XML=    ${LOCALBASE}/share/xml/docbook/4.2
MANPAGES_BUILD_DEPENDS= xsltproc:textproc/libxslt \
            docbook-xml>0:textproc/docbook-xml \
            docbook-xsl-ns>0:textproc/docbook-xsl-ns
MANPAGES_CONFIGURE_WITH=    xsltproc

post-install:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    cd ${WRKSRC} && ${INSTALL_DATA} README.md README.FILTERS.md \
        ${STAGEDIR}${DOCSDIR}

post-install-DOXYGEN-on:
    (cd ${WRKSRC}/doc/doxygen && \
    ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR})

post-install-EXAMPLES-on:
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    (cd ${WRKSRC}/examples && \
    ${INSTALL_DATA} *.c *.py ${STAGEDIR}${EXAMPLESDIR})

.include <bsd.port.mk>