aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/xmlindent/Makefile
diff options
context:
space:
mode:
authormi <mi@FreeBSD.org>2003-07-15 01:26:48 +0800
committermi <mi@FreeBSD.org>2003-07-15 01:26:48 +0800
commitf3a9c245cbaa6bc4d2471076d72e907d139a2ba2 (patch)
treeffdb2a1c9fa4e1058a0d9cda95e2542cde1b0f21 /textproc/xmlindent/Makefile
parentc37cd4e189db8ac045c4067277dc2d946fafaa59 (diff)
downloadfreebsd-ports-gnome-f3a9c245cbaa6bc4d2471076d72e907d139a2ba2.tar.gz
freebsd-ports-gnome-f3a9c245cbaa6bc4d2471076d72e907d139a2ba2.tar.zst
freebsd-ports-gnome-f3a9c245cbaa6bc4d2471076d72e907d139a2ba2.zip
Upgrade from 0.2.5 to 0.2.8. Switch to using the bsd.prog.mk, rather
than bother patching the vendor's Makefile.
Diffstat (limited to 'textproc/xmlindent/Makefile')
-rw-r--r--textproc/xmlindent/Makefile17
1 files changed, 13 insertions, 4 deletions
diff --git a/textproc/xmlindent/Makefile b/textproc/xmlindent/Makefile
index b445f3ef7d57..78312c1c962e 100644
--- a/textproc/xmlindent/Makefile
+++ b/textproc/xmlindent/Makefile
@@ -7,7 +7,7 @@
#
PORTNAME= xmlindent
-PORTVERSION= 0.2.5
+PORTVERSION= 0.2.8
CATEGORIES= textproc
MASTER_SITES= http://www.cs.helsinki.fi/u/penberg/xmlindent/src/
@@ -15,9 +15,18 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= A XML stream reformatter
MAN1= xmlindent.1
+MANCOMPRESSED= maybe
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/xmlindent ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/xmlindent.1 ${MANPREFIX}/man/man1
+pre-build:
+ cd ${WRKSRC} && ${MAKE} lexer
+
+.for t in build install
+do-$t:
+ cd ${WRKSRC} && ${MAKE} -f /usr/share/mk/bsd.prog.mk PROG=xmlindent \
+ SRCS="error.c indent.c buffer.c main.c" \
+ BINDIR="${PREFIX}/bin" \
+ MANDIR="${PREFIX}/man/man" \
+ ${t:build=all} LDADD=-lfl
+.endfor
.include <bsd.port.mk>