aboutsummaryrefslogtreecommitdiffstats
path: root/devel/libevt/Makefile
blob: bb3c683064d5391fad355431ae980a5ca33a9aab (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
# Created by: Antoine Brodin <antoine@FreeBSD.org>
# $FreeBSD$

PORTNAME=   libevt
DISTVERSION=    alpha-20130303
CATEGORIES= devel
MASTER_SITES=   GOOGLE_CODE

MAINTAINER= antoine@FreeBSD.org
COMMENT=    Library and tooling to access the Windows Event Log (EVT) format

LICENSE=    LGPL3

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --enable-python
USE_GETTEXT=    yes
USES=       pathfix
USE_ICONV=  yes
USE_PYTHON= yes
USE_LDCONFIG=   yes

LDFLAGS+=   -L${LOCALBASE}/lib
WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION:E}

MAN1=       evtexport.1 evtinfo.1
MAN3=       libevt.3

OPTIONS_DEFINE= DOCS EXAMPLES

PORTDOCS=   AUTHORS ChangeLog
PORTEXAMPLES=   *

.include <bsd.port.options.mk>

post-install:
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
    @${MKDIR} ${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/examples/${PORTNAME}/* \
        ${WRKSRC}/examples/${PORTNAME:S,lib,py,}/* ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>