aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/logtool-devel/Makefile
blob: e04c2a547b0493331878c9b0b737915dc9f069e1 (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
# New ports collection makefile for:    logtool
# Date created:         Dec 30, 2000
# Whom:             Ying-Chieh Liao <ijliao@csie.nctu.edu.tw>
#
# $FreeBSD$
#

PORTNAME=   logtool
PORTVERSION=    1.3.1
PORTREVISION=   1
CATEGORIES= sysutils
MASTER_SITES=   http://xjack.org/logtool/download/
PKGNAMESUFFIX=  -devel

MAINTAINER= sergei@FreeBSD.org
COMMENT=    Parse ASCII logfiles into ANSI, CSV, HTML formats

CONFLICTS=  logtool-1.2*

USE_GMAKE=  yes
USE_GETOPT_LONG=    yes

GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CFLAGS="${CFLAGS}"
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/${PORTNAME} --without-resolver

PKGMESSAGE= ${WRKDIR}/pkg-message

MAN1=       logtool.1
DOCS=       CHANGES CREDITS Changes README TODO doc/logtool.txt

do-build:
    cd ${WRKSRC}/src && ${GMAKE} INCLUDES="${CPPFLAGS}"

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/src/logtool ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/doc/logtool.1 ${MANPREFIX}/man/man1
    @${MKDIR} ${EXAMPLESDIR} ${EXAMPLESDIR}/scripts
    ${INSTALL_DATA} ${WRKSRC}/conf/* ${EXAMPLESDIR}
    @${RM} ${EXAMPLESDIR}/logtool.conf.in
    ${INSTALL_DATA} ${WRKSRC}/scripts/* ${EXAMPLESDIR}/scripts
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
    @${SED} -e 's!PREFIX!${PREFIX}!' ${.CURDIR}/pkg-message > ${PKGMESSAGE}
    ${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>