aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/xmlindent/Makefile
blob: 5bcd0090e1bd7d359d64e2e85bca392f29e0c886 (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
# ex:ts=8
# Ports collection makefile for:    xmlindent
# Date created:         Apr 1, 2003
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   xmlindent
PORTVERSION=    0.2.17
PORTREVISION=   1
CATEGORIES= textproc
MASTER_SITES=   SF

MAINTAINER= david@trucs.org
COMMENT=    XML stream reformatter

MANCOMPRESSED=  no

SOURCES=    error.c indent.c buffer.c main.c

MAN1=       xmlindent.1
PLIST_FILES=    bin/xmlindent

do-build:
    @cd ${WRKSRC}; flex xmlindent.yy
    ${CC} ${CFLAGS} ${SOURCES:C/(.*)/${WRKSRC}\/\1/} -o ${WRKSRC}/${PORTNAME} -lfl

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MANPREFIX}/man/man1

.include <bsd.port.mk>