blob: 5da8b525577e2b9bc9cb66c7ffd249bcd761645a (
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
|
PORTNAME= xmlindent
DISTVERSIONPREFIX= v
DISTVERSION= 0.2.18
CATEGORIES= textproc
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= XML stream reformatter
WWW= https://xmlindent.sourceforge.net
LICENSE= GPLv2
USE_GITHUB= yes
GH_ACCOUNT= penberg
SOURCES= error.c indent.c buffer.c main.c
PLIST_FILES= bin/xmlindent \
share/man/man1/xmlindent.1.gz
do-build:
@cd ${WRKSRC}; flex xmlindent.yy
${CC} ${CFLAGS} ${SOURCES:C/(.*)/${WRKSRC}\/\1/} \
-o ${WRKSRC}/${PORTNAME} -lfl
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/share/man/man1
.include <bsd.port.mk>
|